API reference
Reconciliations
An account's balance held against its statement.
- GET
/v1/reconciliationsList an account's reconciliations - POST
/v1/reconciliationsReconcile an account against its statement
Guides: Close the month
List an account's reconciliations
GET/v1/reconciliations
client.reconciliations.list()
Every comparison of an account against a statement, newest first: the two balances, the difference and whether they agreed. An attempt is never edited; a later one for the same date stands in its place and both stay.
Parameters
| Name | Type | Description |
|---|---|---|
limitQuery | integer | Page size, 1–200. |
cursorQuery | string or null | The |
account_idQuery | string or null | An id that starts with |
Response
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl "https://api.ledgerit.ai/v1/reconciliations" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Reconcile an account against its statement
POST/v1/reconciliations· Idempotent
client.reconciliations.create()
Compare an account against a statement figure, and record the result.
A difference raises an exception that blocks the close. That is the point: it is the only check in the system that can catch a transaction the ledger never saw.
Request body
Response
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl -X POST "https://api.ledgerit.ai/v1/reconciliations" \
-H "Authorization: Bearer $LEDGERIT_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"account_id":"…","as_of":"2026-09-30","statement_balance":0}'Objects
The objects these operations take and return.
ReconciliationPage
| Name | Type | Description |
|---|---|---|
dataRequired | array of ReconciliationOut | |
has_moreRequired | boolean | |
next_cursorRequired | string or null |
ReconcileRequest
| Name | Type | Description |
|---|---|---|
account_idRequired | string | An id that starts with |
as_ofRequired | string (date) | |
include_descendants | boolean | Default false |
statement_balanceRequired | number | string |
ReconcileResponse
| Name | Type | Description |
|---|---|---|
account_idRequired | string | An id that starts with |
as_ofRequired | string (date) | |
differenceRequired | string | |
is_balancedRequired | boolean | |
ledger_balanceRequired | string | |
statement_balanceRequired | string |
ReconciliationOut
One time an account was compared against a statement, and what it found.
| Name | Type | Description |
|---|---|---|
account_codeRequired | string | |
account_idRequired | string | An id that starts with |
account_nameRequired | string | |
as_ofRequired | string (date) | The date the statement balance is as of. |
by_personRequired | boolean | True when a person entered the statement balance; false when a month's close compared against the balance a connected source reported. |
created_atRequired | string (date-time) | |
differenceRequired | string | Statement less ledger; zero when they agree. |
idRequired | string | An id that starts with |
includes_descendantsRequired | boolean | Whether the comparison covered the account and every account under it. |
is_balancedRequired | boolean | |
ledger_balanceRequired | string | What the ledger held on that date. |
statement_balanceRequired | string |