POST
/
cart
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
    ]
  }
}

Authorizations

X-Authorization
string
header
required

Body

application/json
cart
number[]
required

An array of product variants.

shopify
string

A Base64-encoded liquid cart object, used to reflect any additional transaction details in Shopify such as discounts.

Response

200
application/json
Success
token
string

The cart's unique identifier.

data
object