POST
/
cart
/
{token}
curl --request POST \
  --url https://api.loopreturns.com/api/v1/cart/{token} \
  --header 'Content-Type: application/json' \
  --header 'X-Authorization: <api-key>' \
  --data '{
  "cart": [
    39076568408247
  ]
}'
{
  "updated": true,
  "data": {
    "cart": [
      39076568408247
    ]
  }
}

Authorizations

X-Authorization
string
header
required

Path Parameters

token
string
required

The unique identifier token associated with a cart.

Body

application/json
cart
number[]
required

An array of product variant identifiers.

Response

200
application/json
Success
updated
boolean

Whether the cart was updated successfully.

data
object