Set accounting settings
well_upsert_accounting_settingsSet the workspace's accounting configuration: fiscal year start month, first fiscal year start date, country, base currency, accounting framework, and chart-of-accounts confirmation.
Provide only the fields you are changing; omitted fields are left untouched. An empty call (no fields) is refused.
Only a workspace owner or admin may set the accounting configuration. 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, or start month the user did not state.
This tool does NOT set the workspace's legal identity (registered name, trade name, tax id, domain): that is owned by well_set_own_company. Use that tool for identity, this one for accounting configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | ISO 3166-1 alpha-2 country code. | |
| 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. | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. | |
| 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 | ||
| base_currency | No | ||
| coa_confirmed | No | ||
| accounting_framework | No | ||
| fiscal_year_start_month | No | ||
| first_fiscal_year_start_date | No |