Skip to main content
PATCH
Correct a check's OCR readings

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

account_id
string
required
check_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. Check corrections are scoped the same way.

Body

application/json

A correction to a check's OCR readings. ocr is the only field accepted; any other field is rejected with a 400.

ocr
object

The readings to correct. Omitted fields keep their value and null clears one; for the text fields and check_date an empty string clears it too, and leading or trailing spaces are removed. Any other field is rejected with a 400.

Response

The corrected Check.

One image captured from an account: a check the account holder wrote, or a deposit (which can be its slip, a page the bank made for it, or the deposited check). Nothing marks which; see amount and transaction_id. FDE-only: no other source delivers check images. LedgerSync captures the front of a check only, so a check is exactly one image and there is no side field.

id
string
required
Example:

"chk_FDE_742778"

account_id
string
required

The owning account id.

Example:

"acc_FDE_77"

source
enum<string>
required

Financial-data source backing an account. Aggregator sources (FINICITY, MX) and FDE back a Connection; PDF does not.

Values:

  • FINICITY — Finicity aggregation
  • MX — MX aggregation
  • FDE — Financial Document Extraction (LedgerSync proprietary)
  • PDF — Uploaded bank statements. Read-only: exposed on /accounts and /transactions (statements are not served for PDF), and never as a Connection (PDF accounts have connection_id: null).
Available options:
FINICITY,
MX,
FDE,
PDF
download_url
string<uri>
required

Relative v3 URL to download the check image, auth-scoped to your API key. Resolves to GET /accounts/{account_id}/checks/{check_id}/download.

check_number
string | null

Check number as reported by the bank, or null when it reported none. A value without a digit (a bank's "-" or "Not available") is no number, so it reads as null here and in ocr.check_number.

Example:

"1234"

amount
number<double> | null

The amount as reported by the bank, with the bank's sign: negative for a check the account holder wrote, positive for a deposit. At some banks a written check is positive too, so a positive amount alone does not prove a deposit; the matched transaction (transaction_id) shows which way the money moved.

Example:

-424.87

pay_to
string | null

Payee as reported by the bank.

description
string | null

Free-text description carried on the check record.

transaction_date
string<date> | null

Date of the bank transaction this check belongs to.

transaction_id
string | null

The bank transaction LedgerSync matched this image to, from the same Client's Finicity or MX connection (the Finicity one when the image is matched in both), as an id for GET /transactions/{transaction_id}. Null when the image is matched to none. A correction of the ocr readings can match the image again, and change this id.

Example:

"txn_FINICITY_5512309"

ocr
object | null

What OCR read off the image, or a person's correction of that reading, kept separate from the bank-reported fields above so you can always tell the two apart. Absent when nothing was recognised.