Readings
Required permissions: Meter.Organization.Read
The organization identifier
The registers identifiers
The start date and time represented using ISO 8601 format and is always in UTC time, e.g. midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
The end date and time represented using ISO 8601 format and is always in UTC time, e.g. midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
The readings resolution in seconds and if not supplied the default value is 0 seconds
GET /api/readings HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"registerId": 1,
"readings": [
{
"timestamp": "2025-08-02T01:58:54.850Z",
"periodTo": "2025-08-02T01:58:54.850Z",
"updatedAt": "2025-08-02T01:58:54.850Z",
"value": 1,
"resolution": 1
}
]
}
]
Required permission is Meter.Organization.ReadWrite in the organization(s) that have access to the meters.
POST /api/readings HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 131
{
"meters": [
{
"id": "text",
"registers": [
{
"id": "text",
"values": [
{
"timestamp": "2025-08-02T01:58:54.850Z",
"value": 1,
"resolution": 1
}
]
}
]
}
]
}
No content
Required permissions: Meter.Organization.Read
The organization identifier
The registers identifiers
The start date and time represented using ISO 8601 format and is always in UTC time, e.g. midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
The end date and time represented using ISO 8601 format and is always in UTC time, e.g. midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
GET /api/readings/average/hourly HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"registerId": 1,
"readings": [
{
"timestamp": "2025-08-02T01:58:54.850Z",
"periodTo": "2025-08-02T01:58:54.850Z",
"updatedAt": "2025-08-02T01:58:54.850Z",
"value": 1,
"resolution": 1
}
]
}
]
Last updated
Was this helpful?