Skip to content
Proud to collaborate with Microsoft for Startups

data.commerce.bank-line.parse ​

Parse an OFX or CSV bank statement into normalized, pseudonymized lines

Read an OFX or CSV statement into pseudonymized, matchable lines.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-commerce
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
statement_formatstringYes—'ofx' or 'csv'.
contentstringYes—The statement document as text. Bounded; parse a page at a time.
account_idstringNo—The bank's own account identifier, used ONLY to derive a pseudonym and never returned. Required for CSV, which carries no account; optional for OFX, where it overrides <ACCTID>.
column_mapjsonNo—CSV only. Maps a role to the header carrying it, e.g. {'posted_at': 'Data', 'amount': 'Valor'}. Roles: external_ref, posted_at, value_date, amount, credit, debit, counterparty, description, balance_after
currencystringNoBRLFallback when the document does not declare one.
include_descriptionsbooleanNoFalseOff by default. A bank memo routinely carries a person's name and is never a matching key, so it is dropped unless asked for.
max_linesintegerNo500—

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
statement_formatstringYes——
account_refstringYes—Keyed organization-scoped pseudonym. Never the account number.
itemslistYes—Normalized lines, shaped as data.commerce.bank-line.persist-batch items.
item_countintegerYes——
rejected_itemslistYes——
rejected_countintegerYes——
currencystringYes——
net_amountstringYes——
earliest_posted_atstringNo——
latest_posted_atstringNo——
descriptions_includedbooleanYes——
parsed_atstringYes——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "data.commerce.bank-line.parse",
  "initial_data": {
    "organization_uuid": "value",
    "statement_format": "value",
    "content": "value"
  }
}