Skip to main content

Response

Expected results of reversing receipts

The response format is xmlnyugtavalasz XML – the same as for generating receipts. The response contains the data of the storno receipt, not the original receipt.

  • If <pdfLetoltes>true</pdfLetoltes>, the response includes the storno receipt PDF as well (<nyugtaPdf>, base64-encoded), alongside the <nyugta> block.
  • If <pdfLetoltes>false</pdfLetoltes>, only the <nyugta> block is returned with the newly created storno receipt data.

A successful call returns <sikeres>true</sikeres>, followed by the <nyugta> block with the storno receipt data (<tipus>SN</tipus>). On failure (<sikeres>false</sikeres>), <hibakod/> and <hibauzenet/> are also returned.

Error handling

The following errors may occur during reversal:

CaseError message
The receipt number does not existMissing data: receipt to reverse (no such receipt number)
The receipt has already been reversedMissing data: receipt to reverse (this receipt has already been reversed: RECEIPT_NUMBER)
The receipt is itself a storno receiptMissing data: receipt to reverse (this receipt is a storno receipt)
tip

If the response indicates an error, look up the code on the Error handling & error codes page. If you cannot find the code or experience an unexpected issue, contact support.