Configure account name and enabled status
Defaults to ADMIN/ACCOUNTANT. Send the last-read version as expectedVersion (0 for an unconfigured global account). Creates a company override on first save without modifying global metadata. Disabling is a UI setting, not a ledger posting prohibition. Company permission: `configureCompanyAccount`. Defaults: ADMIN, ACCOUNTANT. Current company role permissions and active membership are checked on every request; signed legacy role claims alone do not authorize this operation.
bearerAuthAuthorizationBearer <token>Obtained from POST /api/v1/auth/login, on the tenant's own subdomain. Presenting it on another tenant's subdomain is a 403.
legalEntityId*stringuuidcode*stringapplication/json- body
enabled*booleanexpectedVersion*integerVersion last read; stale writes return 409
int640 <= valuename*string0 <= length <= 200Configuration saved with new version
application/json- response
balanceType?stringcode?stringcustom?booleanenabled?booleanname?stringnormalSide?stringsubaccountCount?integerint64type?string"ASSET""CONTRA_ASSET""LIABILITY""EQUITY""INCOME""EXPENSE"version?integer0 for an unconfigured global account; send as expectedVersion when configuring
int64curl -X PUT 'https://api.monetaryai.uz/api/v1/accounting-settings/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts/string' \ -H 'Content-Type: application/json' \ -d '{ "enabled": true, "expectedVersion": 0, "name": "string"}'{ "balanceType": "string", "code": "string", "custom": true, "enabled": true, "name": "string", "normalSide": "string", "subaccountCount": 0, "type": "ASSET", "version": 0}Save accounting policy and tax UI settings PUT
Defaults to ADMIN/ACCOUNTANT. All four fields and expectedVersion are required; VAT is a percentage from 0 to 100 with at most two decimal places. Stale writes return 409; reload first. Does not amend posted entries, effective-dated histories or determine statutory rates. Settings and actor audit commit atomically. Company permission: `saveCompanyAccountingSettings`. Defaults: ADMIN, ACCOUNTANT. Current company role permissions and active membership are checked on every request; signed legacy role claims alone do not authorize this operation.
Configure a subaccount PUT
Defaults to ADMIN/ACCOUNTANT. Name and enabled status may change using expectedVersion; parent and code cannot change. An enabled child requires an enabled parent. Audit is atomic. Company permission: `configureCompanySubaccount`. Defaults: ADMIN, ACCOUNTANT. Current company role permissions and active membership are checked on every request; signed legacy role claims alone do not authorize this operation.