Skip to content

List Invoices

GET
/v1/billing/invoices
curl --request GET \
--url 'https://api.qualia.dev/v1/billing/invoices?limit=24' \
--header 'X-API-Key: <X-API-Key>'

The organization’s invoices, newest first, with amounts, status and the PDF. Owners only, as on the Billing page.

limit

At most this many

integer
default: 24 >= 1 <= 100

At most this many

Successful Response

Media type application/json
BillingInvoices

The organization’s invoices, newest first.

object
account_id
required
string
invoices
required
Array<object>
BillingInvoice

One invoice: its amounts in dollars, its status and its PDF.

object
id
required
string
number
string | null
created
required
string format: date-time
period_start
required
string format: date-time
period_end
required
string format: date-time
status
required
string
Allowed values: draft open paid void uncollectible
amount_due_usd
required
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
amount_paid_usd
required
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
total_usd
required
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
description
string | null
hosted_invoice_url
string | null
invoice_pdf
string | null
Example
{
"invoices": [
{
"status": "draft"
}
]
}

Invalid or missing API key

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

The key lacks credits:read or is restricted to workspaces

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

Billing is off on this deployment

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationError
object
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}