v1

latestOpenAPI 3.1.02026-07-2689175245.8 KB
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/cart

Request body

shopifystring

A Base64-encoded liquid cart object, used to reflect any additional transaction details in the commerce provider (e.g. Shopify) such as discounts.

Example request

{
  "cart": [
    39076568408247
  ],
  "shopify": "c2FtcGxlLXN0cmluZw=="
}

Response

Success

OR
OR
OR
OR

Example response

{
  "token": "46923497728c9a7b5o8a433zz5c0bbbb683319824778",
  "data": {
    "cart": [
      39076568408247
    ],
    "shopify": "c2FtcGxlLXN0cmluZw=="
  }
}