Skip to main content
GET
List invoices

Authorizations

X-API-Key
string
header
required

User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.

Headers

The legal entity to act on. Required on every request; a user API key can act on any legal entity its user has access to.

Pattern: ^le_[a-zA-Z0-9]+$

Query Parameters

cursor
string

The opaque metadata.nextCursor value from the previous page. It carries that page's filters, page size and ordering, so pass it on its own; see Pagination.

limit
integer

Number of items per page, from 1 to 100. The page size is carried inside metadata.nextCursor, so later pages keep the same size unless limit is passed again to change it.

Required range: 1 <= x <= 100
sort
enum<string>
default:createdAt

Field to order the page by. Each value has its own default direction, used unless sortDirection is passed. See Sorting.

  • createdAt (default) — descending
  • issueDate — descending
  • dueDate — descending
  • total — descending
Available options:
createdAt,
issueDate,
dueDate,
total
sortDirection
enum<string>

Direction of the ordering selected by sort. When omitted, each sort value uses its own default; see Sorting.

Available options:
asc,
desc
status
enum<string>[]

Return only invoices in these statuses.

Available options:
scheduled,
unpaid,
partially_paid,
paid,
void
overdue
boolean

true returns only invoices that are overdue; false excludes them.

customerId
string

Return only invoices for one customer.

accountId
string

Return only invoices that settle into one account.

seriesId
string

Return only invoices issued by one recurring series.

number
string

Return only the invoice with exactly this number.

Required string length: 1 - 50
Pattern: ^[A-Z0-9_-]+$
dueFrom
string<date>

Return only invoices due on or after this YYYY-MM-DD date.

dueTo
string<date>

Return only invoices due on or before this YYYY-MM-DD date.

issueDateFrom
string<date>

Return only invoices issued on or after this YYYY-MM-DD date.

issueDateTo
string<date>

Return only invoices issued on or before this YYYY-MM-DD date.

amountMin
integer

Return only invoices whose total is at least this many cents.

Required range: x >= 0
amountMax
integer

Return only invoices whose total is at most this many cents.

Required range: x >= 0

Match invoices by number, memo or customer name.

Required string length: 1 - 255
includeSummary
boolean

true adds a summary covering every invoice the filters match, not just the current page.

Response

A page of invoices.

items
Invoice · object[]
required
metadata
PaginationMetadata · object
required
summary
InvoiceSummary · object

Totals across every invoice the filters match, not just the current page.