Retrieve a list of orders
Get a list of orders filtered by integration, order number, order ID, order status, creation date, and update date. You can also optionally sort the results and pass a cursor value.
next and prev fields in the Link response header.Authorizations
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Query Parameters
Filter orders by one or more integration IDs. Use a comma separated list, e.g. integration=41,68,419.
You can get your integration IDs from the Retrieve a list of integrations endpoint.
17
Filter orders by a specific order number, e.g. order_number=ORDER_284565. The filtering is case insensitive.
"ORDER_284565"
Filter orders by a specific order id, e.g. order_id=1896e94b-c01b-4e73-a9e7-57f51c8a4c77. The filtering is case insensitive.
"1896e94b-c01b-4e73-a9e7-57f51c8a4c77"
Filter orders based on their status, e.g. status=unshipped. The filtering is case insensitive.
"unshipped"
Find orders that were created on a specific date, e.g. order_created_at=2023-04-28.
"2023-04-28"
Find orders that were created at or after a specific date, e.g. order_created_at_min=2023-04-28.
"2023-04-28"
Find orders that were created at or before a specific date, e.g. order_created_at_max=2023-04-28.
"2023-04-28"
Find orders that were updated on a specific date, e.g. order_updated_at=2023-04-28.
"2023-04-28"
Find orders that were updated at or after a specific date, e.g. order_updated_at_min=2023-04-28.
"2023-04-28"
Find orders that were updated at or before a specific date, e.g. order_updated_at_max=2023-04-28.
"2023-04-28"
Sort the orders in the response by using one or more of the following values:
integration: Sort by the integration ID of the retrieved orders; to sort in descending order, use-integrationorder_number: Sort by the order number of the retrieved orders; to sort in descending order, use-order_number.order_created_at: Sort by the date of an order creation of the retrieved orders; to sort in descending order, use-order_created_atorder_updated_at: Sort by the date of an order update of the retrieved orders; to sort in descending order, use-order_updated_atpk: Sort by the ID (autogenerated internal ID) of the retrieved orders; to sort in descending order, use-pk
Additional information about this query:
- Any valid combination of the above values is supported, e.g.
sort=integration,-order_created_at. - In case of conflicting
sortvalues, e.g./?sort=integration,-integration, the conflicting value will be ignored. - If the
sortquery parameter is not set, the sorting of the retrieved orders will default to-pk. - If an unsupported
sortvalue is provided, the results will be sorted by the default (-pk).
"-order_number"
The maximum number of results to be returned per page
1 <= x <= 200150
The cursor query string is used as the pivot value to filter results. If no value is provided, the first page of results will be returned. To get this value, you must encode the offset, reverse and position into a base64 string.
There are 3 possible parameters to encode:
o: Offsetr: Reversep: Position
For example, r=1&p=300 encoded as a base64 string would be cj0xJnA9MzAw. The query string would then be cursor=cj0xJnA9MzAw.
"cj0xJnA9MzAw"
Response
OK