GET request to fetch tracker information by
Request: tracker_id or module_id or serial_number
Response: Tracker Object with additional fields’ tracker_id, user_id

1.URL

Request Method:GET

1.1.request to fetch tracker information by tracker_id

http://124.223.60.234:8181/spartan/device/getDeviceInfo?tracker_id=1957EE0C69614AB3B3AF2755103B0AB6

1.2.request to fetch tracker information by module_id

http://124.223.60.234:8181/spartan/device/getDeviceInfo?module_id=162070003356

1.3.request to fetch tracker information by module_id

http://124.223.60.234:8181/spartan/device/getDeviceInfo?serial_number=162070003356

2.Response results

2.1.Response example

{
    "code": 200,
    "message": "Operation succeeded",
    "data": {
        "tracker_id": "1957EE0C69614AB3B3AF2755103B0AB6",
        "module_id": "344050190425",
        "serial_number": "344050190425",
        "iccid": "344050190425",
        "modelId": 100,
        "model": "VM-400",
        "user_id": "21"
    }
}

2.2.Explanation of response results

Field Type Description
code int Return Status(200:Succeed;102:Parameter error;105:request failure;106:Data does not exist)
message String Return Status Description
data object Response result body

data Description

Field Type Description
tracker_id String The unique tag generated after the device is registered with the system by the user
module_id String The ID of the device communication module (IMEI)
serial_number String device’s serial number
iccid String ICCID
modelId int model Id
model String model name
user_id String User ID for registering the device

3.Request by postman

作者:admin  创建时间:2023-06-23 10:04
最后编辑:admin  更新时间:2023-06-24 10:26