判断设备是否存在
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
imei | String | 必须 | 123456789012345 | 设备编号 | |
device_type | String | 可选 | deviceType | 设备类型(预留将来扩展) | |
mid_pat_channel | String | 可选 | 1 | 渠道扩展编码(预留) |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | result | |
|
1 2 3 4 5 6 7 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAliqinFcIotDeviceIsexistRequest req = new AlibabaAliqinFcIotDeviceIsexistRequest(); req.setImei( "123456789012345" ); req.setDeviceType( "deviceType" ); req.setMidPatChannel( "1" ); AlibabaAliqinFcIotDeviceIsexistResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 | < alibaba_aliqin_fc_iot_device_isexist_response > < result > < model >true</ model > < code >0</ code > < success >true</ success > < msg >成功</ msg > </ result > </ alibaba_aliqin_fc_iot_device_isexist_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.NOT_FOUND_USER | 合作伙伴用户资料不存在 | 请核对使用的appkey |
isv.IMEI_ERR | imei非法 | imei非法 |
isv.NOT_FOUND_CUST | 合作伙伴客户资料不存在 | 合作伙伴客户资料不存在 |
isv.SYSTEM_ERR | 系统错误 | 系统错误,联系技术支持 |
isv.PROD_PERMISSION | 未开通关联产品,无权调用 | 请核对账号信息,请开通对应的产品 |
isv.FORBIDDEN_ACTION | 不支持的操作(当前API不支持授权调用/当前API必须授权调用) | 确认调用账号是否对于此API有授权调用,物联卡业务不支持授权调用 |