GET /api/v1/invoices lists invoices for the session customer (invoice.list). Amounts are integer minor units.
List
GET /api/v1/invoices/:id/pdf returns { url, expiresInSeconds } for a short-lived object URL. Card numbers are not stored on this site.
Markdown source
---
title: Invoices
nav: Invoices
group: Core resources
order: 60
---
# Invoices
`GET /api/v1/invoices` lists invoices for the session customer (`invoice.list`). Amounts are integer minor units.
## List
```curl
curl {{API}}/api/v1/invoices -b cookies.txt
```
```node
const invoices = await fetch(`${api}/api/v1/invoices`, { credentials: "include" }).then((r) => r.json());
```
```python
urllib.request.urlopen(f"{api}/api/v1/invoices")
```
## PDF
`GET /api/v1/invoices/:id/pdf` returns `{ url, expiresInSeconds }` for a short-lived object URL. Card numbers are not stored on this site.
```curl
curl {{API}}/api/v1/invoices/INVOICE_ID/pdf -b cookies.txt
```
```node
const { url } = await fetch(`${api}/api/v1/invoices/${id}/pdf`, { credentials: "include" }).then((r) => r.json());
```
```python
# GET /api/v1/invoices/{id}/pdf then open the returned url
```