Order history
hktv_recent_ordersRetrieve a signed-in HKTVmall account's order history newest first for re-ordering, with pagination and optional item details; use it to inspect past orders before updating the cart.
Instructions
The account's HKTVmall order history, newest first, for re-ordering: each order's number, date, status, total, deliveries (date and delivered/scheduled/cancelled per batch) and items (id, title, quantity, line_total; free_gift for promotion gifts). total_orders counts the whole history; page back through it with offset = next_offset (null at the end), one call after another: calls for one account run in turn, so parallel ones only wait. Items need each order's page the first time (about 2 s each; a call reads at most 10 new ones and says more_to_read), after that they come back at once. items=false lists up to 50 orders quickly without items. Read-only; never shows the address or payment. To buy items again, use hktv_update_cart with exact quantities. Needs the account's sign-in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Include each order's items (reads each order's page) | |
| limit | No | How many orders, newest first after offset | |
| offset | No | Skip this many of the newest orders (next_offset pages on) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| orders | Yes | ||
| next_offset | No | ||
| total_orders | Yes |