4. Optional - Cancel Transaction
This page describes the Cancel Transaction API call.
Overview
In some cases merchants need to cancel a transaction with Hoox. For example., if a buyer cancelled his purchase. This can be done using Hoox platform or using this API call.
The response object contains a transactionCancelationId
that should be kept for future inquiries.
When Should You Send This Call
This API call can be sent whenever is most suitable for the merchants, and should not influence business flow. card was charged successfully.
Report the cancelation of a completed transaction to Hoox.
Payload to send in the cancel transaction request body.
The merchant ID provided by Hoox.
mid@FdnU121922
The branch ID provided by Hoox.
is@FdnU121311
The API Key provided by Hoox.
bc@ut654!
The Key Policy key provided by Hoox.
hkp254768901
The transaction confirmation id recieved in the Transaction response.
trid12Abs
POST /cancelTransaction HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 146
{
"merchantId": "mid@FdnU121922",
"branchId": "is@FdnU121311",
"apiKey": "bc@ut654!",
"keyPolicy": "hkp254768901",
"transactionConfirmationId": "trid12Abs"
}
{
"transactionCancelationId": "123e4567-e89b-12d3-a456-426614174000",
"cancelled": true,
"message": "OK"
}
Though Hoox keeps all transactionConfirmationId for you in our platform, it is a good practice to save them in your database for future inquiries.
Last updated