ScenarioBen returns two mechanical keyboards he purchased with his card ending in
4242. Upon receiving the merchandise, CoolTechGear.com verifies the original
order number and issues a $300 refund back to Ben’s card.
Steps
-
Retrieve the
paymentIdfrom the original transaction. This is how we link the refund to the previous payment. -
Call the refundPreviousPayment mutation, passing in the required input fields:
Required input Description paymentIdThe unique “payment ID” returned on the original, approved transaction, used to tie that transactions together. acceptorIdThe unique, 36 character identifier assigned to the entity providing the goods or services to the customer. Other processors may refer to this as the Merchant ID (MID), Outlet ID, or Customer number. transactionReferenceThe unique transaction identifier created by YOU to distinguish this transaction from another. transactionAmountDetailsThe transaction currency and amount to be refunded. You can refund the full amount or only a portion of it. If you do not specify an amount, Tesouro will by default refund the full amount.