Reverse an authorised payment to cancel the authorisation that the customer's issuing bank provided for your transaction. If the issuing bank supports it, the reversal also releases the funds held for a later capture.
You cannot undo a reversal. Reverse an authorisation only when you are certain the transaction is no longer valid. To charge the customer again, create a new order and authorise a new payment.
You can reverse an authorisation only if the payment has no pending or completed captures or refunds.
Request
Send a PUT request to /transactions/outlets/{outletRef}/orders/{orderRef}/payments/{paymentRef}/cancel. The sandbox base URL is https://api-gateway.sandbox.ngenius-payments.com.
PUT https://api-gateway.sandbox.ngenius-payments.com/transactions/outlets/{outletRef}/orders/{orderRef}/payments/{paymentRef}/cancelYou can also read the full link from the order object at response._embedded.payment[index]._links["cnp:cancel"].href. The index value is always 0 unless the order is a recurring payment.
Path parameters
| Parameter | Description |
|---|---|
outletRef | The outlet reference for your outlet |
orderRef | The reference of the order |
paymentRef | The reference of the payment to reverse |
Headers
| Header | Value |
|---|---|
Authorization | Bearer ACCESS_TOKEN |
Content-Type | application/vnd.ni-payment.v2+json |
Accept | application/vnd.ni-payment.v2+json |
Replace ACCESS_TOKEN with the access token you get from the Identity API.
No request body requiredAuthorisation reversals, capture cancellations and refund cancellations do not need a request body.
Example response
A successful reversal returns the payment with the state value REVERSED.
{
"_id": "urn:payment:ea55a956-5d52-42a7-9503-c5de65806dd9",
"_links": {
"self": {
"href": "https://api-gateway.sandbox.ngenius-payments.com/transactions/outlets/670bfc06-63d6-472b-af75-ad0207ac44f5/orders/cb8723e3-d2a4-4bc1-af70-9bbefdda13bb/payments/ea55a956-5d52-42a7-9503-c5de65806dd9"
},
"curies": [
{
"name": "cnp",
"href": "https://api-gateway.sandbox.ngenius-payments.com/docs/rels/{rel}",
"templated": true
}
]
},
"reference": "ea55a956-5d52-42a7-9503-c5de65806dd9",
"paymentMethod": {
"expiry": "2029-04",
"cardholderName": "Jane Doe",
"name": "VISA",
"pan": "411111******1111"
},
"savedCard": {
"maskedPan": "411111******1111",
"expiry": "2029-04",
"cardholderName": "Jane Doe",
"scheme": "VISA",
"cardToken": "dG9rZW5pemVkUGFuLy92MS8vU0hPV19OT05FLy8xMTExMTExNDExMTExMTEx",
"recaptureCsc": true
},
"state": "REVERSED",
"amount": {
"currencyCode": "AED",
"value": 7654321
},
"updateDateTime": "2025-04-23T10:50:56.341037625Z",
"outletId": "670bfc06-63d6-472b-af75-ad0207ac44f5",
"orderReference": "cb8723e3-d2a4-4bc1-af70-9bbefdda13bb",
"originIp": "196.5.8.18",
"authResponse": {
"authorizationCode": "AB0012",
"success": true,
"resultCode": "00",
"resultMessage": "Successful approval/completion or that VIP PIN verification is valid",
"mid": "10089865858",
"systemAuditTraceNumber": "043891",
"rrn": "511210043891"
},
"3ds2": {
"eci": "05",
"transStatus": "Y",
"messageVersion": "2.2.0",
"acsReferenceNumber": "00001ACS00001",
"threeDSMethodURL": "https://paypage-uat.ngenius-payments.com/fake/3ds2/method",
"threeDSServerTransID": "6f504b78-7bf9-4afc-95f9-63ee17bdf22d",
"acsURL": "https://paypage-uat.ngenius-payments.com/fake/3ds2/acs?challengeNotificationUrl=https%3A%2F%2FnotificationURL.com",
"acsTransID": "8ce532a9-3dd4-474a-9fc9-3dc411a6063b",
"directoryServerID": "M000000004",
"base64EncodedCReq": "eyJ0cmFuc1N0YXR1cyI6IkMiLCJ0aHJlZURTU2VydmVyVHJhbnNJRCI6IjZmNTA0Yjc4LTdiZjktNGFmYy05NWY5LTYzZWUxN2JkZjIyZCIsIm1lc3NhZ2VWZXJzaW9uIjoiMi4yLjAiLCJjaGFsbGVuZ2VDb21wbGV0aW9uSW5kIjoiMDEiLCJtZXNzYWdlVHlwZSI6IjAxIiwiYWNzVHJhbnNJRCI6IjhjZTUzMmE5LTNkZDQtNDc0YS05ZmM5LTNkYzQxMWE2MDYzYiJ9"
},
"mid": "10089865858"
}The amount.value of 7654321 is in fils, the minor unit of AED. It equals AED 76,543.21.

