Cancel a payment transaction
Change status of transaction to cancelled in the database and cancel related payment in payment service side
POST
/v1/transactions/cancelauthorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
idstring
Id of transaction to cancel
Format
uuidreasonstring
Reason of cancellation
isExpired?boolean
Identify if transaction has expired
Response Body
application/json
curl -X POST "http://localhost:4006/v1/transactions/cancel" \ -H "Content-Type: application/json" \ -d '{ "id": "943b7161-76d5-4ab5-aae0-c7a996ce2684", "reason": "FULLY_PAID" }'{
"success": true
}