VOL. XIV · NO. 320 · ZÜRICH — NEW YORK — SINGAPORE

REST & gRPC Specification v4.0

Double-Entry Posting API

1. Post an Atomic Multi-Leg Journal Entry

Every request requires an idempotency key and balanced currency legs. Unbalanced payloads are rejected prior to consensus.

POST /v4/ledgers/prod-usd/postings
Idempotency-Key: pay_01JDR8W6V9M8H2A

{
  "effective_at": "2026-11-27T14:22:00Z",
  "legs": [
    { "account": "1010:wallet:cust_912", "side": "DEBIT",  "asset": "USD", "amount": "25000.00" },
    { "account": "2040:merchant:m_401",  "side": "CREDIT", "asset": "USD", "amount": "24537.50" },
    { "account": "4010:revenue:fees",    "side": "CREDIT", "asset": "USD", "amount": "462.50" }
  ]
}

2. Query Bitemporal Trial Balance

GET /v4/ledgers/prod-usd/trial-balance
  ?as_of_value_date=2026-10-31T23:59:59Z
  &as_of_system_time=2026-11-02T08:00:00Z
  &include_merkle_proof=true