FreshlianceFreshliance
Tracker document
Gateway document
  • English
  • 简体中文
Tracker document
Gateway document
  • English
  • 简体中文
  • API introduction

    • Overview
    • Parameter
    • Signature
    • Rules
    • Error code
  • API list

    • User information
    • User device
    • Device trip
    • Trip data
    • Device group
    • Grouped device
    • Configuration template
  • Webhook introduction

    • Webhook

User Device Page

Interface Description

Obtain the user device page based on the query conditions.

Interface Method

tracker.userDevice.page

Request Parameter

NameTypeRequiredDescriptionExample
pageNumintYesPage number, starting from 11
pageSizeintYesPage size, 1-50 items10
deviceCodestringNoDevice code250700097T

Return Data

NameTypeRequiredDescriptionExample
userDeviceTripIdintYesDevice trip ID2465
deviceCodestringYesDevice code250700097T
userDeviceIdintYesDevice ID635
useTypeintYesUsage type
0: Single use
1: Multi use
1
bindTimelongYesBinding time, Millisecond-level timestamp1747703606652
batteryintNoBattery100
batteryTimelongNoBattery time, Millisecond-level timestamp1747703606652
customNamestringNoUser-defined device nameFresh Tracker10
longitudedoubleNoLongitude, with a maximum of 6 decimal places113.812267
latitudedoubleNoLatitude, with a maximum of 6 decimal places34.481162

Example for Requesting Parameter

{
  "appId": "658409073956360262328652394",
  "method": "tracker.userDevice.page",
  "format": "JSON",
  "charset": "UTF-8",
  "signType": "RSA2",
  "timestamp": "1747703985744",
  "version": "1.0",
  "bizContent": {
    "pageNum": 1,
    "pageSize": 10
  },
  "sign": "d4o0+QcsnK1LKhKUK/qabA0DCD4TZs7S8jtabsKWXfUkeeWrPbsJK9eaWk9opoWyj5cUcuB6YEd3vk9l64e2ptRkjHMfi8HXZGNOAsqRKwY0hpXLmHNrBjQWg3oJXvefnIwlDFlALounKs+zKfGZfIpOcwiXqtvYTJvLZo/LygSg7Z/dD+zwEz2ah4JZhxcAm+D+Ea3mNANTfAjknwt73Anary4qV0h5Pnn/ltwpwp9pC9uK0c7hGQYCm6oM3LHwjnVYRveNeiQlLf4C0nIGPnpcMMXCy0fI8Ur+VqYGosCCuqbmSQAY/"
}

Example for Returning Data

{
  "code": "0",
  "data": {
    "total": 1,
    "rows": [
      {
        "bindTime": 1747703606652,
        "customName": "Fresh Tracker10",
        "userDeviceId": 723,
        "userDeviceTripId": 2465,
        "useType": 1,
        "deviceCode": "250700097T",
        "latitude": 34.481162,
        "longitude": 113.812267,
        "battery": 100,
        "batteryTime": 1747703606652
      }
    ]
  },
  "msg": "success",
  "sign": "g9xbFi9ckQg1OfYfMDwyGFJIXxyXMB2ilLCQUpG8eLmp4MCbxu9eD8JMKtW6mXCt+rL9+wQLNa9B5+TkSTwPYZtFMhjGXZ07X5vvQYqtcQFobkK4Q0CE1Eh1xuq+yzmmSBomivj6vX0w28JinGHKRYxkc1w1MgGk8l4PYD00h9NaUYvOYEoWCnGqghJ60YXCQdQ4zrxZwJEnlfab+SZCEnD/lIBG2uL5gqBdksTqFx76mgKrbQ7NQbfZSHnRnVq3UsTGp13HUBNf92w9f/E2m0aDYvYLblDEgSYU4CHKT9h0oX622CuUe+BKhqO1UOsvy8crhw7YtVJMLE5P5Di+Yw==",
  "subCode": "",
  "subMsg": ""
}

Obtain User Device

Interface Description

Obtain device information based on device ID.

Interface Method

tracker.userDevice.get

Request Parameter

NameTypeRequiredDescriptionExample
userDeviceIdintYesDevice ID635

Return Data

NameTypeRequiredDescriptionExample
deviceInfoobjectYesDevice information
deviceInfo.userDeviceIdintYesDevice ID726
deviceInfo.deviceCodestringYesDevice code200700097T
deviceInfo.deviceStatusstringYesDevice status
online: Online
offline: Offline
offline
deviceInfo.customNamestringNoUser-defined device nameFresh Tracker10
deviceInfo.userDeviceTripIdintNoDevice trip ID564
deviceInfo.useTypeintYesUsage type
0: Single use
1: Multi use
1
lightFlagintYesLight detection
0: Not supported
1: Supported
1
shockFlagintYesVibration detection
0: Not supported
1: Supported
1
gpsFlagintYesgps positioning
0: Not supported
1: Supported
1
wifiFlagintYesWiFi positioning
0: Not supported
1: Supported
1
inProbePropertyintYesBuilt-in probe property-the absence of this field indicates that it is not supported.
0: Temperature
1: Temperature and humidity
1
extProbePropertyintYesExternal probe property-the absence of this field indicates that it is not supported.
0: Temperature
1: Temperature and humidity
1
batteryintNoBattery100
batteryTimelongNoBattery time, Millisecond-level timestamp1747703606652
inAlarmLimitobjectNoConfigurable temperature and humidity limit of the built-in sensor
inAlarmLimit.lowHumiditydoubleNoLow humidity limit0
inAlarmLimit.highHumiditydoubleNoHigh humidity limit100
inAlarmLimit.highTemperaturedoubleNoHigh temperature limit70
inAlarmLimit.lowTemperaturedoubleNoLow temperature limit-30
extAlarmLimitobjectNoConfigurable temperature and humidity limit of the external probe
extAlarmLimit.lowHumiditydoubleNoLow humidity limit0
extAlarmLimit.highHumiditydoubleNoHigh humidity limit100
extAlarmLimit.highTemperaturedoubleNoHigh temperature limit200
extAlarmLimit.lowTemperaturedoubleNoLow temperature limit-200

Example for Requesting Parameter

{
  "appId": "658409073956360262328652394",
  "method": "tracker.userDevice.get",
  "format": "JSON",
  "charset": "UTF-8",
  "signType": "RSA2",
  "timestamp": "1747724083178",
  "version": "1.0",
  "bizContent": {
    "userDeviceId": 726
  },
  "sign": "OdSDCbM9w+ty+bwNgXxm2/60Cy1RYjkz+jS8kB2oxyvhWW+gm43znC2e2fmJ9OQiqQcqMeCneZWEHnqZaeUyKI0YqYI88oGCnszGHZ8HN1/FsYMXoY5W0oWRVo/NfgXLCXkdRUMrSzlcRyJttoeT+3qQTUc2VZvT1Gwg7fl3rUnteIgdtjs+w2dJr9zPiAKnXc65TzzF6l/j4yzXIpIBYRbp8JATA2LblVA3rhtAf30xtpxcyPFBG2q3ZQiBlYSyGjq7YTigozKHMfYxFdIMmb8Br9ghi+LIwRcksoQR5o14SbfxNeohA+myv6+StyoSLoncAUABtZ1Q1VjYF0qAug=="
}

Example for Returning Data

{
  "code": "0",
  "data": {
    "inAlarmLimit": {
      "lowHumidity": 0,
      "highHumidity": 100,
      "highTemperature": 70,
      "lowTemperature": -30
    },
    "gpsFlag": 1,
    "wifiFlag": 0,
    "extProbeProperty": 1,
    "inProbeProperty": 1,
    "battery": 100,
    "batteryTime": 1747703606652,
    "lightFlag": 1,
    "shockFlag": 1,
    "deviceInfo": {
      "customName": "Tracker10",
      "deviceCode": "200700097T",
      "userDeviceId": 726,
      "deviceStatus": "offline"
    },
    "extAlarmLimit": {
      "lowHumidity": 0,
      "highHumidity": 100,
      "highTemperature": 200,
      "lowTemperature": -200
    }
  },
  "msg": "success",
  "sign": "SQl+j39JYSIuu/J3YaeG3p30krDXOBcwjT0c3vkPvxQV6FxEEghvzQcz4xaZsWFhvltHA3aga/VLTlrXxBdx09AikdOtfArKw7m1bB+QZcLbjn4EzyzIbiSetWK/pjmAveOsiZIiSUbT3cLJkBQRTBZl0sRBvlReFGbYgnZlyI3swgaib2+CgPgVYaJxaX8ePx7EKydCeXeZCsUQjVxCLdaPO+4a7QRFvWTx7fWulJwc1bEaHLEzgotOvRbK+gTQTH24NsdSP9C/Nz9LYUEETyBb5zhD+l7W7OirRXtk8iKnsGFX6EPdQSxQDO3QRRbRBR3km60UsyupfuROhUcZAw==",
  "subCode": "",
  "subMsg": ""
}
Prev
User information
Next
Device trip