GET api/SocialDriver/Service?serviceId={serviceId}
Get a service you have permission to view by id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| serviceId | unsigned integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A ServiceResponse
ServiceResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The id of the service |
unsigned integer |
None. |
| Name |
The name of the service |
string |
None. |
| IMEI |
The imei of the service or null if one is not present |
string |
None. |
| ImageURL |
A url pointing to the service image |
string |
None. |
| Location |
The services location if one is available |
ServiceLocation |
None. |
| RecoveryProvider |
Details of a recovery provider for a service or null if there isn't one |
RecoveryProvider |
None. |
| Recovering |
True if the service is being recovered by a recovery provider |
boolean |
None. |
| DeviceType |
The device type |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"IMEI": "sample string 3",
"ImageURL": "sample string 4",
"Location": {
"Latitude": 1.1,
"Longitude": 1.1,
"UpdateTime": "2025-10-30T15:21:00.6970504+00:00",
"Street": "sample string 2",
"Town": "sample string 3",
"Country": "sample string 4",
"Postcode": "sample string 5",
"BatteryVoltage": 6.1,
"BatteryStatus": 0,
"BatteryStatusV2": 0,
"LocationAccuracy": 7
},
"RecoveryProvider": {
"Name": "sample string 1",
"PhoneNumber": "sample string 2"
},
"Recovering": true,
"DeviceType": 6
}
application/xml, text/xml
Sample:
<ServiceResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Id>1</Id>
<Name>sample string 2</Name>
<IMEI>sample string 3</IMEI>
<ImageURL>sample string 4</ImageURL>
<Location>
<Latitude>1.1</Latitude>
<Longitude>1.1</Longitude>
<UpdateTime>2025-10-30T15:21:00.6970504+00:00</UpdateTime>
<Street>sample string 2</Street>
<Town>sample string 3</Town>
<Country>sample string 4</Country>
<Postcode>sample string 5</Postcode>
<BatteryVoltage>6.1</BatteryVoltage>
<BatteryStatus>Full</BatteryStatus>
<BatteryStatusV2>Full</BatteryStatusV2>
<LocationAccuracy>7</LocationAccuracy>
</Location>
<RecoveryProvider>
<Name>sample string 1</Name>
<PhoneNumber>sample string 2</PhoneNumber>
</RecoveryProvider>
<Recovering>true</Recovering>
<DeviceType>6</DeviceType>
</ServiceResponse>