---
title: "Get Balance"
method: GET
path: "/billing/balance"
tags: ["billing"]
---

# Get Balance

`GET /billing/balance`

Get current credit balance.

Without ``repo_id``: returns the user's personal balance.
With ``repo_id``: resolves which pool (personal or team) would be debited
for that repo and returns that pool's balance instead, so the UI always
shows the balance that actually matters for the action the user is about
to take.

## Query parameters

- `repo_id` string, nullable — When provided, returns the effective pool balance (team or personal) that would be debited for this repo.

## Response `200`

Successful Response

- BillingBalanceResponse
  - `balance_cents` integer, required
  - `balance_dollars` number, required
  - `tier` 'free' | 'pro' | 'teams' | 'admin', required
  - `pool` string
  - `team_id` string, nullable
  - `team_name` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/repowise/repowise-hosted-api/revisions/40167ba9ab58/schema)
