List Sales Orders

Return a list of sales orders.

Pagination. Every response carries paginator.nextCursor. To get the next page, send it
back as cursor together with the same filters and order; it is null on the last page.
Following nextCursor reaches every sales order, however many there are, and the nextCursor
of a page fetched by number continues right after that page. A page fetched by cursor has no
paginator.currentPage.

page is still accepted, but it only reaches the first 10,000 sales orders: when more match, a
page past them returns no sales orders. paginator.totalItemsCount is capped at 10,000 for the
same reason.
Use cursor to go further.

Order. Sales orders are ordered by order_by (default created_at) in order_direction
(default asc). Sales orders that share that value are ordered by sales order id, in the same
direction, so every sales order has one place in the list and pages neither repeat nor skip
one. An order whose order_by value changes while you page (a new last_updated_at) moves to
its new place. Sales order ids do not follow the creation order.

What last_updated_at holds. It is the latest of the order's placement, payment, payment
rejection, dispatch and cancellation dates, as the marketplace reports them, in UTC. Other changes
(refunds, tracking codes, delivery status, items, addresses) do not move it, and a dispatch can be
recorded with a date earlier than the time eDesk received it. So filter_last_updated_at_gte does
not return every order changed since a given time: to refresh a copy, page again by cursor
through the orders of the period you keep (e.g. with filter_created_at_gte) and upsert them by
id.

Parameters. Only the parameters below are supported; any other query parameter is ignored.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum

Order by field (default created_at). Sales orders with the same value are ordered by id. Values of order_by and order_direction are not case-sensitive.

Allowed:
string
enum

Order direction (default asc)

Allowed:
string

The paginator.nextCursor of the previous page. It must be sent with the same filters and order as the request that returned it, and cannot be combined with page.

integer
≥ 1

Page number, starting at 1. Only reaches the first 10,000 sales orders; use cursor to go further. A value below 1 is read as 1, and a page past the last one returns the last page.

integer
1 to 1000
Defaults to 20

Number of sales orders per page. A value above 1000 is read as 1000; a value below 1 as the default.

int64

Filter by contact ID

filter_contact_id_list
array of int64s
length ≤ 500

Orders of any of these contacts, comma separated, e.g. filter_contact_id_list=12,34 (or filter_contact_id_list[]=12&filter_contact_id_list[]=34). Up to 500 contact IDs.

filter_contact_id_list
int64

Filter by channel ID

filter_channel_id_list
array of int64s

Orders on any of these channels, comma separated, e.g. filter_channel_id_list=12,34 (or filter_channel_id_list[]=12&filter_channel_id_list[]=34).

filter_channel_id_list
filter_channel_id_excluding
array of int64s

Orders on none of these channels, comma separated, e.g. filter_channel_id_excluding=12,34.

filter_channel_id_excluding
string

Orders on the channels of this brand. Brand names are matched ignoring case. A name that matches no brand returns no orders.

filter_brand_name_list
array of strings

Orders on the channels of any of these brands, comma separated, e.g. filter_brand_name_list=Brand A,Brand B. When a brand name contains a comma, repeat the parameter instead: filter_brand_name_list[]=Smith, Jones&filter_brand_name_list[]=Brand B. Names are matched ignoring case; when none of them matches a brand, no orders are returned.

filter_brand_name_list
filter_brand_name_excluding
array of strings

Orders on none of the channels of these brands, comma separated (repeat the parameter with [] when a brand name contains a comma). Names are matched ignoring case.

filter_brand_name_excluding
string

Filter by seller order ID

filter_seller_order_id_list
array of strings
length ≤ 500

Orders with any of these seller order IDs, comma separated, e.g. filter_seller_order_id_list=123-4567890-1234567,A1B2C3 (or repeated with []). Each one is matched like filter_seller_order_id_equals. Up to 500 seller order IDs.

filter_seller_order_id_list
string
enum

Filter by status. CancelRequested is an order whose buyer asked for a cancellation that is not settled yet.

filter_status_list
array of strings

Orders with any of these statuses, comma separated, e.g. filter_status_list=OrderReceived,PaymentAccepted (or filter_status_list[]=OrderReceived&filter_status_list[]=PaymentAccepted). The values are those of filter_status_equals. Sent together with filter_status_equals, an order must have that status and it must be in the list.

filter_status_list
boolean

true returns the cancelled orders: status Canceled or a cancellation date (order_canceled_at). false returns the orders with neither.

boolean

true returns the orders refunded in full or in part, as the eDesk app shows them (refunds recorded from Shopify, TikTok Shop, Walmart, and Amazon refunds sent from eDesk). These are the orders with an order_refunded_at. false returns the orders without a refund.

int64

Filter by sales order ID greater than or equal to

int64

Filter by sales order ID less than or equal to

string

Sales orders created at or after this date or date-time, in ISO 8601: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS, optionally followed by Z or an offset such as +02:00. Without an offset the time is read in the timezone of the API user. A date alone means the start of that day. Without filter_created_at_lte, the results stop at the end of today.

string

Sales orders created at or before this date or date-time, in the format of filter_created_at_gte. A date alone means the end of that day.

string

Sales orders last updated at or after this date or date-time, in the format of filter_created_at_gte. A date alone means the start of that day. Without filter_last_updated_at_lte, the results stop at the end of today.

string

Sales orders last updated at or before this date or date-time, in the format of filter_created_at_gte. A date alone means the end of that day.

string

Orders cancelled at or after this date or date-time (order_canceled_at), in ISO 8601: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS, optionally followed by Z or an offset such as +02:00. Without an offset the time is read in the timezone of the API user. A date alone means the start of that day. Orders without a cancellation date are left out.

string

Orders cancelled at or before this date or date-time (order_canceled_at), in the format of filter_canceled_at_gte. A date alone means the end of that day. Orders without a cancellation date are left out.

string

Orders last refunded at or after this date or date-time (order_refunded_at), in the format of filter_canceled_at_gte. A date alone means the start of that day. Orders without a refund are left out.

string

Orders last refunded at or before this date or date-time (order_refunded_at), in the format of filter_canceled_at_gte. A date alone means the end of that day. Orders without a refund are left out.

string
length ≤ 255

Full-text search, as the search box of the sales orders in the eDesk app: orders whose order number, order details (such as product titles and SKUs), buyer name, email or phone, or shipping address match. An order matches when it contains any of the words, ignoring case; words match whole, not as prefixes. Put words in double quotes to match them as a phrase: fsf_query="Jane Doe". The orders found come in the order of order_by, like with any filter. Combines with the other filters. Up to 255 characters.

include
array of strings

Optional fields to add to each sales order, comma separated, e.g. include=ship_to,refund_amount (or include[]=ship_to&include[]=refund_amount). The default fields are always returned. Optional product fields of the order items are named with their path, e.g. include=order_items.product.price.

include
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json