---
title: "List cost bases"
method: GET
path: "/openmeter/currencies/custom/{currencyId}/cost-bases"
tags: ["OpenMeter Currencies"]
---

# List cost bases

`GET /openmeter/currencies/custom/{currencyId}/cost-bases`

## Request

- Base URL: `http://localhost:8888/api/v3`
- URL: `http://localhost:8888/api/v3/openmeter/currencies/custom/{currencyId}/cost-bases`
- Auth: none declared

List cost bases for a currency. For custom currencies, there can be multiple
cost bases with different `effective_from` dates.

## Path parameters

- `currencyId` string, required: ULID (Universally Unique Lexicographically Sortable Identifier).

## Query parameters

- `filter` ListCostBasesParamsFilter: Filter options for listing cost bases.
  - `fiat_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.
- `page` object
  - `size` integer: The number of items to include per page.
  - `number` integer: The page number.

## Response `200`

Page paginated response.

- CostBasisPagePaginatedResponse: Page paginated response.
  - `data` BillingCostBasis[], required
    - `id` string, required: ULID (Universally Unique Lexicographically Sortable Identifier).
    - `fiat_code` string, required: Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code. Custom three-letter currency codes are also supported for convenience.
    - `rate` string, required: Numeric represents an arbitrary precision number.
    - `effective_from` string, date-time: [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
    - `effective_to` string, date-time: [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
    - `created_at` string, date-time, required: [RFC3339](https://tools.ietf.org/html/rfc3339) formatted date-time string in UTC.
  - `meta` PaginatedMeta, required: returns the pagination information
    - `page` PageMeta, required: Contains pagination query parameters and the total number of objects returned.
      - `number` number, required
      - `size` number, required
      - `total` number, required

## Other responses

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

## Changes

- **2026-07-01** (v3) `3ce860a04553`: 1 info
  - added the optional property `data/items/effective_to` to the response with the `200` status
- **2026-06-18** (v3) `8ca194cd4b6f`: 2 info
  - api tag `OpenMeter Currencies` added
  - api tag `OpenMeter Billing` removed
- **2026-05-11** (v3) `9d0042cb3815`: 1 warning, 2 info
  - removed the optional property `data/items/effective_to` from the response with the `200` status
  - api tag `OpenMeter Billing` added
  - api tag `OpenMeter Currencies` removed

[Operation history](https://skmtc.dev/openmeterio/apis/openmeter-api/changes/openmeter/currencies/custom/:currencyId/cost-bases/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.dev/openmeterio/apis/openmeter-api/revisions/356d985e7530?raw)
