PATCH
/
carts
/
{cartId}
curl --request PATCH \
  --url https://api.craveup.com/v1/carts/{cartId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "fulfilmentMethod": "takeout",
  "pickupType": "ASAP",
  "orderTime": "<string>",
  "locationId": "<string>",
  "items": [
    {
      "productId": "<string>",
      "quantity": 123,
      "options": [
        {
          "modifierGroupId": "<string>",
          "optionId": "<string>"
        }
      ],
      "specialInstructions": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "totalQuantity": 123,
  "subTotal": "<string>",
  "taxTotal": "<string>",
  "orderTotal": "<string>",
  "items": [
    {}
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

cartId
string
required

The ID of the cart to update.

Body

application/json

Response

200
application/json

Cart updated successfully.

The response is of type object.