JSR Tax Advisors logoAPI
Developer APIsReference documentation

Download invoice PDF


Downloads the invoice as a PDF file. See the right panel for request examples.

GET /api/sales-invoices/{id}/download-pdf
Path parameters

ParameterTypeRequiredDescription
idstring
Required
The ID of the invoice to download.
Response

Status code: 200 OK

Response headers:

HeaderDescription
Content-Typeapplication/pdf
Content-Dispositionattachment; filename="INV-2024-001.pdf" (filename may vary by invoice)

Response body: Returns the PDF file data in bytes.

The downloaded PDF includes the invoice QR code rendered from the system-generated qr_code_base64 field.

Error responses

StatusDescription
401 UnauthorizedAuthentication required or invalid token.
403 ForbiddenUser not authorized to access this invoice.
404 Not FoundInvoice not found.
500 Internal Server ErrorAn error occurred while processing the request.