On This Page
Dragonpay 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}
Dragonpay Required Fields
- clientReferenceInformation.originalTransactionId
Example: Requesting an Dragonpay Refund Using the REST API
Request
{ "orderInformation": { "amountDetails": { "totalAmount": "1", "currency": "PHP" } }, "clientReferenceInformation": { "code": "sale1077", "originalTransactionId": "1169511625" }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "dragonPay" } } } }
Response to a Successful Request
{ "clientReferenceInformation": { "transactionid": "sale1077" }, "processorInformation": { "transactionId": "144048964" }, "message": "Successful", "status": "REFUNDED", "id": "6523329019126746031901", "submitTimeUtc": "2022-06-06T13:11:15Z" }