说明
设备列表
请求地址
环境 | 请求地址 |
---|---|
测试环境 | https://m.umxnt.com/api/device/lists |
正式环境 |
请求参数
参数 | 类型 | 是否必填 | 最大长度 | 描述 |
---|---|---|---|---|
token | string | 是 | 令牌 | |
store_id | string | 是 | 门店id-调5.2.1接口 | |
merchant_id | string | 否 | 收银员id-调5.2.2查询 | |
type | string | 否 | 设备归类 p 打印设备 s 扫码盒子 v 语音设备 | |
status | string | 否 | 状态,默认开启,开启-1,关闭-2 |
正确成功返回
{
"status": 1,
"message": "数据返回成功",
"data": [
{
"id": 1,
"store_id": "123",
"merchant_id": "",
"device_no": "123",
"device_type": "123",
"device_name": "123",
"device_key": "123",
"status": "1",
"created_at": "2018-07-23 14:36:46",
"updated_at": "2018-07-23 14:36:46"
},
{
"id": 2,
"store_id": "123",
"merchant_id": "",
"device_no": "123",
"device_type": "123",
"device_name": "123",
"device_key": "123",
"status": "1",
"created_at": "2018-07-23 14:36:58",
"updated_at": "2018-07-23 14:36:58"
},
{
"id": 3,
"store_id": "123",
"merchant_id": "",
"device_no": "123",
"device_type": "123",
"device_name": "123",
"device_key": "123",
"status": "1",
"created_at": "2018-07-23 14:37:56",
"updated_at": "2018-07-23 14:37:56"
}
],
"l": 15,
"p": 1,
"t": 3
}
- 参数说明
参数 | 说明 |
---|---|
id | 设备id |
device_no | 设备型号 |
device_key | 设备秘钥 |
device_name | 设备名称 |
失败请求示例
{ "messasge":"无效参数", "status":0 }