updateAccountingSettings
Requires at least one of the permissions settings:accounting:update or settings:tenant:update.
Updates the accounting settings: fiscal year start, base currency, multi-currency, accounting method, tax calculation method, and the aging buckets and basis. Returns the saved settings. Needs settings:accounting:update, or settings:tenant:update.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation UpdateAccountingSettings($input: AccountingSettingsInput!) {
updateAccountingSettings(input: $input) {
id
createdAt
category
dataType
description
enteredBy
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateAccountingSettings($input: AccountingSettingsInput!) {\n updateAccountingSettings(input: $input) {\n id\n createdAt\n category\n dataType\n description\n enteredBy\n }\n}",
"variables": {
"input": {}
}
}
EOF
Variables:
{
"input": {}
}
Response:
{
"data": {
"updateAccountingSettings": [
{
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"category": "ACCOUNTING",
"dataType": "ARRAY",
"description": "string",
"enteredBy": "string"
}
]
}
}
updateAccountingSettings(
input: AccountingSettingsInput!
): [TenantSetting!]!
Arguments
updateAccountingSettings.input ● AccountingSettingsInput! non-null input
The accounting settings to change; fields left out stay as they are.
Type
TenantSetting object
A setting of the organization.