vrtx Docs
Core APIs
Core APIs
  • Start
  • Onboarding
  • Wallet
  • Payouts
  • Cards
  • Transactions
Closed loop APIsCard Simulator
SDK APIs
SDK APIs
  • Coming Soon!
Core APIs
Core APIs
  • Start
  • Onboarding
  • Wallet
  • Payouts
  • Cards
  • Transactions
Closed loop APIsCard Simulator
SDK APIs
SDK APIs
  • Coming Soon!
  1. Ledger
  • Card Transactions
    • Perform a simulated card transaction
      POST
    • Perform a balance inquiry
      POST
  • Notifications
    • Fetch the latest OTP for a mobile number
      POST
    • Fetch the latest notification message for a mobile number
      POST
  • Nafath
    • Trigger Nafath completion webhook
      POST
    • Preview Nafath completion webhook payload
      POST
  • Databases
    • Purge and seed all test databases
      POST
    • Execute a specific migration file by path
      POST
  • Topup
    • Run the payouts account topup job once
      POST
  • PTY Proxy
    • Proxy PTY API calls
      POST
  • Ledger
    • Perform a ledger transaction
      POST
    • Top up an account in the ledger
      POST
    • Get account balance
      GET
    • Revert all transactions for an account
      POST
Core APIs
Core APIs
  • Start
  • Onboarding
  • Wallet
  • Payouts
  • Cards
  • Transactions
Closed loop APIsCard Simulator
SDK APIs
SDK APIs
  • Coming Soon!
Core APIs
Core APIs
  • Start
  • Onboarding
  • Wallet
  • Payouts
  • Cards
  • Transactions
Closed loop APIsCard Simulator
SDK APIs
SDK APIs
  • Coming Soon!
  1. Ledger

Revert all transactions for an account

POST
https://api.staging.vrtx.sa/testhelpers/ledger/accounts/{accountNumber}/revert-all
Last modified:2025-12-26 20:00:15
Reverts all Formance ledger transactions that belong to the specified account. This uses Formance's native revert mechanism to create compensating transactions. Transactions that are already reverted will be skipped. Reversal transactions themselves (REVERSAL, CARD_REVERSAL, CARD_REVERSAL_PARTIAL) will not be reverted.

Request

Path Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.staging.vrtx.sa/testhelpers/ledger/accounts//revert-all'

Responses

🟢200OK
application/json
Revert operation completed
Body

Example
{
    "account_number": "100018271016",
    "total_transactions": 5,
    "reverted_count": 3,
    "already_reverted_count": 2,
    "failed_count": 0,
    "reverted_transactions": [
        {
            "original_transaction_id": "123",
            "reversal_transaction_id": "456",
            "idempotent_hit": false
        }
    ],
    "failed_transactions": []
}
đź”´500Internal Server Error
Modified at 2025-12-26 20:00:15
Previous
Get account balance
Built with