MonetaryAI / Docs
API ReferenceAccounting settings

List direct subaccounts

Tenant/company/parent-scoped metadata; not inferred from global NAS sections. Literal search across subaccount code/name, ordered by code/id. Company permission: `listCompanySubaccounts`. 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/{code}/subaccounts

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
code*string

Query Parameters

q?string

Literal search, maximum 100 characters

Default""
page?integer

Zero-based page

Formatint32
Default0
size?integer

Page size 1–100

Formatint32
Default50

Response Body

Subaccount 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/string/subaccounts'
{  "items": [    {      "code": "string",      "enabled": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "parentCode": "string",      "version": 0    }  ],  "page": 0,  "size": 0,  "totalElements": 0,  "totalPages": 0}