Set cart quantity
set_cart_quantityChange the quantity of a cart line by its index (from view_cart); qty=0 removes it. Args: index, qty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | New quantity (0 removes the line, max 99). | |
| index | Yes | Zero-based cart line index from view_cart. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present instead of a cart when the call failed (bad index, unavailable size, ...). | |
| items | No | Cart lines in index order — this index is what set_cart_quantity/cart_update/cart_remove take. | |
| currency | No | ||
| subtotal | No | Sum of price x qty over all lines, USD. | |
| checkout_url | No | Cart page URL for the human. |