List Bills by Location

Lists the bills of a location, newest first (bill summaries — fetch GET /sales/bills/{id} for full detail). Pass the literal string all as the id to list bills across every location. Requires the p/r-bill-history permission on the location (company-wide for all). The response search block advertises the q_* filters available to the caller. To fetch the bills of a specific register session — including closed sessions — filter with q_register_session_id.

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

Location id, or the string all for every location.

Query Params
integer

Page number (default 1).

integer

Items per page (default 20).

integer

Set to 1 to return every matching bill without paging (row count is capped server-side).

string

Sort field, optionally with direction as field:asc or field:desc (default direction desc). Allowed fields: id, status, customer, location, total, number, created_at. Default is newest first.

string

Filter by bill number. Exact match on high-bill-volume companies, substring match otherwise.

string

Filter by bill type: sale, refund or void (plus layaway when the layaway setting is enabled and foc for restaurant companies).

string

Filter by bill status: settled, refunded, partially-refunded or voided (plus layaway-pending / layaway-paid when layaway is enabled).

string

Filter by payment status: paid or payment-pending. Note payment-pending also matches partially-paid bills.

string

Filter by delivery status: pending, out-for-delivery or delivered.

string

Filter by created date range in the company timezone, format YYYY-MM-DD,YYYY-MM-DD (inclusive).

string

Filter by customer name or mobile number.

string

Filter by PO number (exact match).

string

Filter by a serial number sold on a bill line (exact match).

integer

Filter to bills booked in the given register session id — works for closed sessions, so this is how an app fetches the bills of a closed register session (get session ids from GET /locations/registers/sessions/location/{id}).

string

Filter by tag name.

string

Filter by KOT number (restaurant companies only, substring match).

Headers
string
required

The merchant install this request acts on (install.store_id from the app.installed webhook).

Response

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