update_cart
Build the guest order step by step in a server-side cart, the way a human uses the web cart. Without cartId a new cart is created (keep the returned cartId — it is the access token). Each entry of updates: {itemId, quantity, variants?, addons?, comment?} adds a line; {lineId, quantity} changes one; {lineId, quantity: 0} removes it. Prices are recomputed from the live menu on every read, never stored. The answer includes a checkoutUrl the human can open to finish in the normal web checkout, and the cart can be placed as an order with create_order(cartId).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cartId | No | Omit to create a new cart | |
| domain | Yes | ||
| updates | Yes | ||
| language | No |