List orders
markettime_list_ordersSearch wholesale orders (for the newest first use sort_field orderDate with sort_direction desc). Convenience filters: status (the manufacturer's order status, e.g. NEW, SENT, SHIPPED), rep_group_status (Rep Group accounts only), po_number, customer_name (contains), manufacturer_id, customer_id, ordered_from/ordered_to (order date), modified_since. Order lines are left out unless include_details is true (they make replies large; use markettime_list_order_details for the lines of one order). Card tokens are never returned. POST /orders/get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Start index (default 0). Pass the previous reply's next_offset. | |
| status | No | manufacturerOrderStatus equals this value. | |
| filters | No | Extra filters, all combined with AND. Use field names from the record shape of this tool's replies. | |
| page_size | No | Rows per page, 1-250 (default 50). | |
| po_number | No | Purchase order number equals this value. | |
| ordered_to | No | A date, yyyy-mm-dd. | |
| sort_field | No | Sort field, e.g. orderDate, dateModified, orderTotal, poNumber. | |
| customer_id | No | Customer (retailer) id, like B123. | |
| ordered_from | No | A date, yyyy-mm-dd. | |
| customer_name | No | Customer (retailer) name contains this text. | |
| modified_since | No | Only orders changed on or after this date. | |
| sort_direction | No | Sort direction (MarketTime's default is descending). | |
| include_details | No | Include the order lines (default false). | |
| manufacturer_id | No | The MarketTime id. | |
| rep_group_status | No | repGroupOrderStatus equals this value (Rep Group accounts). |