API reference
Reconciliation matches
Which statement lines and which ledger lines are the same money, matched or undone.
- GET
/v1/reconciliation_matchesList statement-to-ledger matches - POST
/v1/reconciliation_matchesMatch statement lines to ledger lines by hand - GET
/v1/reconciliation_matches/{match_id}Get a match and its lines - POST
/v1/reconciliation_matches/{match_id}/undoUndo a match
Guides: Review and file transactions
List statement-to-ledger matches
GET/v1/reconciliation_matches
client.reconciliationMatches.list()
Matches between statement lines and ledger lines, the newest first, undone ones included.
Parameters
| Name | Type | Description |
|---|---|---|
statement_idQuery | string or null | An id that starts with |
limitQuery | integer | Page size, 1–200. |
cursorQuery | string or null | The |
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/reconciliation_matches" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Match statement lines to ledger lines by hand
POST/v1/reconciliation_matches· Idempotent
client.reconciliationMatches.create()
Match statement lines to ledger lines by hand: any lines of one
statement and any lines posted to its account, whole, whose totals are
equal. Refused with match_refused for lines already matched, of another
statement or account, or totals that differ.
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/reconciliation_matches" \
-H "Authorization: Bearer $LEDGERIT_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"journal_line_ids":["…"],"statement_id":"…","statement_line_ids":["…"]}'Get a match and its lines
GET/v1/reconciliation_matches/{match_id}
client.reconciliationMatches.get()
A match and the lines it joins.
Parameters
| Name | Type | Description |
|---|---|---|
match_idPath · Required | string | 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/reconciliation_matches/{match_id}" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Undo a match
POST/v1/reconciliation_matches/{match_id}/undo· Idempotent
client.reconciliationMatches.undo()
Free the lines a match joined. The match stays, undone; its
statement is imported again until every line is matched.
Parameters
| Name | Type | Description |
|---|---|---|
match_idPath · Required | string | 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 -X POST "https://api.ledgerit.ai/v1/reconciliation_matches/{match_id}/undo" \
-H "Authorization: Bearer $LEDGERIT_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"Objects
The objects these operations take and return.
ReconciliationMatchPage
| Name | Type | Description |
|---|---|---|
dataRequired | array of ReconciliationMatchOut | |
has_moreRequired | boolean | |
next_cursorRequired | string or null |
ReconciliationMatchCreate
| Name | Type | Description |
|---|---|---|
explanation | string or null | Why these are the same money. |
journal_line_idsRequired | array of string | Lines posted to the statement's account. |
statement_idRequired | string | An id that starts with |
statement_line_idsRequired | array of string |
ReconciliationMatchOut
| Name | Type | Description |
|---|---|---|
account_idRequired | string | An id that starts with |
created_atRequired | string (date-time) | |
created_byRequired | string or null | An id that starts with |
explanationRequired | string or null | |
idRequired | string | An id that starts with |
itemsRequired | array of MatchItemOut | |
methodRequired | string |
|
statement_idRequired | string | An id that starts with |
statusRequired | string |
|
undone_atRequired | string (date-time) or null |
MatchItemOut
| Name | Type | Description |
|---|---|---|
amountRequired | string | As the statement prints it: money into the account positive, for a bank and a card alike. |
journal_line_idRequired | string or null | An id that starts with |
sideRequired | string |
|
statement_line_idRequired | string or null | An id that starts with |