List sales orders
kiotviet_list_ordersList sales orders (code, date, branch, customer, total, status, lines, delivery). Filter by branch, customer, status, creation date (from) or last change (from/to). GET /orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | KiotViet status code(s) to include. | |
| order_by | No | Sort field. | |
| page_size | No | Records per page, 1-100 (default 20). | |
| branch_ids | No | Only these branches (see kiotviet_list_branches). | |
| created_date | No | Only orders created at or after this date. | |
| current_item | No | Record offset to start from (0 = first record). Pass the previous reply's next_item. | |
| customer_ids | No | Only orders of these customers. | |
| customer_code | No | Only orders of the customer with this code. | |
| include_payment | No | Include the payments. | |
| order_direction | No | Sort direction. | |
| sale_channel_id | No | Only orders from this sales channel. | |
| last_modified_to | No | Only orders last changed up to this date-time (KiotViet toDate is a bound on the modification time, not the creation time). Use with last_modified_from. | |
| last_modified_from | No | Only records changed at or after this date-time (shop local time). | |
| include_order_delivery | No | Include the delivery details. |