Skip to content
Mezgeb
Search
Ctrl
K
Cancel
GitHub
Select theme
Dark
Light
Auto
Menu
Start here
Overview
Specification
Invariants
Architecture
Threat model
Database schema
Regulation
API guide
Overview
Errors
Owasp review
API reference
Overview
Accounts
Overview
List or find accounts
Open an account
Get an account
Get a balance at a time
Get the account history
Change an account status
Templates
Overview
List the posting templates
Get a posting template
Payments
Overview
Send money to a customer
Pay a merchant
Pay a payment request
Funding
Overview
Book a deposit
Book an unidentified deposit
Resolve a suspense item
Request a withdrawal
Send a withdrawal
Confirm a withdrawal
Fail a withdrawal
Refunds
Overview
Refund a payment
Open a dispute
Resolve a dispute for the payer
Resolve a dispute for merchant
Entries
Overview
Get an entry
Find an entry by idempotency key
Corrections
Overview
Reverse an entry
Request an adjustment
Get an adjustment request
Approve an adjustment
Reject an adjustment
Holds
Overview
Place a hold
Get a hold
Capture a hold
Release a hold
Periods
Overview
List accounting periods
Get the open period
Get a period
Close the open period
Reports
Overview
Get a trial balance
Get the ageing report
Offline
Overview
Register an offline device
Get a device
Revoke a device
Issue an offline voucher
Get a voucher
List a voucher's receipts
List offline shortfalls
Repay a shortfall
List offline disputes
Get an offline dispute
Resolve an offline dispute
List the offline issuer keys
Submit offline receipts
OAuth
Overview
Get an access token
Audit
Overview
List the signing keys
List the checkpoints
List audit events
Reconciliation
Overview
Park an unexplained bank debit
Close an unexplained bank debit
Compare cached balances
List reconciliation breaks
Get a reconciliation break
Resolve a break
Explain a break
List reconciliation runs
Offline payments
Protocol
Review request
Scenarios
Threat addendum
Accounting
Overview
entries
Overview
Deposits and withdrawals
Disputes
Offline escrow
Payments
Reconciliation
Refunds and corrections
Settlement
Suspense
Chart of accounts
Clearing and suspense
Refunds and disputes
Review
Trial balance
Reconciliation
Overview
Statement format
Runbooks
Overview
Clients and credentials
Close period
Offline
Reconciliation
Tamper evidence
Security
Reporting a vulnerability
Assessment
Overview
Asvs
Findings
Decisions (ADRs)
Overview
0001 Separate service own database
0002 Three layer separation
0003 Multi line journal entries
0004 Holds as postings
0005 Money as i64 minor units
0006 Uuidv7 identifiers
0007 Read committed ordered row locks
0008 Idempotency in posting transaction
0009 Rest api with axum
0010 Offline escrow model
0011 Append only history
0012 Stored running balances
0013 Reversals never overdraw
0014 Payment channels and fees
0015 Refunds and disputes
0016 Accounting periods
0017 Authentication and authorization
0018 Tamper evidence
0019 Offline protocol v1
0020 Reconciliation
0021 Unauthenticated traffic limits
Roadmap
Overview
phase-1-core-engine
Overview
01 Accounting foundations
02 Architecture decisions
03 Invariants threat model and regulation
04 Money and identifier types
05 Chart of accounts
06 Journal entries and posting rules
07 Reference ledger oracle
08 Postgresql schema
09 Atomic posting
10 Concurrency control
11 Idempotency
12 Reversals and adjustments
13 Balance verification
14 Holds and two phase operations
15 Failure injection and crash recovery
16 Phase 1 exit review
phase-2-operations-and-security
Overview
01 Posting templates
02 Deposits withdrawals and clearing
03 Transfers payments and fees
04 Refunds and disputes
05 Accounting periods and closing
06 Rest api design
07 Rest api implementation
08 Authentication and authorization
09 Audit logging
10 Offline protocol design
11 Device registry and vouchers
12 Receipt ingestion and settlement
13 Offline conflicts and expiry
14 Offline simulation
15 Reconciliation
16 Phase 2 security review and exit
phase-3-scale-and-integration
Overview
01 Performance methodology
02 Indexing and query optimisation
03 Hot accounts and contention
04 Partitioning and archival
05 Reporting and financial statements
06 Transactional outbox
07 Merchant settlement
08 Multi currency and multi tenant
09 Observability
10 Backups and disaster recovery
11 Deployment and ci cd
12 Secrets and key management
13 Client integration design
14 Historical replay
15 Shadow mode
16 Shadow operation and phase 3 exit
phase-4-finalization
Overview
01 Game day
02 Security assessment
03 Runbooks and readiness review
04 Release candidate
Strategies
Evidence
Overview
1.01 Accounting foundations
1.02 Architecture decisions
1.03 Invariants threat model and regulation
1.04 Money and identifier types
1.05 Chart of accounts
1.06 Journal entries and posting rules
1.07 Reference ledger oracle
1.08 Postgresql schema
1.09 Atomic posting
1.10 Concurrency control
1.11 Idempotency
1.12 Reversals and adjustments
1.13 Balance verification
1.14 Holds and two phase operations
1.15 Failure injection and crash recovery
1.16 Phase 1 exit review
2.01 Posting templates
2.02 Deposits withdrawals and clearing
2.03 Transfers payments and fees
2.04 Refunds and disputes
2.05 Accounting periods and closing
2.06 Rest api design
2.07 Rest api implementation
2.08 Authentication and authorization
2.09 Audit logging and tamper evidence
2.10 Offline protocol design
2.11 Device registry and vouchers
2.12 Receipt ingestion and settlement
2.13 Offline conflicts and expiry
2.14 Offline simulation
2.15 Reconciliation
2.16 Phase 2 security review and exit
GitHub
Select theme
Dark
Light
Auto
Overview
Funding
Section titled “Funding”
Money entering and leaving, clearing and suspense.
Operations
Section titled “Operations”
POST
/v1/operations/deposit_confirmed.v1
POST
/v1/operations/deposit_unmatched.v1
POST
/v1/operations/suspense_resolve.v1
POST
/v1/operations/withdrawal_request.v1
POST
/v1/operations/withdrawal_sent.v1
POST
/v1/operations/withdrawal_confirmed.v1
POST
/v1/operations/withdrawal_failed.v1