Export Standard Statement
export_standard_statementConverts one authenticated Standard Statement into one interchange file. Provide an authorized transfer handle and the closed format: qbo (one QuickBooks Web Connect file), ofx (one generic OFX file), or csv — and when format is csv, also target from the closed column contract quickbooks, xero, sage, or finstat. OFX/QBO support checking, savings, and credit-card registers; other register kinds require CSV. Supply bank_id (the actual routing identifier) for checking/savings; QBO also requires intu_bid (the Intuit institution identifier). Optional fid is the institution's OFX identifier. These are never inferred from account numbers. CSV columns vary by target; finstat includes resolution fields. All formats use bank-feed polarity (credit-family charges are negative). Original references are preserved separately from generated FITIDs.
The handle authenticates through the same membrane as open_standard_document; admission is neither required nor performed, and workspace books are never read or changed. The result is an expiring download handle with format, size, and SHA-256. A non-statement Standard Document is rejected. Not metered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fid | No | Optional OFX financial institution identifier; separate from bank_id and intu_bid. | |
| format | Yes | Closed interchange format. csv additionally requires target. | |
| handle | Yes | Transfer handle naming the Standard Statement. | |
| target | No | Required when format is csv. | |
| bank_id | No | Actual bank routing identifier, required for checking/savings OFX/QBO. Never an account number. | |
| intu_bid | No | Intuit financial institution identifier, required for QBO. Obtain from the target institution; never guess. | |
| workspace_tag | Yes | Active workspace id (the workspace_tag create_workspace and list_workspaces return) — authorization and transfer storage only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | Yes | Stamped engine build/version identity for the tool result. | |
| format | Yes | qbo, ofx, or csv. | |
| handle | Yes | Download handle (download:N) for the export file. | |
| sha256 | Yes | Export SHA-256 digest. | |
| status | Yes | standard_statement_exported on success. | |
| target | No | CSV only: the selected target format (quickbooks, xero, sage, or finstat). | |
| file_name | Yes | Export file name. | |
| byte_count | Yes | Export byte count. | |
| expires_at | Yes | Download session expiry. | |
| media_type | Yes | Export media type. | |
| session_id | Yes | Opaque transfer-session identity for recovery through list_transfer_sessions. | |
| artifact_kind | Yes | Public transfer artifact classification. | |
| source_handle | Yes | The converted standard statement document's transfer handle, echoed. | |
| workspace_tag | Yes | Workspace used for authorization and transfer storage. | |
| sign_convention | Yes | bank_feed: positive inflow, negative outflow. | |
| download_program | Yes | ||
| transaction_count | Yes | Number of register transactions in the export file. |