Skip to navigation

Update Cart Item

View as Markdown

Sets a line’s quantity. A quantity of 0 removes the line.

Keys: public key or secret key.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

identitystring
The identity for the active workspace.

Path parameters

item_idstringRequiredformat: "uuid"

The cart line’s id.

Headers

channelstringRequired
cart-tokenstringRequired

The token returned when the cart was created. Treat it as a secret: never put it in a URL or a log.

Request

This endpoint expects an object.
quantitydoubleRequired>=0

New quantity. 0 removes the line.

Response

Successfully updated cart item
statusboolean

Always true on success.

messagestring

Human-readable outcome.

dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
404
Not Found Error
422
Unprocessable Entity Error