v1

latestOpenAPI 3.0.02026-07-263365201.7 KB
Invoices

Retrieve an invoice

Download the PDF of an invoice

get/invoices/{id}

Path parameters

idstring required
Example:inv_drjjua6ampd1op2fg98k89x8

Response

Retrieve the invoice details

OR
OR

Example response

{
  "id": "inv_drjjua6ampd1op2fg98k89x8",
  "customer": "cus_a8n8ol7yd4h0wohx824f0bui",
  "subscription": "sub_jd8mlscm062jb6ks50tck9gi",
  "invoice_number": "H62SU12A-003",
  "month": 4,
  "year": 2025,
  "period_start": "2025-03-31T22:00:00Z",
  "period_end": "2025-04-30T22:00:00Z",
  "period_number": 3,
  "status": "open",
  "type": "usage",
  "usage": 100,
  "total": 110.04
}