Set accounting settings
well_upsert_accounting_settingsSet the workspace's accounting settings: fiscal year start month, first fiscal year start date, country, base currency, accounting framework, chart-of-accounts confirmation, the incorporation date, and the tax ID (value and type together).
Provide only the fields you are changing; omitted fields are left untouched. An empty call (no fields) is refused. tax_id_value and tax_id_type must be provided together.
Only a workspace owner or admin may set the accounting settings. A caller without that role is refused, not silently ignored.
Changing the fiscal year start month moves the whole fiscal calendar, so it is REFUSED when a period is locked or a close is in progress — the tool surfaces that refusal rather than forcing it. When the change is allowed, it soft-deletes the workspace's regenerable DRAFT journal entries so they re-mint on the new coordinates; VALIDATED and LOCKED entries are never touched.
These are accounting-critical values. Confirm each one with the user before calling and never guess them — do not infer a country, currency, framework, start month, or tax ID the user did not state.
The tax ID here updates the workspace's anchored company and its settings mirror together, so the two never drift. To set WHICH company is anchored, use well_set_own_company; to set that company's tax ID, use this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | ISO 3166-1 alpha-2 country code. | |
| tax_id_type | No | The tax id's type (SIREN, VAT, EIN, …). Provide it together with tax_id_value. | |
| tax_id_value | No | The company's tax id value. Provide it together with tax_id_type; one without the other is refused. | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which. | |
| base_currency | No | ISO 4217 currency code. | |
| coa_confirmed | No | Whether the chart of accounts has been confirmed. | |
| conversation_id | No | The conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation. | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. | |
| incorporation_date | No | The company's incorporation / registration date as YYYY-MM-DD, or null to clear it. | |
| accounting_framework | No | The accounting framework the books follow. | |
| fiscal_year_start_month | No | Calendar month (1-12) the fiscal year starts on, or null to clear it. | |
| first_fiscal_year_start_date | No | First fiscal year start date as YYYY-MM-DD, or null to clear it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| country | No | ||
| success | Yes | ||
| tax_id_type | No | ||
| tax_id_value | No | ||
| base_currency | No | ||
| coa_confirmed | No | ||
| conversation_id | No | The conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation. | |
| incorporation_date | No | ||
| accounting_framework | No | ||
| conversation_id_note | No | Present only when the server opened a fresh lane, stating that no choice recorded earlier was read. | |
| conversation_id_source | No | Where the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened. | |
| fiscal_year_start_month | No | ||
| first_fiscal_year_start_date | No |