Set basket quantities
hktv_update_cartSet exact quantities for basket lines (0 removes), up to 25 changes per call, and report the outcomes actually applied by HKTVmall without adding on top.
Instructions
Set exact quantities for basket lines (quantity 0 removes; never adds on top). Up to 25 changes in one call. Each change's outcome (applied, adjusted, rejected with a reason) is read back from HKTVmall: report those, not what you asked for. Lines you do not name are left alone. Over 15 of one item or HK$1,500 added in one call it changes nothing and returns requires_buyer_review. Cannot place or pay for an order. In people mode, account_context must match the current caller, selected account, sharing grant and reconnect epoch; a stale or missing context applies no changes. Needs the account's sign-in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Exact quantities to set | |
| confirmed | No | True only after the person agreed to a change over the caps | |
| account_context | No | People mode: account_context from the latest hktv_get_cart |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basket | Yes | ||
| status | Yes | ||
| changes | Yes |