List invoices
Changed onList invoices. Add includeSummary=true for the count and outstanding balance of every invoice the filters match.
Request
- Base URLhttps://api.slash.com
- URLhttps://api.slash.com/v2/invoices
- AuthAPI key in header X-API-Key
Query parameters
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.
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.
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
Direction of the ordering selected by sort. When omitted, each sort value uses its own default; see Sorting.
Return only invoices in these statuses.
true returns only invoices that are overdue; false excludes them.
Return only invoices for one customer.
Return only invoices that settle into one account.
Return only invoices issued by one recurring series.
Return only the invoice with exactly this number.
Return only invoices due on or after this YYYY-MM-DD date.
Return only invoices due on or before this YYYY-MM-DD date.
Return only invoices issued on or after this YYYY-MM-DD date.
Return only invoices issued on or before this YYYY-MM-DD date.
Return only invoices whose total is at least this many cents.
Return only invoices whose total is at most this many cents.
Match invoices by number, memo or customer name.
true adds a summary covering every invoice the filters match, not just the current page.
Response
A page of invoices.
Example response
{
"items": [
{
"id": "inv_2rj4l7hmrrrcv",
"number": "INV-1042",
"customerId": "le_cus_2rj4l7hmrrrcv",
"accountId": "sa_group_2rj4l7hmrrrcv",
"timezone": "America/New_York",
"lineItems": [
{
"name": "Robot arm maintenance",
"quantity": 2
}
],
"discount": {
"percent": 10
},
"taxRate": 8.5,
"payments": [
{
"id": "inv_tr_link_2rj4l7hmrrrcv",
"transactionId": "agg_tx_2rj4l7hmrrrcv"
}
],
"documentId": "st_2rj4l7hmrrrcv"
}
]
}Changes
- info
endpoint added
- info