curl --request GET \
--url https://sandbox-api.billingrails.com/v1/meters/{id} \
--header 'Authorization: Bearer <token>'
{
"meter": {
"object": "meter",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "active",
"name": "<string>",
"code": "<string>",
"event": "<string>",
"description": "<string>",
"account_mapping": {
"type": "id",
"event_property": "billingrails_account_id"
},
"profiles": [
{
"id": "<string>",
"name": "<string>",
"code": "<string>",
"recurring": true,
"aggregation_property": "<string>",
"aggregation_method": "sum",
"aggregation_time_window": "hour",
"filters": [
{
"property": "<string>",
"operator": "in",
"value": [
"<string>"
]
}
]
}
],
"default_profile": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"recurring": true,
"aggregation_property": "<string>",
"aggregation_method": "sum",
"aggregation_time_window": "hour",
"filters": [
{
"property": "<string>",
"operator": "in",
"value": [
"<string>"
]
}
]
}
}
}
Retrieves meter by ID.
curl --request GET \
--url https://sandbox-api.billingrails.com/v1/meters/{id} \
--header 'Authorization: Bearer <token>'
{
"meter": {
"object": "meter",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "active",
"name": "<string>",
"code": "<string>",
"event": "<string>",
"description": "<string>",
"account_mapping": {
"type": "id",
"event_property": "billingrails_account_id"
},
"profiles": [
{
"id": "<string>",
"name": "<string>",
"code": "<string>",
"recurring": true,
"aggregation_property": "<string>",
"aggregation_method": "sum",
"aggregation_time_window": "hour",
"filters": [
{
"property": "<string>",
"operator": "in",
"value": [
"<string>"
]
}
]
}
],
"default_profile": {
"id": "<string>",
"name": "<string>",
"code": "<string>",
"recurring": true,
"aggregation_property": "<string>",
"aggregation_method": "sum",
"aggregation_time_window": "hour",
"filters": [
{
"property": "<string>",
"operator": "in",
"value": [
"<string>"
]
}
]
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success
The response is of type object
.