No momento, esta página não está disponível em português
Referenced refund
Issue a point-of-sale refund connected to the original payment.
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.
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.
Get the TransactionID and the TimeStamp of the original payment. You received these values in the payment response, in the POIData.POITransactionID object.
Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (POIID) being used.
SaleID
Your unique ID for the POS system component to send this request from.
POIID
The unique ID of the terminal to send this request to. Format: [device model]-[serial number].
ReversalRequest: the request body. Specify:
Parameter
Required
Description
OriginalPOITransaction.POITransactionID
An object with:
TransactionID: Transaction identifier of the original payment in the format tenderReference.pspReference. For example, BV0q001643892070000.VK9DRSLLRCQ2WN82
TimeStamp: Date and time in UTC format of the original payment. For example, 2000-01-01T00:00:00.000Z
ReversalReason
MerchantCancel
The next example shows how to make a full referenced refund.
Get the TransactionID and the TimeStamp of the original payment. You received these values in the payment response, in the POIData.POITransactionID object.
Your unique ID for this request, consisting of 1-10 alphanumeric characters. Must be unique within the last 48 hours for the terminal (POIID) being used.
SaleID
Your unique ID for the POS system component to send this request from.
POIID
The unique ID of the terminal to send this request to. Format: [device model]-[serial number].
ReversalRequest: the request body. Specify:
Parameter
Required
Description
OriginalPOITransaction.POITransactionID
An object with:
TransactionID: Transaction identifier of the original payment in the format tenderReference.pspReference. For example, BV0q001643892070000.VK9DRSLLRCQ2WN82
TimeStamp: date and time in UTC format of the original payment. For example, 2000-01-01T00:00:00.000Z
ReversalReason
MerchantCancel
ReversedAmount
The amount being returned to the shopper in the partial refund. Must be smaller than or equal to the initial payment amount.
SaleData.SaleToAcquirerData
The currency of the refund, in the format currency=ABC where ABC is the three-letter currency code. This must match the currency of the original payment.
SaleData.SaleTransactionID
An object with:
TransactionID: your reference for the refund. In your Customer Area and Adyen reports, this will show as the merchant reference.
TimeStamp: date and time in UTC format of the refund.
The next example shows how to make a partial referenced refund of EUR 6.00.
An offline point-of-sale payment has a tender reference, which is generated by the terminal. But the PSP reference is missing because it is generated on the plataforma de pagamentos da Adyen, and that could not be reached. To refund an offline point-of-sale payment, you need to know the tender reference and the date of the original payment. In most cases you also need to know the unique identifier of the terminal that processed the original payment.
An ecommerce payment does have a PSP reference, but the tender reference is missing because it is generated by the terminal. To refund an ecommerce payment, you need to know the PSP reference, the date, and the currency of the original payment.
An object with TransactionID: the PSP reference of the original payment, in the format .pspReference. Don't forget the leading dot (.). For example: .VK9DRSLLRCQ2WN82
SaleData.SaleToAcquirerData
The currency of the refund, in the format currency=ABC where ABC is the three-letter currency code. This must match the currency of the original payment.
SaleData.SaleTransactionID
An object with:
TransactionID: your reference for the refund. In your Customer Area and Adyen reports, this will show as the merchant reference.
TimeStamp: date and time in UTC format of the refund.
When you receive the ReversalResponse, note that the Response.AdditionalResponse includes:
posOriginalAmountValue: 0 (zero)
posAuthAmountValue: 0 (zero)
That is because at this moment we don't know the original amount of the ecommerce payment, and thus also don't know the refund amount that we will try to get authorised.
An object with TransactionID: the PSP reference of the original payment, in the format .pspReference. Don't forget the leading dot (.). For example: .VK9DRSLLRCQ2WN82