POST
/
cart
curl --request POST \
  --url https://api.craveup.com/v1/cart \
  --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

Body

application/json

Response

201
application/json

Cart created successfully.

The response is of type object.