Billing /
List invoices
Get a list of past invoices
Required permission
Account > Billing > General > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.invoices
{object}period
{object} requiredInformation about the billing period of the invoice.start
number requiredUnix timestamp of the start of the billing period.end
number requiredUnix timestamp of the end of the billing period.currency
string requiredCurrency code for the currency the invoice is billed in.total
number requiredTotal cost of the invoice, in cents, including tax.subTotal
number requiredTotal cost of the invoice, in cents, excluding tax.paid
booleanIf `timestamp` is passed in, whether the invoice has been paid.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/billing/invoices
Example response
200 OK
Details about an invoice.
JSON
{
"data": {
"invoices": {
"period": {
"start": 1655823815,
"end": 1655910214
},
"currency": "usd",
"total": 1200,
"subTotal": 1000
}
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}