Create a Modern Treasury ledger, add ledger accounts, and post a ledger transaction

domain: moderntreasury.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a ledger via POST /api/ledgers with a name and currency; the ledger is the top-level container for all accounts and transactions
  2. Create ledger accounts via POST /api/ledger_accounts with ledger_id, name, currency, and normal_balance (debit or credit) reflecting their accounting type
  3. Post a ledger transaction via POST /api/ledger_transactions with an array of ledger_entries, each specifying ledger_account_id, amount (in currency minor units), and direction (debit or credit)
  4. Modern Treasury validates that the transaction is balanced — the sum of debits must equal the sum of credits; an unbalanced transaction will return a 422 error
  5. Use the status field: pending transactions are staged and reversible; posted transactions are final; archived transactions are voided
  6. Query ledger account balances via GET /api/ledger_account_balance_monitors or GET /api/ledger_accounts/{id} to retrieve pending, posted, and available balances

Known gotchas

Related routes

Model and implement a Modern Treasury Ledger with double-entry accounts for a payment platform
docs.moderntreasury.com · 6 steps · unrated
Create Modern Treasury payment orders and track ledger entries through the full settlement lifecycle
docs.moderntreasury.com · 5 steps · unrated
Build a multi-currency ledger using Modern Treasury Ledgers to track FX positions and realized gains and losses on cross-currency book transfers
docs.moderntreasury.com · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp