JSR Tax Advisors logoAPI
Developer APIsReference documentation

Download credit note PDF


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

Path parameters

ParameterTypeRequiredDescription
idstring
Required
The ID of the credit note to download.
Response

Status code: 200 OK

Response headers:

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

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 credit note.
404 Not FoundCredit note not found.
500 Internal Server ErrorAn error occurred while processing the request.