Download invoice PDF
GET
/v1/invoices/{id}/pdfReturns a booked invoice or credit note as the PDF the customer gets by email, so you can send it yourself. Numina stores the PDF when the invoice is booked, so every download is the same file. Drafts have no PDF here, because they have no invoice number yet.
Requires one ofinvoices:readread:ledger
Path parameters
- Invoice ID
Errors
401Invalid or missing authentication403Missing scope, or the company is archived404The resource does not exist in this company409The invoice is a draft or an offer429Rate limit exceeded500Internal Server Error
Every error has the same shape. See Errors.
curl https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/pdf \
-H "Authorization: Bearer numi_YOUR_API_KEY"const response = await fetch("https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/pdf", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.NUMINA_API_KEY}`,
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/pdf",
headers={
"Authorization": f"Bearer {os.environ['NUMINA_API_KEY']}",
},
)
data = response.json()