Authorization Reversal
China UnionPayREST API
This section describes how to reverse an authorization.
Use the authorization reversal service to reverse an unnecessary or undesired
authorization.
Endpoint
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}
/reversalsTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}
/reversalsThe is the transaction ID returned in the
authorization response.
{id}
Required Fields for a Mass Transit Authorization Reversal
- Set this field toAuthreversal.
Related Information
REST Example: Reversing a Mass Transit Authorization
Request
123456789{"clientReferenceInformation": { "code": "FE978755" }, "reversalInformation": { "amountDetails": { "totalAmount": "999.87" }, "reason": "Authreversal" }}
Response to a Successful Request
123456789101112131415161718192021222324{"_links": { "self": { "method": "GET", "href": "/pts/v2/reversals/7167830399586147504953" } }, "clientReferenceInformation": { "code": "FE978755" }, "id": "7167830399586147504953", "orderInformation": { "amountDetails": { "currency": "THB" } }, "processorInformation": { "responseCode": "000" }, "reversalAmountDetails": { "reversedAmount": "999.87", "currency": "THB" }, "status": "REVERSED", "submitTimeUtc": "2024-05-27T04:10:40Z"}