API reference

Provider statements

Monthly statements a connected bank handed over as the PDF it printed, and what reading each one came to.

Guides: Connect another bank, Close the month

List the statements connected banks handed over

GET/v1/provider_statements

client.providerStatements.list()

Statements connected banks handed over, the newest month first.

Parameters

NameTypeDescription
connection_idQuerystring or null

An id that starts with conn_.

account_idQuerystring or null

An id that starts with gla_.

statusQuerystring or null

Only those with this status.

limitQueryinteger

Page size, 1–200.

Default 50
cursorQuerystring or null

The next_cursor of the previous page.

Response

200ProviderStatementPage

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
curl "https://api.ledgerit.ai/v1/provider_statements" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Ask the bank for a month's statement now

POST/v1/provider_statements/fetch

client.providerStatements.fetch()

Ask the bank for an account's statement for a month, now rather than after the next sync.

Answers what it came to at once. A statement already handed over is read (or is on file); one not yet handed over is asked for, over the days it can be posted on, and read as soon as it arrives, so poll get or the list by account_id. Safe to repeat: a collection already running for the login is not started twice, and the bank is asked at most once a day.

Request body

StatementFetchRequest

Response

200StatementFetchOut

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
curl -X POST "https://api.ledgerit.ai/v1/provider_statements/fetch" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"account_id":"…","month":"2026-09-30"}'

Get a statement a bank handed over

GET/v1/provider_statements/{statement_id}

client.providerStatements.get()

One statement a connected bank handed over, and what reading it came to.

Parameters

NameTypeDescription
statement_idPath · Requiredstring

An id that starts with stmt_bank_.

Response

200ProviderStatementOut

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
curl "https://api.ledgerit.ai/v1/provider_statements/{statement_id}" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Link to the PDF a bank handed over

GET/v1/provider_statements/{statement_id}/file

client.providerStatements.file()

A short-lived link to the PDF exactly as the bank sent it.

Parameters

NameTypeDescription
statement_idPath · Requiredstring

An id that starts with stmt_bank_.

Response

200StatementFileLink

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
curl "https://api.ledgerit.ai/v1/provider_statements/{statement_id}/file" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Objects

The objects these operations take and return.

ProviderStatementPage

NameTypeDescription
dataRequiredarray of ProviderStatementOut
has_moreRequiredboolean
next_cursorRequiredstring or null

StatementFetchRequest

NameTypeDescription
account_idRequiredstring

The bank or card account whose statement is wanted.

monthRequiredstring (date)

Any day of the month the statement is for; the close sends the month's last day.

StatementFetchOut

NameTypeDescription
bank_statement_idstring or null

An id that starts with stmt_.

connection_idRequiredstring

The bank login the statement comes from.

institutionstring or null

The bank the login reached, when it is not the provider itself.

institution_logo_urlstring or null

That bank's logo, served from LedgerIt's own bucket.

monthRequiredstring (date)

The first day of the month asked for.

providerRequiredstring

The integration of that login: plaid.

provider_statement_idstring or null

An id that starts with stmt_bank_.

refusalstring or null

Why it was refused; null unless refused.

statusRequiredstring

held: the month's statement is read, bank_statement_id is its evidence. reading: the bank handed it over and it is being read now. requested: the bank is being asked, and the statement is read as soon as it arrives. refused: its lines do not add up, so only the PDF is kept. before_books: for a month before the books start. not_shared: the login was made before statements were asked for; Add statements on the bank's page. unsupported: the bank gives no statements through its connection. not_ended: the month has not ended yet.

One of held, reading, requested, refused, before_books, not_shared, unsupported, not_ended

ProviderStatementOut

NameTypeDescription
account_idRequiredstring or null

An id that starts with gla_.

bank_statement_idRequiredstring or null

An id that starts with stmt_.

byte_sizeRequiredinteger

The PDF's size in bytes.

connection_idRequiredstring or null

An id that starts with conn_.

created_atRequiredstring (date-time)

When the connection fetched it.

idRequiredstring

An id that starts with stmt_bank_.

lines_not_in_feedRequiredinteger or null

Lines on the statement that no transaction from the bank feed matched: movements the feed never reported. Null until it is read.

period_monthRequiredstring (date)

The first day of the month the statement is for.

posted_onRequiredstring (date) or null

The day the bank posted it, when the bank says.

providerRequiredstring

The integration that fetched it: plaid.

read_atRequiredstring (date-time) or null
refusalRequiredstring or null

Why it was refused, in words a person can act on; null unless refused.

refusal_codeRequiredstring or null

The refusal's code, such as statement_pdf_unbalanced.

sha256Requiredstring

The PDF's sha256, as the bank sent it.

statusRequiredstring

fetched (waiting to be read), read (kept as a bank statement), refused (its lines did not take the opening balance to the closing one, so nothing was kept from it but the PDF) or before_books (for a month before the books start, kept and not read).