Transaction Examples: Refund

Refund

A Refund allows a merchant to refund a previously settled transaction and submit the refund for processing. Refunds are only allowed for financial transactions (Sale and Captured) and are typically limited to the original authorization amount, or a lesser amount, in some cases, multiple partial refunds up to the original transaction amount. Some systems incorporate a feature called Matched Refunds. Matched Refunds must match back to an original transaction to help control fraud. Refunds are also sometimes referred to as a “Store Credit” or “Return” transaction.

Refund (Matched) Approved

A Matched Refund is linked to the original purchase request by requiring a previous (original) Gateway-assigned Transaction ID. In the example below, the “id” of 1234 corresponds to the “id” returned in the response to the original Sale request.

Refund (Matched) Approved Request

XML

JSON

PHP (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/php

Python (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/python

Go (XML)

https://github.com/Clearent-Gateway/API-Examples/tree/go

C# (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/C#

Java (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/java

VB.net (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/vbnet

Refund (Matched) Approved Response

XML

JSON

Refund (Unmatched) Approved

An Unmatched Refund is not linked to the original purchase and puts funds directly on the customer’s cards. This capability is often limited to managers since it’s linked to high employee fraud where clerks put funds on their own cards.

Refund (Unmatched) Approved Request

XML

JSON

PHP (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/php

Python (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/python

Go (XML)

https://github.com/Clearent-Gateway/API-Examples/tree/go

C# (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/C#

Java (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/java

VB.net (JSON)

https://github.com/Clearent-Gateway/API-Examples/tree/vbnet

Refund (Unmatched) Approved Response

XML

JSON