查询单个设备信息

  • 接口地址:/api/v1/device/getDeviceInfo
  • 接入方式:使用签名版 post json 请求.
  • 参数
参数 名称 类型 是否必填 说明
corpId 企业id String(32) 企业
deviceNo 设备编码 String(32)
deviceName 设备名称 String(128)
{
    "corpId": "xx", 
    "deviceNo": "SYAW2YAOLINGLING0000005" 
}
  • 响应 此为data的结构体
参数 名称 类型 是否必填 说明
deviceNo 设备编码 String(32)
deviceName 设备名称 String(128)
onlineState 是否在线 int 1在线0离线
shopOpenId 店铺id String(32) 店铺id,32位字符串,不同应用会不一致,请不要混用
shopName 店铺名称 String(255)
shopAddress 店铺地址 String(255) 示例广东深圳xxx店
customServicePhone 客服电话 String(255) 138xxxx1234
customServiceTime 客服时间 String(255) 工作日09-22
createDate 创建时间 String(255) 时间格式: yyyy-MM-dd HH:mm:ss
goodsList 商品列表 List 商品列表
  • 响应 此为data.goodsList的结构体
参数 名称 类型 是否必填 说明
channelType 设备货道类型 int 1.彩票机2.格子柜3.弹簧货道4.履带货道5.升降台6.租赁柜
channelNo 通道号 int 货道
deviceChannelId 设备货道Id int 创建订单时需要使用
deviceTypeId 设备类型id int 类型id
deviceTypeCode 设备类型编码 String(32) 类型编码
goodsId 商品id String(32) 商品id
goodsName 商品名称 String(255)
pic 商品图片 String(255) 商品图片
intro 商品简介 String(32) 简介
sellingPrice 商品售价 int 销售价格,单位分
stockMaxNum 最大库存 int
stockNum 当前库存 int
stockThreshold 库存告警 int
{
    "msg": "ok",
    "code": 200,
    "data": {
        "customServiceTime": "周一到周五09:00-21:00",
        "goodsList": [
            {
                "deviceTypeId": 100001,
                "channelNo": 1,
                "goodsId": 7,
                "channelType": 1,
                "stockMaxNum": 100,
                "pic": "https://retail.jabriel.cn/common/img/goods/20211221/ba06d3f96d25415f8529edc200afff91.jpg",
                "stockThreshold": 10,
                "categoryCode": "other",
                "maxBuyNum": 20,
                "categoryName": "其它",
                "deviceTypeCode": "HuaWei_Lottery_5",
                "sellingPrice": 100,
                "underageBuy": 0,
                "hideFlag": "N",
                "intro": "一分钱商品",
                "stockNum": 100,
                "memberLoginBuy": 0,
                "state": 0,
                "goodsName": "一分钱商品3",
                "deviceChannelId": 108,
                "categoryId": 0
            }
        ],
        "shopName": "二级采购01",
        "deviceNo": "SYAW2YAOLINGLING0000005",
        "shopAddress": "二级采购",
        "deviceName": "SYAW2YAOLINGLING0000005",
        "shopOpenId": "bf416359b06e294b606355bf566b797a",
        "customServicePhone": "+8618000270507",
        "onlineState": 1,
        "createDate": "2021-11-03 11:11:11"
    }
}
最后编辑: lamb  文档更新时间: 2022-01-21 17:52   作者:lamb