说明
修改设备
请求地址
环境 | 请求地址 |
---|---|
测试环境 | https://pay.umxnt.com/api/device/up |
正式环境 |
请求参数
参数 | 类型 | 是否必填 | 最大长度 | 描述 |
---|---|---|---|---|
token | string | 是 | 令牌 | |
id | string | 是 | 设备编号ID | |
type | string | 否 | 设备归类 p 打印设备,s 扫码盒子 v 播报设备 | |
device_type | string | 否 | 设备类型-调5.7.2-查询 | |
device_name | string | 否 | 设备名称-调5.7.2-查询 | |
store_id | string | 否 | 门店id-调5.2.1接口查询 | |
merchant_id | string | 否 | 收银员id-调5.2.2接口查询 | |
device_no | string | 否 | 设备编号 | |
device_key | string | 否 | 设备秘钥 |
成功请求示例
{
"status": 1,
"message": "修改成功",
"data": {
"store_id": "123",
"device_type": "123",
"device_no": "123",
"device_key": "123",
"device_name": "1234",
"id": "1"
}
}
失败请求示例
{ "message":"无效参数", "status":0 }