Skip to main content
Version: v2alpha1

View invoices using the API

Before you start

Steps

1. List invoices

List the invoices by calling GET /invoices using any filter needed. Check the pagination to understand how list of resources work.

Response

200 OK
{
"cursor": "Q3VyaW9zaXR5IEtpbGxlZCB0aGUgQ2F0Cg==",
"data": [
{
"id": "inv_4ehg1mkv3mvt3256vcn8dspb4h",
[...]
},
{
"id": "inv_4ve0983428h1a56b52sm9v98df",
[...]
},
[...]
]
}

2. Get invoice details

From the previous response, you can get the internal invoice id and get more details about that specific invoice by calling GET /invoices/{invoice_id}.

Response

200 OK
{
"id": "inv_4ehg1mkv3mvt3256vcn8dspb4h",
"groups": [
[...]
],
"lines": [
[...]
],
[...]
}