SolariumSolariumDocs
Browse The Docs

Docs/Guides

Bank Import

Import a bank or card statement and skip what's already in the books.

Import bank statement rows as transactions. Each row becomes a LedgerEvent with status needs_review. Use checkBankStatementDups first to detect duplicates. For banks connected through Plaid, the list_bank_feeds op shows whether each feed is still bringing transactions in, and sync_bank_feeds brings new ones in right away instead of waiting for the nightly sync.

Endpoints

POSTCheck Bank Statement DuplicatesCheck rows against existing transactions before importing. Returns per-row duplicate flags. Full match = same date + amount + vendor. Possible match = same date + amount, different vendor.POSTImport Bank StatementImports bank statement rows as LedgerEvents attached to a payment account. Each row is created with status needs_review. Rows that exactly match existing transactions (same date, amount, and vendor) are skipped automatically.POSTList Bank FeedsEach bank and card feed connected through Plaid, and whether it's still bringing transactions in. Only a feed with feeds_books true makes transactions to review, from its start_date on. The others are stored but stay out of the books. A feed is broken when the bank needs the person to sign in again, and stale when nothing new has come in for longer than usual or it hasn't synced in 2 days. The business's owners are emailed when a feed turns broken or stale. Read-only.POSTSync Bank Feeds NowBrings in new transactions from the bank and card feeds right now, the same as the nightly sync, instead of waiting for it. Pass feed_id or feed to sync one feed, or neither to sync every connected feed. Accounts at the same bank under one sign-in come in together. It brings in what the bank has already shared with Plaid and adds new transactions to Needs Review, so it runs as soon as it's called, with no preview. The result gives each feed's new transactions, their dates and its new last synced time. A feed that couldn't sync carries an error: login_required (sign in to the bank again), rate_limited (try again in a few minutes), disconnected, too_soon (each bank syncs at most once every few minutes) or already_running.