Accountant Portal
Transactions

Preview a bank-statement CSV import (no write)

Changed on

PG-p08-017. The same body as the import, decided row by row by the same code, with nothing written. new imports (two equal same-day rows both import; the second is left in review for a person, BK-107). bill_payment imports and names the open bill of exactly that amount the bank row would pay (the match is made after import). suspected_duplicate has no bank id and looks like a row already booked from a feed or another file: it is booked for a person to decide, never dropped. already_booked repeats a booked row (its bank id, or the same file again) and is skipped. counts.toImport counts new rows and bill payments. People only: the service token is refused.

post/accountant/companies/{customerId}/transactions/import/preview

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

customerId, string uuid required

Request body

ImportTransactionsCsvInput required
accountId, string uuid required

The "deposit to" account rows will post against. May be an integration_account id (Mercury/Ramp/Plaid), a bank_account id (legacy/manual), or a gl_account id (direct Chart-of-Accounts selection, e.g. Undeposited Funds); resolved server-side to a concrete GL account.

entityId, string uuid

Concrete legal entity that owns the import. Required for direct GL-account imports; when the selected account is connected, this value must match its immutable entity owner.

rows, TransactionImportRow[] required
csvFingerprint, string nullable

Optional client-generated hash of the raw CSV content. Kept for tracing in raw payloads only; it does not scope row-level dedup.

Response

Every row's class

object required
success, boolean required
data, TransactionImportPreview required

PG-p08-017 CSV import preview.

Changes