The process of sending money back to a customer who has returned a purchase or no longer wants to receive services.Documentation Index
Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
Use this file to discover all available pages before exploring further.
ScenarioBen returns two items he purchased with his card ending in 4242 from a Maple Street Coffee, one of Clearpath Payment’s acceptors. Upon receiving the merchandise, Clearpath Payments verifies the original order number and issues a $300 refund back to Ben’s card on behalf of Maple Street Coffee.
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.