docs

Basket (hidden)

The basket is included in every state response and can be used to render the current contents of the user's cart in your application.

Structure

  • The basket may contain multiple packages.
  • Each package groups items by shipping carrier.
  • Each package can include one or more items.

The package structure is important for handling shipping options, availability, and delivery estimation.


Showing the Basket

The Basket is included in the state response.

Location in State Available under orderState.basket

Change Order Item Quantity

The Basket Item Quantity endpoint allows customers to modify the quantity of items in their basket:

  • Increase quantity of an item.
  • Decrease quantity, including setting it to zero to remove the item.
  • If the requested quantity exceeds available stock, the quantity is automatically adjusted to the maximum available.

The state response after quantity adjustment will reflect the updated basket contents, totals, and availability.