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
invoice_id string required
Invoice ID (format: inv_<uuid>).
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
- Bash
- Python
- JavaScript
curl "https://api.aitronos.com/v1/invoices/inv_123e4567e89b12d3a456426614174000/pdf" \
-H "X-API-Key: $FREDDY_API_KEY" \
-o invoice.pdfResponse:
Binary PDF file with headers:
Content-Type: application/pdf
Content-Disposition: attachment; filename="INV-2024-12-AIT-001.pdf"