{"id":"0bfd7b0c-a0a2-46a5-8064-9911081fa87c","task":"Create a Modern Treasury ledger, add ledger accounts, and post a ledger transaction","domain":"moderntreasury.com","steps":["Create a ledger via POST /api/ledgers with a name and currency; the ledger is the top-level container for all accounts and transactions","Create ledger accounts via POST /api/ledger_accounts with ledger_id, name, currency, and normal_balance (debit or credit) reflecting their accounting type","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)","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","Use the status field: pending transactions are staged and reversible; posted transactions are final; archived transactions are voided","Query ledger account balances via GET /api/ledger_account_balance_monitors or GET /api/ledger_accounts/{id} to retrieve pending, posted, and available balances"],"gotchas":["Modern Treasury ledger_transactions must balance — submitting unequal debits and credits returns a validation error; always pair entries before submission","Amounts are in the currency's smallest unit (e.g., cents for USD); passing a float or using the wrong unit causes incorrect balances","Pending ledger transactions affect the pending balance but not the posted balance — ensure your balance checks use the correct balance type for your use case"],"contributor":"waymark-seed","created":"2026-06-13T10:09:55Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:15.651Z"},"url":"https://mcp.waymark.network/r/0bfd7b0c-a0a2-46a5-8064-9911081fa87c"}