cURL
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 ] } }
Modify an existing cart. Note that the array of product variants included in the request will overwrite the cart’s existing contents.
The unique identifier token associated with a cart.
Success
The response is of type object.
object