Skip to main content

Receipt PDF Download


An existing receipt can be downloaded as a PDF document. The implementation is demonstrated in the following example file: ./examples/document/receipt/get_receipt_pdf.php

To download the receipt PDF, follow these steps:

// Download based on receipt number:

// The response is a PDF type receipt, which can be downloaded as follows:

The filename is optional. If not provided, the receipt number will be used as the filename for the PDF.

Expected and Optional Inputs

Receipt Header Data

Receipt numberreceiptNumberstringyes
PDF templatepdfTemplatestring