Get Statement Data
get_statementFetch the full converted data for a previously processed document. Use this after convert_statement returns a "processing" status, or to re-fetch results. output_format "json" (default) returns the data inline, renderable in chat. The other formats (csv, xlsx, qbo, xero) return a time-limited download link instead: present it as a normal link. data_mode selects which projection of the data you get: omit it for each output_format's existing default behavior. "normalized" is the cleaned, interpreted view; "original" includes each transaction's raw column values exactly as printed on the source PDF (originalData); "enhanced" is a reformatted view of the original columns (csv/xlsx only for now). Fetch data_mode: "original" when you plan to submit results to evaluate_benchmark — pass its originalData through verbatim; an absent originalData scores that benchmark's raw-fidelity dimension 0 for this document. Every response includes a "summary" field: use it as the single source of truth for what happened. If the conversation is not in English, translate it faithfully into the conversation language; never add details it doesn't contain. Never echo raw status values (e.g. "completed") or field names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| data_mode | No | ||
| document_id | Yes | ||
| output_format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| error | No | ||
| gating | No | ||
| status | Yes | ||
| columns | No | ||
| message | No | ||
| results | No | ||
| summary | No | ||
| dataMode | No | ||
| document | No | ||
| warnings | No | ||
| exportUrl | No | ||
| documentId | No | ||
| extraction | No | ||
| pagination | No | ||
| processedAt | No | ||
| transactions | No | ||
| confidenceScore | No | ||
| processingTimeMs | No | ||
| transactionCount | No |