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
fulfilmentMethod
enum<string>
required

The method of order fulfillment (e.g., takeout, delivery).

Available options:
takeout,
table_side,
room_service,
delivery,
robot_delivery,
in_course_delivery
pickupType
enum<string>
required

The pickup type (ASAP or LATER for scheduled).

Available options:
ASAP,
LATER
orderTime
string
required

The desired order time (format: ISO 8601).

locationId
string
required

The ID of the location where the order will be placed.

items
object[]
required

An array of cart items.

Response

201
application/json
Cart created successfully.
id
string

The unique ID of the cart.

totalQuantity
integer

The total quantity of items in the cart.

subTotal
string

The subtotal of the cart (before taxes and fees).

taxTotal
string

The total tax amount.

orderTotal
string

The final order total.

items
object[]

An array of cart items with details.