Measurements
Get Measurement
API Reference
- Customers
- Products
- Plans
- Contracts
- Invoices
- Measurements
- Auth
- Events
- Reports
- Integrations
- Credits
- Webhooks
Measurements
Get Measurement
Get a Measurement by id.
GET
/
measurements
/
{measurementId}
curl --request GET \
--url https://connect.withvayu.com/measurements/{measurementId} \
--header 'Authorization: Bearer <token>'
{
"measurement": {
"accountId": "<string>",
"period": {
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z"
},
"meterId": "<string>",
"customerId": "<string>",
"value": 1,
"price": 123,
"measurementPriceId": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
application/json
RequestSuccess
The id of the account that the measurement is associated with
The id of the meter that the measurement is associated with
The id of the customer that the measurement is associated with
The value of the measurement
Required range:
x >= 0
The price of the measurement
The id of the measurement price that the measurement is associated with
curl --request GET \
--url https://connect.withvayu.com/measurements/{measurementId} \
--header 'Authorization: Bearer <token>'
{
"measurement": {
"accountId": "<string>",
"period": {
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z"
},
"meterId": "<string>",
"customerId": "<string>",
"value": 1,
"price": 123,
"measurementPriceId": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}