Reading
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
The list of registers readings
Input data was invalid
Not authorized
Not allowed
Internal server error
GET /api/readings?organizationId=1®isterId=1&start=2025-11-03T15%3A51%3A44.667Z&end=2025-11-03T15%3A51%3A44.667Z HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"registerId": 1,
"readings": [
{
"periodFrom": "2025-11-03T15:51:44.667Z",
"periodTo": "2025-11-03T15:51:44.667Z",
"updatedAt": "2025-11-03T15:51:44.667Z",
"value": 1
}
]
}
]Required permission is Meter.Organization.ReadWrite in the organization(s) that have access to the meters.
The readings were saved
No content
Input data was invalid
Not authorized
Not allowed
Internal server error
POST /api/readings HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"meters": [
{
"id": "text",
"registers": [
{
"id": "text",
"values": [
{
"timestamp": "2025-11-03T15:51:44.667Z",
"periodTo": "2025-11-03T15:51:44.667Z",
"value": 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'.
The list of registers readings
Input data was invalid
Not authorized
Not allowed
Internal server error
GET /api/readings/average/hourly?organizationId=1®isterId=1&start=2025-11-03T15%3A51%3A44.667Z&end=2025-11-03T15%3A51%3A44.667Z HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"registerId": 1,
"readings": [
{
"periodFrom": "2025-11-03T15:51:44.667Z",
"periodTo": "2025-11-03T15:51:44.667Z",
"updatedAt": "2025-11-03T15:51:44.667Z",
"value": 1
}
]
}
]Last updated
Was this helpful?