post https://api.reepay.com/v1/invoice//transaction//cancel
Cancel a pending, authorized or processing transaction. Not all processing transactions can be cancelled, it depends on the payment method.
Errors
The operation can generate the following errors beside the generic HTTP error codes described here.
Error code | HTTP code | Description |
---|---|---|
31 | 404 | Invoice not found |
70 | 404 | Transaction not found |
109 | 400 | Transaction wrong state must be pending, authorized or processing (in some cases) |
108 | 500 | Transaction cancel failed in case of authorization because of acqurier rejection or error. See transaction_error See transaction errors. |