Reversals are used to cancel previous transaction requests. Authorization reversals notify the cardholder’s issuer that all or part of a transaction has been canceled and that the authorization hold should be released. You cannot reverse an authorization that has been captured and has had money withdrawn from the customer’s account. For those transactions, you would need to submit a refund. Reversals cannot be applied on previously reversed transaction or account verifications.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 makes a purchase from Maple Street Coffee, one of Clearpath Payment’s acceptors. After he finishes checking out, he realizes he already bought the same item last week and cancels the order minutes later. Because the authorization has not been captured yet, Clearpath Payments is able to reverse the authorization on behalf of Maple Street Coffee.
Steps
-
Retrieve the
transactionIdfrom the previous transaction you need to reverse. This is how we link the reversal to its previous transaction.Reversal mutations differ from the other transaction mutations (i.e., captures, incremental authorizations, and refunds) in that you must reference the previous transaction’stransactionIdinstead of thepaymentId. This is becausetransactionIdtargets the specific transaction in the payment life cycle to be reversed, whereaspaymentIdidentifies the cohort of related transactions within a payment. -
Run the reverseTransaction mutation, passing in the pertinent inputs
Required input Description transactionIdThe unique “payment ID” returned on the original, approved authorization, used to tie that transaction together with this incremental authorization. acceptorIDThe unique, 36 character identifier assigned to the entity providing the goods or services to the cardholder. Other processors may refer to this as the Merchant ID (MID), Outlet ID, or Customer number. transactionReferenceThe unique transaction identifier created by YOU to distiniguish 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.