文档中心 > API类目 > 物流宝API

taobao.wlb.item.map.get (根据物流宝商品ID查询商品映射关系)

根据物流宝商品ID查询商品映射关系

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_id Number 必须 123456 要查询映射关系的物流宝商品id

响应参数

名称 类型 示例值 描述
is_success Boolean false 是否成功
out_entity_item_list OutEntityItem [] 外部商品实体
  • └ entity_type
  • String
  • IC_ITEM
  • 外部实体类型: IC_ITEM--ic商品 IC_SKU--ic销售单元
  • └ entity_id
  • String
  • 100256
  • entity_type对应的实体类型的id: 当entity_type为IC_ITEM时,entity_id为ic的商品id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WlbItemMapGetRequest req = new WlbItemMapGetRequest();
req.setItemId(123456L);
WlbItemMapGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wlb_item_map_get_response>
    <is_success>false</is_success>
    <out_entity_item_list>
        <out_entity_item>
            <entity_type>IC_ITEM</entity_type>
            <entity_id>100256</entity_id>
        </out_entity_item>
    </out_entity_item_list>
</wlb_item_map_get_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>

错误码解释

错误码 错误描述 解决方案
isp.wlb-error:00002 系统异常 联系isp
isv.wlb-error:00005 参数为空 检查入参并修改
isv.wlb-error:20001 物流宝商品不存在 检查入参并修改

API工具

如何获得此API

FAQ

返回
顶部