List Meters

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.

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).

GET/subscriptions/meters

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.

Header Parameters

X-Account-Codestringrequired

The account_id found in your WHITELABEL Dashboard (UUID). Required — omitting it returns 400 BAD_REQUEST (“Invalid x-account-code header.”).

Query Parameters

account_idstring

The unique identifier of the account whose meters to list (UUID, 36 chars).

limitinteger

Maximum number of meters to return. Must be >= 1, else 400 INVALID_PARAMETERS. Defaults to 20.

offsetinteger

Number of meters to skip. Must be >= 0. Defaults to 0.

Response

200

dataobject[]
Show data properties
idstring

The unique identifier of the meter.

account_idstring

The unique identifier of the account that owns the meter.

namestring
descriptionstring
event_namestring
aggregation"SUM" | "COUNT" | "LAST"
unit_labelstring
plural_unit_labelstring
default_priceobject
Show default_price properties
currencystring
valuenumber
metadataobject[]
Show metadata properties
keystring
valuestring
status"ACTIVE" | "INACTIVE"
created_atstring

Set by WHITELABEL on creation.

updated_atstring

Set by WHITELABEL on every update.

paginationobject
Show pagination properties
totalinteger

Total number of items.

limitinteger
offsetinteger
has_moreboolean

true when more items exist beyond offset + limit.

400

codestring
messagesstring[]

403

codestring
messagesstring[]