---
title: "Fetch sub-account details by sub-account ID."
method: GET
path: "/ledger/subaccounts/{subAccountIdRef}"
tags: ["ledger-sub-accounts"]
---

# Fetch sub-account details by sub-account ID.

`GET /ledger/subaccounts/{subAccountIdRef}`

This endpoint returns sub-account details by sub-account ID.

## Path parameters

- `subAccountIdRef` string, required

## Response `200`

Sub-account fetched Successfully

- SubAccount
  - `id` string, uuid, required — Unique sub-account ID
  - `accountId` string, uuid, required — The main account ID to which this sub-account belongs.
  - `displayName` string — An optional name for the sub-account.
  - `reference` string, required — A unique reference for the sub-account.
  - `currency` string, required — Currency of the sub-account
  - `accountBalance` AccountBalanceDetails, required — Account balance details
    - `balance` number — The actual ledger balance of the account
    - `availableBalance` number — The available balance for spending
  - `frozen` boolean, required — Indicates if the sub-account is frozen (locked) or not.
  - `createdDate` string, date-time, required — The date the sub-account was created.

## Other responses

- `400` — Request could not be validated
- `401` — Client is not authorized to make request
- `403` — Expected permission is not available.
- `404` — Entity was not found
- `default` — Internal Server Error

---

[API](https://skmtc.net/nestechops/apis/onboard-external-api-gateway.md) · [All operations](https://skmtc.net/nestechops/apis/onboard-external-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nestechops/onboard-external-api-gateway/versions/29661adc1ffc/schema)
