You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 13 Current »
Returns a list of all the service locations to which the specified user account has access to.
https://app1pub.smappee.net/dev/v3/servicelocation
GET
Authorization: Bearer [ACCESS_TOKEN]
[ACCESS_TOKEN] being the access token received from the Get token or Refresh token authentication calls.
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.
{ "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" } ] }
Added query parameter "serialNumber" to filter service locations with serial number of a device.