On This Page
Follow-On Refund
Refund
This section provides the information you need in order to process a follow-on
refund
, which is linked to a capture or sale. You must request a follow-on refund
within 180 days of the authorization or sale.When your account is enabled for credit authorizations, also known as purchase return
authorizations,
Cybersource
authenticates the card and customer
during a follow-on refund or stand-alone credit request. Every credit request is
automatically authorized.Credit authorization results are returned in these response fields:
- processorInformation.approvalCode
- processorInformation.networkTransactionId
- processorInformation.responseCode
When you request a void for a refund or credit before settlement, the refund or credit is voided. If your account is enabled for credit authorizations, the credit authorization is also reversed.
Endpoint
Production:
POST
https://api.sa.cybersource.com
/pts/v2/payments/{id}
/refundsTest:
POST
https://apitest.sa.cybersource.com
/pts/v2/payments{id}
/refundsThe is the transaction ID returned in the capture or sale
response.
{id}
Required Fields for Processing a Refund
Refund
REST Example: Processing a Refund
Request
{ "clientReferenceInformation" : { "code" : "SPG_REQ_012" }, "orderInformation": { "amountDetails": { "totalAmount": "10.00", "currency": "SAR" } } }
Response to a Successful Request
{ "orderInformation": { "amountDetails": { "totalAmount": "10.00", "currency": "SAR" } }, "processorInformation": { "responseCode": "00", "approvalCode": "830SPG", "retrievalReferenceNumber": "334210123456", "settlementDate": "220915" }, "clientReferenceInformation": { "code": "SPG_REQ_012" }, "_links": { "void": { "method": "POST", "href": "/pts/v2/payments/7020304334211234567890/voids" }, "self": { "method": "GET", "href": "/pts/v2/payments/7020304334211234567890/refunds" } }, "reconciliationId": "7020303222541234567890", "status": "COMPLETED", "id": "7020304334211234567890", "submitTimeUtc": "2025-06-06T15:20:39Z" }