Submit registered documents
submitProcesses registered documents as one durable FinStat Task: the statements and workspace declarations named in documents (an array of registered_document_id, or "all", the default, for every one not yet submitted, oldest first, at most 100 per call). Processing founds the parties and accounts and derives the events; it posts to no chart: post_chart_accounts does. Submit in sets to keep control: January's statements, check, then the next set. Naming a chart, a journal-entry declaration or a retirement is refused with a pointer to post_chart_accounts (not_submittable), as is a set with nothing left to submit. A returned taskId proves admission, not settlement; persist it and poll tasks_get at pollIntervalMs. Submitting the same set again replays its outcome. list_submissions recovers a lost taskId. Metered: processing runs the workspace's identity and event work, which bills to the workspace owner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documents | No | Registered statements and workspace declarations to process: an array of registered_document_id, one id, or "all" (the default) for every one not yet submitted. | |
| workspace_tag | Yes | Active workspace id (the workspace_tag create_workspace and list_workspaces return). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||