Retrieve
curl --request GET \
--url https://{defaultHost}/v1/saved_items/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/saved_items/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/saved_items/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{defaultHost}/v1/saved_items/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{defaultHost}/v1/saved_items/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{defaultHost}/v1/saved_items/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/saved_items/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "f3518d46-3312-4978-8def-26dc4f2973da",
"object": "saved_item",
"ad_hoc_amount": null,
"bundle_component_variants": {},
"live_mode": true,
"note": null,
"price_changed": false,
"purchasable_status": "purchasable",
"quantity": 1,
"variant_changed": false,
"saved_list": "ccdda30d-4b47-4ba2-8013-a70f0eadb61b",
"product": "6bca7ef1-797c-4ffc-bfb8-c1bc8fb3c1d3",
"price": "dae4d1a7-76b0-4e66-8634-76ad53c31e38",
"variant": null,
"created_at": 1795639268,
"updated_at": 1795639268
}Saved Items
Retrieve
Retrieves details of a specific saved item.
GET
/
v1
/
saved_items
/
{id}
Retrieve
curl --request GET \
--url https://{defaultHost}/v1/saved_items/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/saved_items/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/saved_items/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{defaultHost}/v1/saved_items/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{defaultHost}/v1/saved_items/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{defaultHost}/v1/saved_items/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/saved_items/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "f3518d46-3312-4978-8def-26dc4f2973da",
"object": "saved_item",
"ad_hoc_amount": null,
"bundle_component_variants": {},
"live_mode": true,
"note": null,
"price_changed": false,
"purchasable_status": "purchasable",
"quantity": 1,
"variant_changed": false,
"saved_list": "ccdda30d-4b47-4ba2-8013-a70f0eadb61b",
"product": "6bca7ef1-797c-4ffc-bfb8-c1bc8fb3c1d3",
"price": "dae4d1a7-76b0-4e66-8634-76ad53c31e38",
"variant": null,
"created_at": 1795639268,
"updated_at": 1795639268
}Authorizations
Response
200 - application/json
Success
Expandable – The associated price ID.
Expandable – The associated product ID.
Whether this item can move into a checkout and, if not, why. Possible values are price_missing, price_gone, price_old_version, variant_missing, variant_gone, variant_old_version, out_of_stock, exceeds_purchase_limit, or purchasable. For a bundle, the status of the first blocking component is reported.
Expandable – The associated saved list ID.
Expandable – The associated variant ID.
Was this page helpful?