cURL
curl --request POST \ --url https://api.loopreturns.com/api/v1/cart \ --header 'Content-Type: application/json' \ --header 'X-Authorization: <api-key>' \ --data ' { "cart": [ 39076568408247 ], "shopify": "c2FtcGxlLXN0cmluZw==" } '
{ "token": "46923497728c9a7b5o8a433zz5c0bbbb683319824778", "data": { "cart": [ 39076568408247 ] } }
Create a cart object and populate it with one or more product variants.
🚧 Create Cart Object When setting up Shop Now: On-Store for a headless store, be sure to create a base 64-encoded liquid cart object and send it to Loop.
🚧 Create Cart Object
When setting up Shop Now: On-Store for a headless store, be sure to create a base 64-encoded liquid cart object and send it to Loop.
An array of product variants.
The unique identifier associated with a product variant.
A Base64-encoded liquid cart object, used to reflect any additional transaction details in Shopify such as discounts.
"c2FtcGxlLXN0cmluZw=="
Success
The cart's unique identifier.
"46923497728c9a7b5o8a433zz5c0bbbb683319824778"
Show child attributes
An array of product variants representing the contents of the cart.