Download an invoice PDF
GET/v1/orgs/{orgId}/billing/invoices/{invoiceId}/pdf
The PDF (billing:view); 404 pdf_not_ready until it is issued.
Before you call it
- Permission
billing:view
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
invoiceIdpath, uuidrequired | An invoice id from the invoice list. |
Response 200
The PDF
No body.
Errors to handle
| Code | What it means and what to do |
|---|---|
pdf_not_ready404 | The PDF is available once the invoice is issued. |
Every error is a Problem document. Branch on code; quote request_id to support.