Skip to main content
GET
/
statements
/
{statement_id}
Get a statement
curl --request GET \
  --url https://api-sandbox.ledgersyncappv2.com/v3/statements/{statement_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "stmt_FINICITY_551",
  "statement_date": "2023-12-25",
  "account_id": "<string>",
  "download_url": "<string>",
  "exported_to": "<string>"
}

Authorizations

Authorization
string
header
required

Pass your secret key in the Authorization header as a Bearer token: Authorization: Bearer sk_test_... (sandbox) or Bearer sk_live_... (production).

Keys are created in the developer portal and the plaintext secret is shown exactly once at creation. Treat them like passwords — never embed them in mobile apps or front-end code.

Path Parameters

statement_id
string
required

Query Parameters

client_id
string
required

The Client (cli_…) to scope the read to. Required on account, transaction, and statement reads — LedgerSync's backend data APIs are scoped per end-user, so these resources are resolved within a single Client.

Response

The Statement, with a signed download URL when one exists.

id
string
required
Example:

"stmt_FINICITY_551"

statement_date
string<date>
required
account_id
string | null

The owning account id. Populated when listing an account's statements; null on single get-by-id (the backend statement record carries no fin-account id to map back).

source
enum<string>

Financial-data source backing a connection. All sources wrap upstream aggregators or extraction pipelines.

Values:

  • FINICITY — Finicity aggregation
  • MX — MX aggregation
  • FDE — Financial Document Extraction (LedgerSync proprietary)
Available options:
FINICITY,
MX,
FDE
download_url
string<uri> | null

Relative v3 URL to download the statement PDF, auth-scoped to your API key. Resolves to GET /statements/{statement_id}/download; GET it to stream the PDF bytes.

exported_to
string | null

Accounting platform the statement was exported to, if any.