Retrieve Meter

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.

Refer to Meter Error Codes for the possible error outcomes.

GET/subscriptions/meters/{meter_id}

Usage-based billing must be enabled for your organization before this endpoint accepts requests (otherwise 403 PRODUCT_NOT_ENABLED). Retrieves a meter by its id.

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

Path Parameters

meter_idstringrequired

The unique identifier of the meter.

Response

200

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.

400

codestring
messagesstring[]

403

codestring
messagesstring[]