On This Page
Refund
Refund
This section provides the information you need in order to process a
refund
, which is linked to a capture or
sale. You must request a
refund
within 180 days of the authorization.When your account is enabled for credit authorizations, also known as purchase return
authorizations,
Visa Acceptance Solutions
authenticates the card and customer
during a follow-on refund or stand-alone credit request. Every credit request is
automatically authorized.Credit authorizations are handled the same for these card types:
- American Express
- Diners
- Discover
- JCB
- Mastercard
- Visa
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.
All supported card types can process follow-on refunds.
Endpoint
Production:
POST
https://api.visaacceptance.com
/pts/v2/payments/{id}
/refundsTest:
POST
https://apitest.visaacceptance.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
- orderInformation.amountDetails.currency
- orderInformation.amountDetails.totalAmount
REST Interactive Example: Processing a Refund
Refund a Payment
Live Console URL:
index.html#payments_refund_refund-a-payment
REST Example: Processing a Refund
Request
{ "orderInformation": { "amountDetails": { "totalAmount": "100.00", "currency": "EUR" } } }
Response to a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/credits/6699964581696622603955/voids" }, "self": { "method": "GET", "href": "/pts/v2/credits/6699964581696622603955" } }, "clientReferenceInformation": { "code": "1669996458298" }, "creditAmountDetails": { "currency": "eur", "creditAmount": "100.00" }, "id": "6699964581696622603955", "orderInformation": { "amountDetails": { "currency": "EUR" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "approvalCode": "888888", "networkTransactionId": "016153570198200", "responseCode": "100" }, "reconciliationId": "61873329OAILG3Q6", "status": "PENDING", "submitTimeUtc": "2022-12-02T15:54:18Z" }