REST API | Visa Platform Connect

REST Example: Processing an Authorization Reversal

Endpoint

Production:
POST
https://nabgateway-api.nab.com.au
/pts/v2/payments/{id}/reversals
Test:
POST
https://nabgateway-api-test.nab.com.au
/pts/v2/payments/{id}/reversals
For this example, the
{id}
portion of the URL is set to the transaction ID included in the authorization you want to void:
6869458685866438003955
Request
{ "clientReferenceInformation": { "code": "test123", "partner": { "thirdPartyCertificationNumber": "testTPCN" } } "orderInformation" : { "amountDetails" : { "currency" : "USD" } }, "reversalInformation" : { "amountDetails" : { "totalAmount" : "100.00" } } }
Response to a Successful Request
{ "_links" : { "self" : { "method" : "GET", "href" : "/pts/v2/reversals/6869460219566537303955" } }, "clientReferenceInformation" : { "code" : "RTS-Auth-Reversal" }, "id" : "6869460219566537303955", "orderInformation" : { "amountDetails" : { "currency" : "USD" } }, "processorInformation" : { "responseCode" : "200" }, "reconciliationId" : "82kBK3qDNtls", "reversalAmountDetails" : { "reversedAmount" : "100.00", "currency" : "USD" }, "status" : "REVERSED", "submitTimeUtc" : "2023-06-16T20:07:02Z" }