---
title: "Fetch parent accounts"
method: GET
path: "/analytic-accounts/fetch-parent-accounts"
tags: ["AnalyticAccounts"]
---

# Fetch parent accounts

`GET /analytic-accounts/fetch-parent-accounts`

## Request

- Base URL: `http://localhost/app4legal/api/v2/money`
- URL: `http://localhost/app4legal/api/v2/money/analytic-accounts/fetch-parent-accounts`
- Auth: OAuth 2
  - Password
  - Token URL: `http://localhost/app4legal/api/v2/core/login`
- TypeScript: <https://skmtc.dev/app4legal/apis/a4l-money-api/docs/analytic-accounts/fetch-parent-accounts/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch parent analytic accounts and thiere items

## Response `200`

Successful operation

- object
  - `message` object
    - `parent_analytic_accounts` object[]
      - `id` integer
      - `parent_id` integer, nullable
      - `name` string
      - `items` object[]
        - `id` integer
        - `parent_id` integer
        - `name` string

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

## Changes

- **2026-08-06** `e0d144609998`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/app4legal/apis/a4l-money-api/changes/analytic-accounts/fetch-parent-accounts/get.md)

---

[API](https://skmtc.dev/app4legal/apis/a4l-money-api.md) - [All operations](https://skmtc.dev/app4legal/apis/a4l-money-api/llms.txt) - [OpenAPI document](https://skmtc.dev/app4legal/apis/a4l-money-api/revisions/e0d144609998?raw)
