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
Description | Field | Type | Required | Default Value |
---|---|---|---|---|
Receipt number | receiptNumber | string | yes | |
PDF template | pdfTemplate | string | ||
Call identifier | callId | string |