Skip to main content
Undo the effect of an approved transaction. Midaz posts a new transaction in the opposite direction and keeps the original transaction as it is.

Participants


  • Your institution. Your system. It asks for the reversal.
  • Midaz. The ledger. It checks the request and posts the reversal.

Before you start


  • The transaction to reverse is APPROVED. Keep its id.

Diagram


Reverse a transaction

Steps through the API


Rules


  • You cannot reverse a block or an unblock.
  • Each operation that uses an operation route needs a route of type bidirectional.
  • The reversal charges no new fee. It moves the fees of the original transaction back.

How you know it finished


Read the reversal with GET /v2/organizations/{organization_id}/ledgers/{ledger_id}/transactions/{transaction_id}. Its status is APPROVED, and its parentTransactionId is the id of the original transaction.

What can go wrong