Skip to main content
PUT
This endpoint updates an existing item in the cart. You can change quantity, add notes, or update metadata. Setting quantity to 0 removes the item.

Authentication

This endpoint requires a valid API key with carts:write permissions.

Path Parameters

string
required
The unique identifier of the cart
string
required
The unique identifier of the cart item

Request Body

integer
New quantity (set to 0 to remove item)
string
Update special instructions
object
Update custom fields
boolean
default:"true"
Validate inventory for quantity increase

Response

Returns the updated cart object.