验证设备SN与CheckCode是否匹配
使用场景: 通常情况下,当您的客户在您的EMS平台上首次添加设备的时候,你可以主动调用该接口,来验证客户这次绑定是否是合法的行为。CheckCode可以在设备的说明书、或者包装上查询到。
✨ 案例
Request
curl --location -g '{{EU}}/device/checkCodeAndSn?deviceSn=A11230010013204A&checkCode=0594424' \
--header 'token: xxxx'
Response ①
{
"errorCode": 0,
"info": null,
"body": true,
"successful": true
}
Response ②
{
"errorCode": 1,
"info": {
"code": "error.70011",
"description": "The serial number and the check code do not match"
},
"body": null,
"successful": false
}