List sales

Returns your sales as a JSON array, oldest first. Narrow it down with the filters below, for example by date, store or receipt number.

Sales in this list don't include their lines. Add get_lines=true if you need them.

Results are paged (50 per page by default, up to 250 with limit). If there's another page, you'll get an X-Next-Page header. Request that path to continue.

Keeping in sync? Save the highest id you've processed and pass it as since_id next time.

See Filtering, sorting and search for how the filters, ranges and sort work.

Required permission (any one of these):

GroupPermission
SalesList and view sales; manage = create sales and change their staff member or customer
SalesCreate, edit and delete sales; manage = create sales and change their staff member or customer (includes view)
Query Params
integer

Only return sales with an id greater than this one. Use it for incremental syncs.

ids
array of int64s

Only return these sales, comma-separated, e.g. 1152264,1157926.

ids
date-time

Only return sales created on or after this time (UTC). Accepts 2026-09-01 or 2026-09-01T00:00:00Z. An invalid value returns an empty list.

date-time

Only return sales created on or before this time (UTC).

string

Find the sale with this exact receipt number.

string

Search by receipt number or by customer name or email.

store_in
array of int64s

Only return sales from these store IDs, comma-separated.

store_in
number

Only return sales with a total_price of at least this amount.

string

Older way to choose the sort field, used with sort=asc or sort=desc. Still supported. Keys: id, created, updated, localcreated, receiptnumber, totalprice, totalpaid, totaldiscount, totalquantity, customerid, storeid.

string

Sort order. Use sort=key for ascending or sort=-key for descending, for example sort=-created. Keys: id, created, updated, localcreated, receiptnumber, totalprice, totalpaid, totaldiscount, totalquantity, customerid, storeid. The older sort_field=key&sort=asc|desc style still works.

boolean

Set to true to include each sale's lines.

integer
1 to 250
Defaults to 50

How many sales per page. Defaults to 50, maximum 250.

string

Paging cursor. Don't build it yourself; take the whole path from the X-Next-Page header.

string

Comma-separated list matched against register.

date-time

Less than (not including) the total_price.

date-time

Less than (not including) the total_discount.

date-time

Greater than (not including) the total_discount.

date-time

Less than (not including) the total_loyalty.

date-time

Greater than (not including) the total_loyalty.

date-time

Less than (not including) the total_loyalty_points.

date-time

Greater than (not including) the total_loyalty_points.

string

Comma-separated list matched against customer_id.

string
^\d+(,\d+)*$

Matches one store id or a comma-separated list (up to 200).

string

Comma-separated list matched against store_id.

string
^\d+(,\d+)*$

Matches one customer id or a comma-separated list (up to 200).

string
^\d+(,\d+)*$

Matches one employee id or a comma-separated list (up to 200).

string
^\d+(,\d+)*$

Matches one register or a comma-separated list (up to 200).

number

Minimum total price, inclusive.

number

Maximum total price, inclusive.

number

Minimum total paid, inclusive.

number

Maximum total paid, inclusive.

number

Minimum total tax, inclusive.

number

Maximum total tax, inclusive.

number

Minimum total discount, inclusive.

number

Maximum total discount, inclusive.

string
^\d+(,\d+)*$

Matches one total quantity or a comma-separated list (up to 200).

integer

Minimum total quantity, inclusive.

integer

Maximum total quantity, inclusive.

string

From this local created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this local created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this updated. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this updated. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

Responses

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