Query Device SN

Last Updated on : 2025-02-26 01:50:40download

Query the serial number (SN) of the specified device.

API address

GET: /v1.0/cloud/thing/device/sn

Request parameter

Parameter nameTypeINRequiredDescription
devIdStringqueryfalseThe device ID.
uuidStringqueryfalseThe universally unique identifier (UUID) of the specified device.

Return parameter

Parameter nameTypeDescription
resultStringThe device SN.
codeStringThe response code. It is empty if the request is successful.
msgStringThe message that is returned if the request fails. It is empty if the request is successful.
successBooleanIndicates whether the operation is successful.Valid values:
  • true: success
  • false: failure
tLongThe 13-digit timestamp of a response.

Request example

GET: /v1.0/cloud/thing/device/sn?devId=6c3c54beb3124053d2o***&uuid=2630183568572d11****

Return example

{
    "result": "BA190411PY0****",
    "t": 1734579064275,
    "success": true
}

Error code

For more information, see error code.