Ledger

Record every cent in an immutable ledger with 11 engines

Double-entry ledger via API, with native event sourcing and COSIF ↔ IFRS mapping. Every entry is validated, balanced and written append-only, with an audit trail from the first record to the regulatory report.

Talk to a specialist
ledger · entryBalanced

Entry amount

R$ 1,500.00

  • Debit

    acc_checking_001

    R$ 1,500.00
  • Credit

    acc_revenue_001

    R$ 1,500.00
DifferenceR$ 0.00

Domain events

  1. transaction.validated14:30:00.004
  2. entries.posted14:30:00.009
  3. balance.updated14:30:00.012

Written append-only

Cryptographic hash per entry

Ledger engines
11
Synchronous TPS
100
Asynchronous TPS
1,000+
Validation stages
4
Built-in rules
50+
Regulatory signals
1,600+

11 engines, each one owns a domain.

Each engine is a self-contained domain handling a critical aspect of financial operations, from posting to compliance.

Posting Engine

100 TPS synchronous, 1,000+ asynchronous. Double-entry accounting with idempotent writes and atomic batch operations.

Mapping Engine

Bidirectional chart-of-accounts translation. COSIF to IFRS and back, with full audit trail of every mapping.

IFRS Measurement

Automated EIR, ECL, and Fair Value calculations. Full compliance with IFRS 9, IFRS 13, and IFRS 15 standards.

Validation Engine

4-stage validation pipeline with 50+ built-in rules. Schema, business logic, compliance, and balance checks before every posting.

Sandbox Engine

Isolated execution environment with full API parity. Automatic 30-day data purge with no impact on production.

Ledger Runtime

8 immutability guarantees enforced at the storage layer. Append-only writes, cryptographic hashing, and tamper-evident logs.

Reconciliation Engine

AI/ML-powered matching with 4-tier confidence scoring. Automatic, suggested, manual, and exception-based reconciliation.

Settlement Engine

5-state lifecycle management: initiated, authorized, clearing, settled, and finalized. Real-time position tracking.

Compliance Engine

1,600+ regulatory signals monitored in real time. Automated BACEN reporting, AML screening, and suspicious activity detection.

Billing Engine

Usage-based billing with IFRS 15 revenue recognition. Metered, tiered, and custom pricing models out of the box.

ATM Engine

ISO 20022 native messaging. Pix Saque and Pix Troco support with real-time authorization and settlement.

Domain-Driven Design + CQRS Commands and queries apart, events between contexts.

Our ledger is architected with strict domain boundaries, command-query separation, and event-driven communication between bounded contexts.

Aggregates
14
Commands
30
Queries
32
Domain Events
38+
Event Topics
42+

One balanced entry, one API call.

Create an immutable, balanced transaction with a single call. The idempotency key ensures a retry never duplicates the entry.

POST /v1/ledger/transactions
Request
curl -X POST https://api.revenu.tech/v1/ledger/transactions \  -H "Authorization: Bearer sk_test_..." \  -H "Content-Type: application/json" \  -d '{    "idempotency_key": "txn_20260320_001",    "entries": [      {        "account_id": "acc_checking_001",        "direction": "debit",        "amount": 150000,        "currency": "BRL"      },      {        "account_id": "acc_revenue_001",        "direction": "credit",        "amount": 150000,        "currency": "BRL"      }    ],    "metadata": {      "description": "Service payment",      "reference": "INV-2026-0042"    }  }'
Response · 201 Created
{  "transaction_id": "txn_8f3k2j1m4n5p6q7r",  "idempotency_key": "txn_20260320_001",  "status": "posted",  "entries": [    {      "entry_id": "ent_a1b2c3d4",      "account_id": "acc_checking_001",      "direction": "debit",      "amount": 150000,      "balance_after": 3500000    },    {      "entry_id": "ent_e5f6g7h8",      "account_id": "acc_revenue_001",      "direction": "credit",      "amount": 150000,      "balance_after": 12750000    }  ],  "created_at": "2026-03-20T14:30:00.000Z",  "posted_at": "2026-03-20T14:30:00.012Z"}

Regulated from day one.

BACEN
ISO 27001
PCI DSS v4.0
LGPD
MED 2.0
ISO 20022

Start building today

Direct access to complete banking infrastructure: accounts, cards, payments and capital. Build your financial products on your terms, without unnecessary intermediaries.