Skip to main content

Generating a Reverse Receipt

Basics

An example of generating a reverse receipt is illustrated in the following file: ./examples/document/receipt/create_reverse_receipt.php

To generate a reverse receipt, the following steps are required:

// 1. Creating a reverse receipt
// (specifying the receipt number to be reversed as a parameter)
$receipt = new ReverseReceipt('NYGTA-2021-001');

// 2. Generating the reverse receipt
$result = $agent->generateReverseReceipt($receipt);

Expected and Optional Inputs

Receipt Header Data

DescriptionFieldTypeRequiredDefault Value
Receipt numberreceiptNumberstringyes
PDF templatepdfTemplatestring
Call identifiercallIdstring