MonetaryAI / Docs
API ReferenceAccounting settings

List company chart of accounts

Global NAS accounts with company name/enabled overrides plus company custom metadata. Includes all direct subaccounts in subaccountCount (including disabled); balanceType ACTIVE/PASSIVE is derived from normal debit/credit side, not enabled status. Literal q search; ordered by code. Company permission: `listCompanyAccounts`. Defaults: ADMIN, ACCOUNTANT, VIEWER. Current company role permissions and active membership are checked on every request; signed legacy role claims alone do not authorize this operation.

GET
/api/v1/accounting-settings/{legalEntityId}/accounts

Authorization

bearerAuth
headerAuthorizationBearer <token>

Obtained from POST /api/v1/auth/login, on the tenant's own subdomain. Presenting it on another tenant's subdomain is a 403.

Path Parameters

legalEntityId*string
Formatuuid

Query Parameters

q?string

Literal code/name search, maximum 100 characters

Default""
type?string
Value in"ASSET""CONTRA_ASSET""LIABILITY""EQUITY""INCOME""EXPENSE"
page?integer

Zero-based page

Formatint32
Default0
size?integer

Page size 1–100

Formatint32
Default50

Response Body

Account page returned

application/json
  1. response
items?array<>
page?integer
Formatint32
size?integer
Formatint32
totalElements?integer
Formatint64
totalPages?integer
Formatint64
curl -X GET 'https://api.monetaryai.uz/api/v1/accounting-settings/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts'
{  "items": [    {      "balanceType": "string",      "code": "string",      "custom": true,      "enabled": true,      "name": "string",      "normalSide": "string",      "subaccountCount": 0,      "type": "ASSET",      "version": 0    }  ],  "page": 0,  "size": 0,  "totalElements": 0,  "totalPages": 0}