Canceling a transaction
Tpay allows the cancellation of unpaid transactions by assigning them the status "cancel." A transaction that remains unpaid for 30 calendar days will be automatically canceled and cannot be paid. If a payer attempts to complete the payment, they will be informed that it is no longer possible. If, despite this, the payment is processed, the funds will be automatically refunded to the payer. Transactions can be canceled manually from the Merchant Panel or via the API.
Canceling a transaction in Merchant Panel
- Log in to your account to the Merchant Panel.
- Navigate to tab Transaction > List.
- Select the transaction you want to cancel.
- Use the option Cancel.
The ability to cancel transactions is available for accounts with the following permissions: Admin, IT and Accounting (full access).
Send a request to cancel a transaction
To change the status of a transaction to canceled, send a POST
request to endpoint:
https://api.tpay.com/transactions/{transactionId}/cancel
Replace {transactionId}
with the ID of the transaction you want to cancel:
https://api.tpay.com/transactions/ta_7dbkalWZoLYJ12Yw/cancel
Check the details in the API Reference documentation: POST /transactions/{transactionId}/cancel
In the request, specify the following parameters:
transactionId | The unique identifier of the transaction. |
The request body should be empty:
Example:
The status change is only possible for pending transactions. It does not apply to transactions that have already been successfully paid, refunded, or completed with an error.