Billing /
Get invoice details
Get details about an invoice. If `timestamp` is passed in as a query parameter, this endpoint returns details about the invoice containing that timestamp. Otherwise, returns a preview invoice displaying billing data from after the most recent invoice.
Required permission
Account > Billing > General > Read
Query parameters
timestamp
integerTimestamp of an invoice. If passed in, this endpoint will return details about the invoice that time belongs to.
Response body
- {object}Response object.
data
{object} requiredResult data.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.paid
booleanIf `timestamp` is passed in, whether the invoice has been paid.byocUsage
{object}price
{object}total
numberpaasUsage
{object} requiredprice
{object}total
numbercpu
numbermemory
numberstorage
numberteams
[array]- {object}
id
stringname
stringusage
{object}price
{object}total
numbercpu
numbermemory
numberstorage
numberprojects
[array]- {object}
id
stringprice
{object}total
numbercpu
numbermemory
numberstorage
numberlineItems
[array]- {object}
title
stringtotal
numbersubTotal
numberdiscount
numbertax
{object} requiredDetails about the tax on the invoice.percent
number requiredPercentage of subtotal to be applied as tax.value
number requiredValue of the tax on the invoice.total
number
API
CLI
JS Client
GET /v1/billing/invoices/details
Example response
200 OK
Details about an invoice.
JSON
{
"data": {
"period": {
"start": 1655823815,
"end": 1655910214
},
"tax": {
"percent": 20,
"value": 200
}
}
}