Create Cart
Cart
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
Create Cart
Authorizations
Body
application/json
An array of product variants.
A product variant, provided either as a plain variant ID or as an object with a variant_id.
Example:
39076568408247
A Base64-encoded liquid cart object, used to reflect any additional transaction details in Shopify such as discounts.
Example:
"c2FtcGxlLXN0cmluZw=="