文档中心 > API类目 > 五道口API

wdk.ums.mes.item.query (查询商品数据)

查询商品数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_code String 必须 122 商品编码
device_no String 必须 abc 设备编码
cargo_owner_code String 可选 123 货主编码
warehouse_code String 必须 23
device_utt_code String 可选 12 设备号

响应参数

名称 类型 示例值 描述
result UmsResult 查询结果
  • └ code
  • String
  • 25
  • 错误码
  • data
  • ItemProcessTopDTO
  • 商品
  • └ expiration_days
  • Number
  • 3
  • 保质期天数
  • └ package_weight
  • Number
  • 3
  • 包装皮重
  • └ item_code
  • String
  • 197222022
  • 商品编码
  • └ label_type
  • String
  • 定量不定重-上市日期
  • 商品标签类型
  • └ label_spec
  • String
  • 60x40
  • 标签格式
  • └ agent_merchant_name
  • String
  • 示例数据
  • 境内代理商
  • └ warehouse_name
  • String
  • 上海加工中心
  • 仓库名称
  • └ warehouse_code
  • String
  • W26
  • 仓库编码
  • └ producer_place
  • String
  • 海南海口
  • 产地
  • └ content
  • String
  • 700g
  • 净含量
  • └ eat_way
  • String
  • 冷藏
  • 食用方式
  • └ item_name
  • String
  • 花糯玉米 约700g
  • 商品名称
  • └ inventory_unit
  • String
  • 库存单位
  • └ pack_put_tray_type
  • String
  • 示例数据
  • 包装托盘类型
  • └ subpackage_merchant_name
  • String
  • 示例数据
  • 分装商名称
  • └ weight_high_limit
  • Number
  • 940
  • 商品包装重量上限
  • └ metal_detection_type
  • String
  • 示例数据
  • 金属检测类型
  • └ agent_address
  • String
  • 示例数据
  • 境内代理商地址
  • └ dealer_name
  • String
  • 示例数据
  • 经销商名称
  • └ lost_weight
  • Number
  • 12
  • 水损
  • └ box_spec
  • String
  • 15.0
  • 箱装量
  • └ weight
  • Number
  • 700
  • 主档商品重量
  • └ subpackage_phone_number
  • String
  • 123
  • 分装商联系电话
  • └ weigh_type
  • String
  • 3
  • 称重类型
  • └ item_bar_code
  • String
  • 2361610
  • 商品条码
  • └ put_tray_num
  • String
  • 5*8
  • 托盘摆放数(装盘建议)
  • └ warehouse_id
  • Number
  • 104880082
  • 仓id
  • └ agent_phone_number
  • String
  • 121
  • 境内代理商联系电话
  • └ subpackage_address
  • String
  • 12
  • 分装商地址
  • └ put_tray_high
  • Number
  • 8
  • 码盘高(装盘建议)
  • └ cargo_owner_code
  • String
  • 122
  • 货主code
  • └ put_tray_bottom
  • Number
  • 5
  • 码盘底(装盘建议)
  • └ storage_condition
  • String
  • 0-4℃冷藏
  • 存储条件
  • └ weight_low_limit
  • Number
  • 560
  • 商品包装重量下限
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ message
  • String
  • 仓编码不能为空
  • 错误消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WdkUmsMesItemQueryRequest req = new WdkUmsMesItemQueryRequest();
req.setItemCode("122");
req.setDeviceNo("abc");
req.setCargoOwnerCode("123");
req.setWarehouseCode("23");
req.setDeviceUttCode("12");
WdkUmsMesItemQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wdk_ums_mes_item_query_response>
    <result>
        <code>25</code>
        <data>
            <expiration_days>3</expiration_days>
            <package_weight>3</package_weight>
            <item_code>197222022</item_code>
            <label_type>定量不定重-上市日期</label_type>
            <label_spec>60x40</label_spec>
            <agent_merchant_name>示例数据</agent_merchant_name>
            <warehouse_name>上海加工中心</warehouse_name>
            <warehouse_code>W26</warehouse_code>
            <producer_place>海南海口</producer_place>
            <content>700g</content>
            <eat_way>冷藏</eat_way>
            <item_name>花糯玉米 约700g</item_name>
            <inventory_unit>份</inventory_unit>
            <pack_put_tray_type>示例数据</pack_put_tray_type>
            <subpackage_merchant_name>示例数据</subpackage_merchant_name>
            <weight_high_limit>940</weight_high_limit>
            <metal_detection_type>示例数据</metal_detection_type>
            <agent_address>示例数据</agent_address>
            <dealer_name>示例数据</dealer_name>
            <lost_weight>12</lost_weight>
            <box_spec>15.0</box_spec>
            <weight>700</weight>
            <subpackage_phone_number>123</subpackage_phone_number>
            <weigh_type>3</weigh_type>
            <item_bar_code>2361610</item_bar_code>
            <put_tray_num>5*8</put_tray_num>
            <warehouse_id>104880082</warehouse_id>
            <agent_phone_number>121</agent_phone_number>
            <subpackage_address>12</subpackage_address>
            <put_tray_high>8</put_tray_high>
            <cargo_owner_code>122</cargo_owner_code>
            <put_tray_bottom>5</put_tray_bottom>
            <storage_condition>0-4℃冷藏</storage_condition>
            <weight_low_limit>560</weight_low_limit>
        </data>
        <success>true</success>
        <message>仓编码不能为空</message>
    </result>
</wdk_ums_mes_item_query_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部