Skip to main content
POST
Search invoices

Authorizations

X-SALESBRICKS-KEY
string
header
required

API key for authentication

Query Parameters

limit
integer

Number of results to return per page.

offset
integer

The initial index from which to return the results.

Body

Mixin for validating a seller-supplied metadata input.

invoice_numbers
string[]

Filter invoices by invoice number (e.g. '6c12021a-4')

invoice_ids
string<uuid>[]

Filter invoices by invoice ID

customer_id
string<uuid>

Filter invoices by customer ID

subscription_id
string<uuid> | null

Filter invoices by subscription ID. Pass null to match invoices with no subscription. Omit to apply no subscription filter.

statuses
enum<string>[]

Filter invoices by status.

Current status of the invoice. One of:

  • MUTED — Invoice will not be sent. Muted invoices come from migration cut-overs or from muting invoices in the product settings.
  • SCHEDULED — Scheduled to be issued on a future date.
  • OUTSTANDING — Issued and awaiting payment.
  • DUE — Payment is due.
  • PAST_DUE — Payment is past its due date.
  • PAID — Fully paid.
  • PARTIALLY_PAID — Partially paid, with a remaining balance.
  • ADJUSTED — Adjusted after issuance.
  • CREDITED — Settled by applying credit.
  • UNPAID — Unpaid.
  • PAUSED — Collection is paused.
  • VOIDED — Voided and no longer collectible.
  • MUTED - Muted
  • SCHEDULED - Scheduled
  • DRAFT - Draft
  • OUTSTANDING - Outstanding
  • DUE - Due
  • PAST_DUE - Past due
  • PAID - Paid
  • PARTIALLY_PAID - Partially Paid
  • ADJUSTED - Adjusted
  • CREDITED - Credited
  • UNPAID - Unpaid
  • PAUSED - Paused
  • VOIDED - Voided
Available options:
MUTED,
SCHEDULED,
DRAFT,
OUTSTANDING,
DUE,
PAST_DUE,
PAID,
PARTIALLY_PAID,
ADJUSTED,
CREDITED,
UNPAID,
PAUSED,
VOIDED
currencies
enum<string>[]

Filter invoices by currency (e.g. USD, EUR)

  • USD - United States Dollar
  • EUR - Euros
  • GBP - Great British Pound
  • AUD - Australian Dollar
  • CAD - Canadian Dollar
  • INR - Indian Rupee
Available options:
USD,
EUR,
GBP,
AUD,
CAD,
INR
metadata
object

Filter invoices by metadata. All supplied key/value pairs must be present on the invoice.

due_date_min
string<date>

Earliest due date (inclusive, start of day in your account's timezone). Filters on due date only — paid invoices are not implicitly excluded; combine with statuses to narrow.

due_date_max
string<date>

Latest due date (inclusive, end of day in your account's timezone).

issued_date_min
string<date>

Earliest invoice date (inclusive, start of day in your account's timezone). Filters on the invoice's billing-run date — the date the invoice was generated.

issued_date_max
string<date>

Latest invoice date (inclusive, end of day in your account's timezone).

paid_date_min
string<date>

Earliest fully-paid date (inclusive, start of day in your account's timezone).

paid_date_max
string<date>

Latest fully-paid date (inclusive, end of day in your account's timezone).

days_past_due_min
integer

Minimum days between the due date and now (inclusive). Invoices with no outstanding balance have no days-past-due value and never match this filter.

Required range: x >= 0
days_past_due_max
integer

Maximum days between the due date and now (inclusive).

Required range: x >= 0
amount_due_min
integer

Minimum remaining unpaid amount in minor currency units (inclusive).

amount_due_max
integer

Maximum remaining unpaid amount in minor currency units (inclusive).

paid_amount_min
integer

Minimum total paid amount (including partial payments) in minor currency units (inclusive).

paid_amount_max
integer

Maximum total paid amount (including partial payments) in minor currency units (inclusive).

search_term
string

Free-text search across invoice numbers, customer names, invoice UUIDs, and amounts.

ordering
enum<string>

Order results by field, prefixed with '-' for descending. 'amount_due' is the remaining amount. Defaults to newest first.

  • issued_at - issued_at
  • -issued_at - -issued_at
  • due_at - due_at
  • -due_at - -due_at
  • amount_due - amount_due
  • -amount_due - -amount_due
Available options:
issued_at,
-issued_at,
due_at,
-due_at,
amount_due,
-amount_due

Response

count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?offset=400&limit=100"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?offset=200&limit=100"