Get Servicelocations
Description
Returns a list of all the service locations to which the specified user account has access to.
Resource URL
https://app1pub.smappee.net/dev/v3/servicelocation
HTTP method
GET
HTTP header
Authorization: Bearer [ACCESS_TOKEN]
 [ACCESS_TOKEN] being the access token received from the Get token or Refresh token authentication calls.
Parameters
Parameter | Type | Description |
---|---|---|
deviceSerialNumber | Query Parameter | When specified, filters the service locations to return only the service location where the specified serial number is activated. This query parameter is only supported in version 3 of this API. |
Example
https://app1pub.smappee.net/dev/v3/servicelocation
Result
{
"appName":"MyFirstApp",
"serviceLocations":[
{
"name":"Home",
"serviceLocationUuid":"6eefadeb-5c08-47cd-87b6-9897acb9fb8f",
"serviceLocationId":1,
"deviceSerialNumber": "5010000022"
},
{
"name":"Beach resort",
"serviceLocationUuid":"550e8400-e29b-41d4-a716-446655440000",
"serviceLocationId":2
"deviceSerialNumber": "5010000502"
}
]
}
Versioning
Version 3 (v3)
Added query parameter "serialNumber" to filter service locations with serial number of a device.
Content