List orders
hub_get_ordersFind orders — the same rows as Manage → Orders. Answers 'show me order 1042', 'what did we sell on Saturday', 'are there parked orders', 'orders rung up by Maria', 'orders over $500 at the King Street shop'. Filter by receipt number, status, source, employee, customer, product, date window, order total, outlet or station. Results are ALWAYS newest first — there is no other sorting, so a "biggest order" question needs the amount filter, not paging. Search matches the receipt number and the order id ONLY, never customer names or product names: for those, pass customerIds from get_customers or productIds from get_products. One row per order with its total; for what is INSIDE an order — line items, payments, refunds, notes — call get_order with the id from here. For how much the business took over a period use get_financial_summary or get_sales_breakdown instead of adding these rows up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, default 1 | |
| search | No | Receipt number or order id. Does NOT match customer or product names | |
| source | No | e.g. ["in-store"], ["woo-commerce"] | |
| status | No | Final POS statuses: "completed", "refunded", "partial-refund", "parked". WooCommerce orders keep their own ("processing", "on-hold", "pending", "cancelled", "failed") — pass "other" to match every status outside the four Final POS ones | |
| endDate | No | Only orders created at or before this ISO 8601 moment | |
| outlets | No | Outlet ids. Combined with stations by OR | |
| maxTotal | No | Maximum order total in MINOR units (cents) | |
| minTotal | No | Minimum order total in MINOR units (cents), e.g. 50000 for $500 | |
| pageSize | No | Orders per page, default 20 | |
| stations | No | Station ids. Combined with outlets by OR | |
| startDate | No | Only orders created at or after this ISO 8601 moment | |
| productIds | No | Product ids from get_products — matches orders containing them | |
| customerIds | No | Customer ids from get_customers, not names | |
| employeeIds | No | Employee ids — from get_employee_sales, not names |