Skip to content
extensions / Commerce extension
PATCH/__runtime/cart/items/{item_id}

Update Cart Item

Updates a cart item's quantity, removing it when the quantity is zero, and returns the updated cart.

PATCHDELETE

Authentication

Requirement
Required
Credential type
API key
Scopes
Not specified

Permissions

  • Requires an API key with an active connection to the target project.

Headers

NameRequiredTypeDetails
AuthorizationYesNot specified
Description: Bearer credential used to authenticate the request.

Path Parameters

NameRequiredTypeDetails
item_idYesNot specified
Description: Identifier for item.

Query Parameters

NameRequiredTypeDetails
project_idNointeger
Description: Target project identifier.

Request Body

Schema: CartItemUpdateRequest

FieldRequiredTypeDetails
quantityYesinteger
Description: Integer value.

Response Body

Example 200 response

json
{
  "cart_id": 1,
  "currency": "USD",
  "currency_symbol": "string",
  "subtotal": "string",
  "tax": "string",
  "total": 1,
  "count": 1,
  "items": [],
  "coupon_discount_total": "string",
  "coupons": []
}

Errors

400 BAD_REQUEST404 NOT_FOUND500 INTERNAL_SERVER_ERROR

Availability

Available in
v0.1.0
Available since
v0.1.0
Implementation
Available
Deprecation
Not specified
Rate limits
Not specified