文档中心 > API类目 > 全球速卖通-物流管理

aliexpress.logistics.item.forbidattribute.query (商品物流属性获取接口)

根据禁限运标准中心获取物流属性数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_item_attribute_request QueryItemAttributeRequestDto 可选 查询商品物流属性入参
  • └ item_id
  • Number
  • 必须
  • 1
  • 商品id
  • └ store_id
  • Number
  • 必须
  • 1
  • 店铺id

响应参数

名称 类型 示例值 描述
result GlspResponse {"errorInfo":null,"result":{"logisticsAttribute":"NORMAL","secondaryLogisticsAttribute":null,"iataInterpretation":null},"retry":false,"success":true} 返回体
  • result
  • AeForbidTagResponse
  • {"logisticsAttribute":"NORMAL","secondaryLogisticsAttribute":null,"iataInterpretation":null}
  • 返回实体,包含三个字段: 1、物流属性:ELECTRIC(带电)、SPECIAL(特货)、FORBID(违禁品)、NORMAL(普货) 2、二级物流属性 3、IATA法理解释
  • └ iata_interpretation
  • String
  • null
  • IATA法理解释
  • └ secondary_logistics_attribute
  • String
  • null
  • 二级物流属性
  • └ logistics_attribute
  • String
  • NORMAL
  • 物流属性 带电ELECTRIC、特货SPECIAL、违禁品FORBID、普货NORMAL
  • error_info
  • ErrorInfo
  • { "internal_error_msg":"", "error_code":"", "internal_error_code":"", "retry":false }
  • 错误信息
  • └ internal_error_msg
  • String
  • item not found from ic
  • 内部错误信息
  • └ error_code
  • String
  • QUERY_ITEM_ATTRIBUTE_ITEM_NOT_FOUND
  • 错误码
  • └ internal_error_code
  • String
  • QUERY_ITEM_ATTRIBUTE_ITEM_NOT_FOUND
  • 内部错误码
  • └ error_msg
  • String
  • item not found from ic
  • 错误误信息
  • └ retry
  • Boolean
  • false
  • 是否重试
  • └ is_success
  • Boolean
  • true
  • 本次请求是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressLogisticsItemForbidattributeQueryRequest req = new AliexpressLogisticsItemForbidattributeQueryRequest();
AliexpressLogisticsItemForbidattributeQueryRequest.QueryItemAttributeRequestDto obj1 = new AliexpressLogisticsItemForbidattributeQueryRequest.QueryItemAttributeRequestDto();
obj1.setItemId(1L);
obj1.setStoreId(1L);
req.setQueryItemAttributeRequest(obj1);
AliexpressLogisticsItemForbidattributeQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_logistics_item_forbidattribute_query_response>
    <result>
        <result>
            <iata_interpretation>null</iata_interpretation>
            <secondary_logistics_attribute>null</secondary_logistics_attribute>
            <logistics_attribute>NORMAL</logistics_attribute>
        </result>
        <error_info>
            <internal_error_msg>item not found from ic</internal_error_msg>
            <error_code>QUERY_ITEM_ATTRIBUTE_ITEM_NOT_FOUND</error_code>
            <internal_error_code>QUERY_ITEM_ATTRIBUTE_ITEM_NOT_FOUND</internal_error_code>
            <error_msg>item not found from ic</error_msg>
        </error_info>
        <retry>false</retry>
        <is_success>true</is_success>
    </result>
</aliexpress_logistics_item_forbidattribute_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

返回
顶部