注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里健康追溯码

alibaba.alihealth.tracecodeseller.product.attr.search (根据商品id获取商品属性)

根据商品id获取商品属性

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ent_info_id Number 必须 100000002 企业id
trac_user_product_info_id Number 必须 100000026 货品id

响应参数

名称 类型 示例值 描述
result TopResultModel 和三方交互最外层model对象 和三方交互最外层model对象
  • model
  • ProducePreAttributeDto
  • 外层对象
  • 外层对象
  • attr_info_list
  • Attrinfolist []
  • 货品属性对象
  • 货品属性对象
  • └ trac_user_product_info_id
  • String
  • 100000026
  • 货品id
  • └ attr_name
  • String
  • 第一属性
  • 属性名称
  • └ default_produce_pre_attribute_en
  • String
  • 产品批号,生产日期
  • 属性规则-英文
  • └ default_produce_pre_attribute
  • String
  • BatchNumber,ProductionDate
  • 属性规则-中文
  • └ msg_code
  • String
  • 1000
  • 操作码
  • └ msg_info
  • String
  • demo
  • 操作说明

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthTracecodesellerProductAttrSearchRequest req = new AlibabaAlihealthTracecodesellerProductAttrSearchRequest();
req.setEntInfoId(100000002L);
req.setTracUserProductInfoId(100000026L);
AlibabaAlihealthTracecodesellerProductAttrSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_tracecodeseller_product_attr_search_response>
    <result>
        <model>
            <attr_info_list>
                <attrinfolist>
                    <trac_user_product_info_id>100000026</trac_user_product_info_id>
                    <attr_name>第一属性</attr_name>
                </attrinfolist>
            </attr_info_list>
            <default_produce_pre_attribute_en>产品批号,生产日期</default_produce_pre_attribute_en>
            <default_produce_pre_attribute>BatchNumber,ProductionDate</default_produce_pre_attribute>
        </model>
        <msg_code>1000</msg_code>
        <msg_info>demo</msg_info>
    </result>
</alibaba_alihealth_tracecodeseller_product_attr_search_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

返回
顶部