Searching and sorting Dispatch Orders
List of Dispatch Orders
Search for dispatch orders is done by specifying one or more of the following criteria
Warning Debit clients!
We do not return prices for debit clients.
rate
attribute takes the value null
GET /v1/organizations/:organization_id/dispatch_orders
Search criteria
Parameter | Type | Description | Example |
---|---|---|---|
| Integer Array | Searches for the dispatch order with the stated ID. Searches for dispatch orders with the stated IDs. |
|
| Date | Searches for dispatch orders created on the given day. |
|
| Time | Searches for dispatch orders in which the time created is >= specified time. The time can be provided in the ISO 8601 or similar format, and as a timestamp. |
|
| Time | Searches for dispatch orders created earlier than at the specified time. The time can be provided in the ISO 8601 or similar format, and as a timestamp. |
|
| String Array | Searches for dispatch orders in the specified status. Searches for dispatch orders in one of the indicated statuses. |
|
| String | Searches for dispatch orders for which the address (street) starts with the given string. |
|
| String | Searches for dispatch orders for which the post-code starts with the given string. |
|
| String | Searches for dispatch orders for which the country code is the same as the specified string. |
|
| String | Searches for dispatch orders for which the city is the same as the specified string. |
|
| Integer Array | Searches for dispatch orders that include shipment with the given id. Searches for dispatch orders that include shipments with the given ids. |
|
| String Array | Searches for dispatch orders that include shipment with the given tracking number. Searches for dispatch orders that include shipments with the given tracking numbers. |
|
| String Array | Searches for dispatch orders that include shipments with at least one of the given services.
|
|
| String Array | Searches for dispatch orders in the given state
|
|
Sorting results
Search result sorting can be facilitated using the sort_by
attribute, which can take the following values:
sort_by value | Description | Example |
---|---|---|
| Sorts by id |
|
| Sorts by creation date and time |
|
| Sorts by address |
|
| Sorts by post code |
|
| Sorts by country code |
|
| Sorts by first shipment id |
|
| Sorts by first shipment tracking number |
|
Sort ordering can be set using sort_order
attribute. By default, the results are sorted in descending order using the created_at
field.
sort_order value | Description | Example |
---|---|---|
| Sorts in ascending order |
|
| Sorts in descending order |
|
On this page