Polar::Api::CustomerMeters
API client for customer_meters operations
Constants
Log = ::Log.for(self)
Constructors
new(client : Client)
Creates a new CustomerMeters instance
@param client [Client] The Polar API client instance
Instance methods
Get Customer Meter
Get a customer meter by ID.
Scopes: customer_meters:read
Endpoint: GET /v1/customer-meters/{id}
Parameters:
id(required): The customer meter ID.
Returns: Polar::Models::CustomerMeter
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
list(organization_id : String | Nil = nil, customer_id : String | Nil = nil, external_customer_id : String | Nil = nil, meter_id : String | Nil = nil, page : Int32 | Nil = nil, limit : Int32 | Nil = nil, sorting : String | Nil = nil) : Polar::Models::ListResource(Polar::Models::CustomerMeter)
List Customer Meters
List customer meters.
Scopes: customer_meters:read
Endpoint: GET /v1/customer-meters/
Parameters:
organization_id(optional): Filter by organization ID.customer_id(optional): Filter by customer ID.external_customer_id(optional): Filter by external customer ID.meter_id(optional): Filter by meter ID.page(optional): Page number, defaults to 1.limit(optional): Size of a page, defaults to 10. Maximum is 100.sorting(optional): Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign - before the criteria name to sort by descending order.
Returns: Polar::Models::ListResource(Polar::Models::CustomerMeter)
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors