Banking
Imports

Upload a bank or card file into the account's Bank Feeds card

The account needs a Bank Feeds card (connected to a bank, files only, or both) that is not hidden. Any dates are allowed. Rows an earlier upload already added (same date, amount, and cleaned description) are skipped by count; new rows that look like an existing bank or file row (same amount, dates within 3 days) are added and paired as possible duplicates. Added rows get rules, the AI pass, auto-post, and posting exactly like bank rows. Preview first; it writes nothing. When the date or amount column can't be found, the preview returns needsColumns with the headers, sample rows, and a suggested mapping; send the confirmed mapping with preview and commit. The mapping is remembered for the account.

post/bank-accounts/{bankAccountId}/bank-feed-csv

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/bank-accounts/{bankAccountId}/bank-feed-csv
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Path parameters

bankAccountIdstring uuid required

Target LedgerHQ bank account UUID

Request body

mode'preview' | 'commit'
fileNamestring nullable
contentstring required
format'csv' | 'tsv' | 'qif' | 'ofx' | 'qfx' | 'qbo' | 'null' nullable
flipSignsboolean

Reverse every amount, for files that list card charges as positive

Response

Preview, or a commit that added nothing

Changes

No recorded changes to this operation across all 5 revisions of this API.