SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Invoices

POST

List Invoices

Newest first, with a total count, counts per status group, and the money bar: overdue, not due yet, drafts and paid in the last 30 days, each with a count and an amount in your books' currency. Read only, so previewOp is enough.

Parameters

params.statusString

draft, sent, viewed, partially_paid, paid, overdue, void, or open

params.statuses[String]

Any of these statuses (open counts as sent, viewed, partly paid and overdue)

params.bucketString

One money-bar segment: overdue, not_due, draft, paid_30, open or all

params.contact_idString

One customer's invoices

params.searchString

Matches the invoice number or the customer's name

params.issued_fromDate

Issued on or after (YYYY-MM-DD)

params.issued_toDate

Issued on or before (YYYY-MM-DD)

params.amount_minString

Total at least this

params.amount_maxString

Total at most this

params.limitInt

Page size (default 100)

params.offsetInt

Skip this many (default 0)

Request
query {
  previewOp(organizationId: "a1b2c3d4-...", name: "list_invoices", params: { status: "open" }) { result }
}
Response
{
  "data": { "previewOp": { "result": { "summary": "3 Invoice(s); 2260.00 Owed, 1130.00 Overdue On This Page." } } }
}