Skip to main content

v0/billing/invoices REST API Endpoint

Returns a list of invoices

Updated on
Sep 27, 2024

v0/billing/invoices REST API Endpoint

Parameters

This method does not accept any parameters

Returns

data
object
The data object which contains the following fields:
invoices
array
An array of invoices
id
string
The unique identifier for the invoice
status
string
The current state of the invoice
billing_reason
string
The reason for generating the invoice
amount_due
integer
The total amount that is due on the invoice
amount_paid
integer
The total amount that has been paid for the invoice
subtotal
integer
The total cost of the invoice
lines
array
An array of lines which contains the following fields:
description
string
A detailed description of each line item billed
amount
integer
The cost associated with each line item
period_end
integer
The end timestamp of the billing period for the invoice in second
period_start
integer
The start timestamp of the billing period for the invoice in second
created
integer
The timestamp when the invoice was created in second
error
string
An error message if any issue occurs
Request
1
curl -X 'GET' \
2
'https://api.quicknode.com/v0/billing/invoices' \
3
-H 'accept: application/json' \
4
-H 'x-api-key: YOUR_API_KEY'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free