Skip to main content

Querying Receipt Data

Basics

The data of an existing receipt can be queried based on the receipt number. The implementation is illustrated by the following sample file: ./examples/document/receipt/get_receipt_data.php

To query receipt data, the following steps are required:

// Retrieving data based on the receipt number:
$agent->getReceiptData('NYGTA-2021-001');

// The object containing receipt data, which can be used for further processing:
$result->getDataObj();

Expected and Optional Inputs

NameFieldTypeMandatoryDefault
Receipt numberreceiptNumberstringyes
PDF templatepdfTemplatestring