⚠️ The following is for reference only. The behavior may be different per country. For example, some countries only use cancellations, while others use a combination of cancellations and credit notes. Please refer to the country-specific documentation.
Here you can find up-to-date API documentation about this operation.
Clients can request a cancellation for a previously submitted transaction. The transaction is reported to the tax authorities when applicable and a cancellation document referencing the original invoice is generated if PDF generation is enabled.
To cancel a transaction, send the following HTTP request
POST api.fonoa.com/v1/transactions/cancellation
with the following JSON body:
POST https://api.fonoa.com/v1/transactions/cancellation
{
"country_code": "IE",
"transaction_date": "2022-12-23T12:44:55Z",
"transaction_id": "MY_CANCELLATION_TRANSACTION_ID",
"reference_transaction_id": "MY_ORIGINAL_TRANSACTION_ID",
"note": "This is my call to action for <b>cancelling</b> a transaction."
}
The original transaction is referenced by transaction_id
provided by the client at the time of submission.
The rest of the flow is the same.