Journal Trial Balance

Roll opening balances and debit or credit postings into a trial balance while flagging unbalanced entries even when their errors cancel overall.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /journal-trial-balance/v1/check with an x402 V2 client.

Worked example

Request

{
  "opening": [
    {
      "account": "cash",
      "signed_debit_cents": 1000
    },
    {
      "account": "equity",
      "signed_debit_cents": -1000
    }
  ],
  "entries": [
    {
      "id": "x",
      "postings": [
        {
          "account": "cash",
          "side": "debit",
          "cents": 100
        }
      ]
    },
    {
      "id": "y",
      "postings": [
        {
          "account": "revenue",
          "side": "credit",
          "cents": 100
        }
      ]
    }
  ]
}

Result

{
  "opening_delta_cents": 0,
  "closing_delta_cents": 0,
  "entry_imbalances": [
    {
      "id": "x",
      "delta_cents": 100
    },
    {
      "id": "y",
      "delta_cents": -100
    }
  ],
  "accounts": [
    {
      "account": "cash",
      "debit_cents": 1100,
      "credit_cents": 0
    },
    {
      "account": "equity",
      "debit_cents": 0,
      "credit_cents": 1000
    },
    {
      "account": "revenue",
      "debit_cents": 0,
      "credit_cents": 100
    }
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter