GET geotab/device?serialNumber={serialNumber}
Get details of a geotab device
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
serialNumber |
The serial number queried |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
A GeotabQueryDeviceResponse
GeotabQueryDeviceResponseName | Description | Type | Additional information |
---|---|---|---|
magtrackBatteryStatus |
The status of the battery |
MagtrackBatteryStatus |
None. |
recovering |
Indicates if the device is being recovered |
boolean |
None. |
recoveryProvider |
Details of a recovery provider for a service or null if there isn't one |
GeotabRecoveryProvider |
None. |
Response Formats
application/json, text/json
Sample:
{ "magtrackBatteryStatus": 0, "recovering": true, "recoveryProvider": { "Name": "sample string 1", "PhoneNumber": "sample string 2" } }
application/xml, text/xml
Sample:
<GeotabQueryDeviceResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <MagtrackBatteryStatus>Full</MagtrackBatteryStatus> <Recovering>true</Recovering> <RecoveryProvider> <Name>sample string 1</Name> <PhoneNumber>sample string 2</PhoneNumber> </RecoveryProvider> </GeotabQueryDeviceResponse>