PUT
/
cart
/
{cartId}
/
cart-item
curl --request PUT \
  --url https://api.craveup.com/v1/cart/{cartId}/cart-item \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "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 containing the item.

Body

application/json
productId
string
required

The unique ID of the product.

quantity
integer
required

The quantity of the product in the cart.

options
object[]

An array of selected modifier options for the product (if applicable).

specialInstructions
string

Any special instructions for this cart item.

Response

200
application/json
Item updated 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.