---
title: "Get sub-account spending"
method: GET
path: "/v1/sub-accounts/{id}/balance"
tags: ["Sub-Accounts"]
---

# Get sub-account spending

`GET /v1/sub-accounts/{id}/balance`

## Request

- Base URL: `https://api.zavu.dev`
- URL: `https://api.zavu.dev/v1/sub-accounts/{id}/balance`
- Auth: HTTP bearer

Get spending information for a sub-account. Returns the parent team's balance, the sub-account's total spending, and its credit limit (spending cap). Requires a parent project API key; sub-account API keys receive HTTP 403.

## Path parameters

- `id` string, required

## Response `200`

Sub-account balance.

- BalanceResponse
  - `balance` integer, required: Team balance in cents. All charges are billed to the parent team.
  - `currency` string, required
  - `creditLimit` integer, nullable: Spending cap in cents (only for sub-accounts).
  - `totalSpent` integer, nullable: Total amount spent by this sub-account in cents (only for sub-accounts).
  - `isSubAccount` boolean: Whether this API key belongs to a sub-account.

## Other responses

- `401`: Unauthorized.
- `403`: Forbidden. Sub-account API keys cannot manage sub-accounts.
- `404`: Not a sub-account of this team. The parent project's own id is not a sub-account and answers 404.

## Changes

> 80 revisions in range; 1 not diffed.

- **2026-05-15** `3e45958691da`: 1 info
  - added the non-success response with the status `403`
- **2026-03-17** `dca8af164271`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/changes/v1/sub-accounts/:id/balance/get.md)

---

[API](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api.md) - [All operations](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/revisions/75bc777b0ffb?raw)
