Search orders
optimoroute_search_ordersFind orders in a date range (at most 35 days) or by a list of orderNo/id, optionally filtered by status (e.g. failed, rejected, unscheduled), with order data and/or scheduling info. Up to 500 per page; pass the returned after_tag with the SAME other parameters to get the next page. Read-only despite using POST. OptimoRoute: POST /search_orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orders | No | Orders to target, each {"orderNo": "..."} or {"id": "..."}. At most 500. | |
| after_tag | No | Cursor from the previous page's after_tag. | |
| dateRange | No | A date range, e.g. {"from": "2026-09-28", "to": "2026-10-02"}. | |
| orderStatus | No | Only orders in these statuses. | |
| includeOrderData | No | Include each order's full data. | |
| includeScheduleInformation | No | Include each order's driver, stop number and scheduled time. |