---
title: "Fetch Subaccount Balance API"
method: GET
path: "/merchants/subaccount/balance/{id}"
---

# Fetch Subaccount Balance API

`GET /merchants/subaccount/balance/{id}`

## Request

- Base URL: `https://api.durianpay.id/v1`
- URL: `https://api.durianpay.id/v1/merchants/subaccount/balance/{id}`
- Auth: HTTP basic

The following endpoint retrieves balance of a single subaccount

## Path parameters

- `id` string, required

## Query parameters

- `as_of` string

## Response `200`

200

- object
  - `data` object
    - `subaccounts` object[]
      - `id` string
      - `name` string
      - `is_enabled` boolean
      - `subaccount_ref_id` string
    - `total_count` integer

## Other responses

- `400`: 400
- `500`: 500

---

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