FPX Refunds
This section describes how to issue a refund.
Endpoints
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}
/refundsTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}
/refundsThe is the request ID
contained in the original transaction request.
{id}
FPX Fields
- clientReferenceInformation.originalTransactionId
Example: Requesting an FPX Refund Using the REST API
Request
123456789101112131415161718{"orderInformation": { "amountDetails": { "totalAmount": "1", "currency": "MYR" } }, "clientReferenceInformation": { "code": "sale1077", "originalTransactionId": "832620566" }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "fpx" } } }}
Response to a Successful Request
12345678910{"clientReferenceInformation": { "transactionid": "sale1077" }, "processorInformation": { "transactionId": "144051805" }, "message": "Successful", "status": "REFUNDED", "id": "6523329019126746031908", "submitTimeUtc": "2022-06-06T14:26:35Z"}