Required permission
Account > Billing > General > Read
Path parameters
invoiceId
string requiredID of the invoice
Query parameters
teamId
stringThe ID of the team to filter by.projectId
stringThe ID of the project to filter by.resourceType
stringThe resource type to filter by (e.g. service, job, addon, volume).one ofjob, service, addon, volume, opentofu-job, llm-model-deployment, external-addon
Response body
- {object}Response object.
data
{object} requiredResult data.id
string requiredIdentifier for the invoice.period
{object} requiredstart
numberThe start of the billing period, as a Unix timestamp.end
numberThe end of the billing period, as a Unix timestamp.currency
stringThe currency code.byocUsage
{object}price
{object}The customer-level BYOC price total. Always reflects the full customer total, regardless of drill-down filters.total
numberThe total BYOC price, in cents.vcpu
numberThe vCPU usage price, in cents.memory
numberThe memory usage price, in cents.gpuMemory
numberThe GPU memory usage price, in cents.cluster
numberThe cluster usage price, in cents.paasUsage
{object}price
{object}total
numberThe total PaaS price, in cents.cpu
numberThe CPU usage price, in cents.memory
numberThe memory usage price, in cents.storage
numberThe storage usage price, in cents.gpu
numberThe GPU usage price, in cents.teams
[array] requiredAn array of teams with price totals. Projects are included when a teamId or projectId filter is applied, or when there is only one team. Resources are included when a projectId or resourceType filter is applied.- {object}
id
stringIdentifier for the team.name
stringThe name of the team.price
{object}The team's PaaS price. When a projectId or resourceType filter is applied, this reflects only the filtered slice (e.g. one project, or one resource type across the team).total
numberThe total PaaS price, in cents.cpu
numberThe CPU usage price, in cents.memory
numberThe memory usage price, in cents.storage
numberThe storage usage price, in cents.gpu
numberThe GPU usage price, in cents.projects
[array]An array of projects for this team. Present when a teamId or projectId filter is applied, or when the response contains only one team.- {object}
id
stringIdentifier for the project.name
stringThe name of the project.price
{object}The project's PaaS price. When a resourceType filter is applied, this reflects only that resource type's spend within the project.total
numberThe total PaaS price, in cents.cpu
numberThe CPU usage price, in cents.memory
numberThe memory usage price, in cents.storage
numberThe storage usage price, in cents.gpu
numberThe GPU usage price, in cents.resourceTypes
[array]An array of resource types. Present when a projectId or resourceType filter is applied.- {object}
resourceType
stringThe type of the resource (service, job, addon, volume, etc.).price
{object}total
numberThe total PaaS price, in cents.cpu
numberThe CPU usage price, in cents.memory
numberThe memory usage price, in cents.storage
numberThe storage usage price, in cents.gpu
numberThe GPU usage price, in cents.resources
[array]An array of resources of this type.- {object}
id
stringIdentifier for the resource.name
stringThe name of the resource.price
{object}total
numberThe total PaaS price, in cents.cpu
numberThe CPU usage price, in cents.memory
numberThe memory usage price, in cents.storage
numberThe storage usage price, in cents.gpu
numberThe GPU usage price, in cents.lineItems
[array]An array of line items for this invoice.- {object}
title
stringA description of the line item.total
numberThe total cost of the line item, in cents.base
numberThe base amount before proration, in cents.proration
numberThe proration adjustment amount, in cents.subTotal
numberThe subtotal before tax and discounts, in cents.discounts
{object}total
numberThe total discount amount, in cents.tax
{object}percent
numberThe tax percentage.amount
numberThe tax amount, in cents.total
numberThe total cost of the invoice, including tax, in cents.paid
booleanWhether the invoice has been paid.
GET /v1/billing/invoices/{invoiceId}
GET /v1/teams/{teamId}/billing/invoices/{invoiceId}
Example response
200 OK
JSON
{
"data": {
"currency": "usd"
}
}