---
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`

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

---

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