Skip to content
Last updated

Download an invoice as a PDF file. Non-staff users can only download their organization's invoices.

GEThttps://api.aitronos.com/v1/invoices/{invoice_id}/pdf

Path Parameters

invoice_id string required

Invoice ID (format: inv_<uuid>).

Returns

Returns a PDF file with the invoice. The response includes:

  • Content-Type: application/pdf
  • Content-Disposition: attachment; filename="INV-2024-12-AIT-001.pdf"
  • Body: Binary PDF data
Bash
curl "https://api.aitronos.com/v1/invoices/inv_123e4567e89b12d3a456426614174000/pdf" \
  -H "X-API-Key: $FREDDY_API_KEY" \
  -o invoice.pdf

Response:

Binary PDF file with headers:

Content-Type: application/pdf
Content-Disposition: attachment; filename="INV-2024-12-AIT-001.pdf"