On This Page
Refund a Payment
Refund a Payment
This section describes how to process an airline refund, which requires
you to have the transaction ID from the original payment.
Endpoint
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}
/refundsTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}
/refundsThe is the transaction ID
returned in the capture or sale response.
{id}
Required Fields for an Airline Refund
Refund
Optional Fields for an Airline Refund
Refund
Choose from these optional fields to include additional information when processing an
airline
refund
.- travelInformation.transit.airline. clearingCount
- travelInformation.transit.airline. clearingSequence
- travelInformation.transit.airline. totalClearingAmount
- travelInformation. transit. airline.ancillaryInformation. creditReasonIndicator
- Set to one of these possible values:
- A: Passenger transport ancillary fee cancellation
- B: Airline ticket and passenger transport ancillary fee cancellation
- C: Airline ticket cancellation
- O: Other
- P: Partial refund of airline ticket
REST Example: Processing an Airline Refund
REST
Example: Processing an Airline Refund
Request
{ "processingInformation": { "industryDataType": "airline" }, "orderInformation": { "amountDetails": { "totalAmount": "102.21" } } }
Response to a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/refunds/6805496388936342404953/voids" }, "self": { "method": "GET", "href": "/pts/v2/refunds/6805496388936342404953" } }, "clientReferenceInformation": { "code": "1680549638986" }, "id": "6805496388936342404953", "orderInformation": { "amountDetails": { "currency": "USD" } }, "processorInformation": { "approvalCode": "888888", "responseCode": "100" }, "reconciliationId": "712678686G0ONA52", "refundAmountDetails": { "currency": "USD", "refundAmount": "102.21" }, "status": "PENDING", "submitTimeUtc": "2023-04-03T19:20:39Z" }