# List Meters

<Note>
**Enabled per organization**

Usage-based billing must be enabled for your organization before these endpoints accept requests. Contact your WHITELABEL account manager to enable it. Requests from an organization where it is not enabled return `403 PRODUCT_NOT_ENABLED`.
</Note>

<Note>
The list includes `INACTIVE` (archived) meters. Filter on `status` client-side if you only want the meters currently accepting usage events. Pagination is `limit`/`offset`, and the response wraps the meters in `data` with a `pagination` object (`total`, `limit`, `offset`, `has_more`).
</Note>

**GET** `/subscriptions/meters`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Usage-based billing must be enabled for your organization before this endpoint accepts requests (otherwise `403 PRODUCT_NOT_ENABLED`). Returns a paginated list of the meters that belong to the authenticated account, including `INACTIVE` (archived) meters. 1-indexed pagination.

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Account-Code` (string, required)
  The `account_id` found in your [WHITELABEL Dashboard](https://dashboard.whitelabel.com/developers) (UUID). Required — omitting it returns `400 BAD_REQUEST` ("Invalid x-account-code header.").

## Query parameters

- `account_id` (string)
  The unique identifier of the account whose meters to list (UUID, 36 chars).
- `limit` (integer)
  Maximum number of meters to return. Must be >= 1, else `400 INVALID_PARAMETERS`. Defaults to 20.
- `offset` (integer)
  Number of meters to skip. Must be >= 0. Defaults to 0.

## Responses

### 200

200

- `data` (object[])
  - `id` (string)
    The unique identifier of the meter.
  - `account_id` (string)
    The unique identifier of the account that owns the meter.
  - `name` (string)
  - `description` (string)
  - `event_name` (string)
  - `aggregation` ("SUM" | "COUNT" | "LAST")
  - `unit_label` (string)
  - `plural_unit_label` (string)
  - `default_price` (object)
    - `currency` (string)
    - `value` (number)
  - `metadata` (object[])
    - `key` (string)
    - `value` (string)
  - `status` ("ACTIVE" | "INACTIVE")
  - `created_at` (string)
    Set by WHITELABEL on creation.
  - `updated_at` (string)
    Set by WHITELABEL on every update.
- `pagination` (object)
  - `total` (integer)
    Total number of items.
  - `limit` (integer)
  - `offset` (integer)
  - `has_more` (boolean)
    `true` when more items exist beyond `offset + limit`.

Example:

```json
{
  "data": [
    {
      "id": "string",
      "account_id": "string",
      "name": "string",
      "description": "string",
      "event_name": "string",
      "aggregation": "SUM",
      "unit_label": "string",
      "plural_unit_label": "string",
      "default_price": {
        "currency": "string",
        "value": 0
      },
      "metadata": [
        {
          "key": "string",
          "value": "string"
        }
      ],
      "status": "ACTIVE",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "pagination": {
    "total": 0,
    "limit": 0,
    "offset": 0,
    "has_more": true
  }
}
```

### 400

400

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "string",
  "messages": [
    "string"
  ]
}
```

### 403

403

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "PRODUCT_NOT_ENABLED",
  "messages": [
    "string"
  ]
}
```