GET
/
carts
/
{cartId}
curl --request GET \
  --url https://api.craveup.com/v1/carts/{cartId} \
  --header 'X-API-Key: <api-key>'
{
  "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 retrieve.

Response

200
application/json
Cart retrieved 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.