v1
latestOpenAPI 3.1.02026-07-2689175245.8 KBCart
Create Cart
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.
Required API key scope
- Carts
post/cart
Request body
Example request
{
"cart": [
39076568408247
],
"shopify": "c2FtcGxlLXN0cmluZw=="
}Response
Success
Example response
{
"token": "46923497728c9a7b5o8a433zz5c0bbbb683319824778",
"data": {
"cart": [
39076568408247
],
"shopify": "c2FtcGxlLXN0cmluZw=="
}
}