Skip to main content
To return funds to a shopper after a payment is approved, you need to refund the payment. Referenced refunds are connected to the original payment, using the unique identifier of that payment. When you make a POS payment, the Terminal API response returns the transaction identifier of the payment in the format tenderReference.pspReference. To make a referenced refund, you specify this transaction identifier in your refund request. This lets us validate the refund against the original payment, to ensure that it hasn’t already been refunded. You can make a:
  • Full refund to return the total value of the purchase to the shopper.
  • Partial refund to return part of the purchase to the shopper. For example, when a shopper returns one of the items they purchased. You can also make multiple partial refunds. For example, when a shopper returns several items at different times.

Requirements

Make a referenced refund

Select a tab to see the parameters that you need to specify for a full referenced refund, or a partial referenced refund.
Here we describe the basic referenced refund request for the full amount. To refund an offline payment or to refund an ecommerce payment, the request is a little different.
  1. Get the TransactionID and the TimeStamp of the original payment. You received these values in the payment response, in the POIData.POITransactionID object.
  2. Make a Terminal API reversal request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Reversal.
    The following example shows how to make a full referenced refund.

    JSON

    Java

    The payment terminal shows a waiting screen until you receive the response.
    Waiting screen
  3. When you receive the ReversalResponse, note the following: Response when we received your full reversal request
    If your request failed, the ReversalResponse.Response contains:
    • Result: Failure
    • AdditionalResponse: This includes a message explaining why the request failed. For example:
      • Original pspReference required for this operation: Messages like this tell you how to fix the request so you can try again.
      • Transaction is already voided: This message tells you that we already received a full reversal request for the original transaction.
  4. Wait for the CANCEL_OR_REFUND webhook event to learn the outcome of the refund request. Refunds are always processed asynchronously.