---
title: "Get a customer's credit balance"
method: GET
path: "/openmeter/customers/{customerId}/credits/balance"
tags: ["OpenMeter Customers"]
---

# Get a customer's credit balance

`GET /openmeter/customers/{customerId}/credits/balance`

Get a credit balance.

## Path parameters

- `customerId` string, required — ULID (Universally Unique Lexicographically Sortable Identifier).

## Query parameters

- `timestamp` string, date-time — [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
- `filter` GetCreditBalanceParamsFilter — Filter options for getting a credit balance.
  - `currency` union — Filters on the given string field value by exact match. All properties are optional; provide exactly one to specify the comparison.
    - string
    - object
      - `eq` string — Value strictly equals the given string value.
      - `oeq` string — Returns entities that exact match any of the comma-delimited phrases in the filter string.
      - `neq` string — Value does not equal the given string value.
  - `feature_key` union — Filters on the given string field value by either exact or fuzzy match. All properties are optional; provide exactly one to specify the comparison.
    - string
    - object
      - `eq` string — Value strictly equals the given string value.
      - `neq` string — Value does not equal the given string value.
      - `contains` string — Value contains the given string value (fuzzy match).
      - `ocontains` string — Returns entities that fuzzy-match any of the comma-delimited phrases in the filter string.
      - `oeq` string — Returns entities that exact match any of the comma-delimited phrases in the filter string.
      - `gt` string — Value is greater than the given string value (lexicographic compare).
      - `gte` string — Value is greater than or equal to the given string value (lexicographic compare).
      - `lt` string — Value is less than the given string value (lexicographic compare).
      - `lte` string — Value is less than or equal to the given string value (lexicographic compare).
      - `exists` boolean — When true, the field must be present (non-null); when false, the field must be absent (null).

## Response `200`

CreditBalances response.

- BillingCreditBalances — The balances of the credits of a customer.
  - `retrieved_at` string, date-time, required — [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
  - `balances` CreditBalance[], required — The balances by currencies.
    - `currency` union, required — Fiat or custom currency code.
      - string — Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code. Custom three-letter currency codes are also supported for convenience.
      - string — Custom currency code. It should be a unique code but not conflicting with any existing fiat currency codes.
    - `live` string, required — Numeric represents an arbitrary precision number.
    - `settled` string, required — Numeric represents an arbitrary precision number.
    - `pending` string, required — Numeric represents an arbitrary precision number.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

## Changes

- **2026-08-25** (v3) `bd7fb1027684` — 1 breaking, 1 info
  - added `#/components/schemas/CurrencyCode, #/components/schemas/BillingCurrencyCodeCustom` to the `balances/items/currency/allOf[#/components/schemas/BillingCurrencyCode]/` response property `oneOf` list for the response status `200`
  - removed `#/components/schemas/CurrencyCode, #/components/schemas/BillingCurrencyCodeCustom` from the `balances/items/currency/allOf[#/components/schemas/BillingCurrencyCode]/` response property `anyOf` list for the response status `200`
- **2026-07-30** (v3) `b4f5102c436d` — 1 breaking, 2 info
  - the `balances/items/currency/allOf[#/components/schemas/BillingCurrencyCode]/` response's property type changed from `string` to no type for status `200`
  - removed `#/components/schemas/CurrencyCode` from the `balances/items/currency/allOf[#/components/schemas/BillingCurrencyCode]/` response property `allOf` list for the response status `200`
  - added `#/components/schemas/CurrencyCode, #/components/schemas/BillingCurrencyCodeCustom` to the `balances/items/currency/allOf[#/components/schemas/BillingCurrencyCode]/` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/openmeterio/apis/openmeter-api/changes/openmeter/customers/:customerId/credits/balance/get.md)

---

[API](https://skmtc.dev/openmeterio/apis/openmeter-api.md) · [All operations](https://skmtc.dev/openmeterio/apis/openmeter-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openmeterio/openmeter-api/revisions/6b130773c78e/schema)
