Shopping

Update Cart Item

Set the absolute quantity of a basket line using its item_id from get_cart, not product_id. Zero removes the line; use add_cart_item to increment instead. Returns the refreshed basket; no order or payment. OAuth scopes: cart:write. Changes buyer or order state. Requires a JSON object body; use {} for an operation without body fields.

patch/cart/items/{item_id}

Request

  • Base URL: https://vesremont.com/api/v1
  • URL: https://vesremont.com/api/v1/cart/items/{item_id}
  • Auth: OAuth 2 (authorization code, authorization URL https://vesremont.com/oauth/authorize, token URL https://vesremont.com/oauth/token, scopes: cart:write)

Path parameters

item_idinteger required

Basket line item_id from this consenting buyer's get_cart response, not product_id or another buyer's item.

Request body

quantityinteger required

New ABSOLUTE quantity for this basket line, not an increment. Zero removes the line.

Response

Successful operation.

emptyboolean required
total_quantitynumber required
subtotalnumber nullable required
currency'RUB' required
orderableboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.