List Invoices
GET
/v1/billing/invoices
const url = 'https://api.qualia.dev/v1/billing/invoices?limit=24';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” limit
At most this many
integer
At most this many
Responses
Section titled “ Responses ”Successful Response
Media type application/json
BillingInvoices
The organization’s invoices, newest first.
object
account_id
required
string
invoices
required
Array<object>
BillingInvoiceOne 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
amount_due_usd
required
string
amount_paid_usd
required
string
total_usd
required
string
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>
ValidationErrorobject
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": {} } ]}