Lists the service provider's invoices, filtered and sorted.
Every filter is optional and combining two narrows to invoices that satisfy both. Each id filter is a comma-separated list and an invoice matches if its id is any of them; a value that is not an id is rejected with 400. A well-formed value that matches nothing is an empty page, not a 404. Deleted invoices are never listed.
SubTotal is the line-item total before discount and tax; Total is
SubTotal - TotalDiscount + TotalTax. AmountPaid is computed live from recorded
payments, and AmountDue is Total - AmountPaid, floored at 0.
InvoiceDate and DueDate are calendar dates. InvoiceDateSince/Before
and DueDateSince/Before bound them the same way every other date filter on this
surface does: the lower bound includes the day it names and the upper bound excludes it.
SortBy is one of createdOn (default), updatedOn, date (InvoiceDate),
dueDate or totalAmount; SortOrder is asc or desc (default).
Authorizations
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
Query Parameters
Opaque pagination cursor from a previous page; omit for the first page. Only valid against the same filters and sort that produced it.
Number of items per page. 1-200 (default 50); out of range is a 400, never clamped.
Comma-separated client ids; keeps only invoices billed to any of them.
Comma-separated status ids: 1 Draft, 2 Submitted, 3 Paid, 4 Void, 5 Approved. Any other id is a 400. Omitted returns every status; deleted invoices are never listed.
Comma-separated contract ids; keeps only invoices raised from any of them.
Exact match on the invoice's bare sequential number (the wire's Number, not DisplayNumber). A value that does not parse as a whole number is a 400.
Keeps only invoices dated at or after this date.
Keeps only invoices dated strictly before this date.
Keeps only invoices due at or after this date.
Keeps only invoices due strictly before this date.
Keeps only invoices that have (true) or have not (false) been emailed to the client.
Keeps only invoices created at or after this instant.
Keeps only invoices created at or before this instant.
Keeps only invoices last updated at or after this instant.
Keeps only invoices last updated at or before this instant.
Free-text search against the invoice number, reference and name.
Sort field: createdOn (default), updatedOn, date, dueDate or totalAmount.
Sort direction: asc or desc (default).
Response
OK
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511 The DataContext of a cursor-paginated success response: carries the paging metadata
for the returned page.