文档中心 > Developing documentation(已废弃)

aliexpress.category.redefining.getchildattributesresultbypostcateidandpath (根据发布类目id、父属性路径(可选)获取子属性信息)

根据发布类目id、父属性路径(可选)获取子属性信息。只返回当前账号有权限的品牌集合

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param1 String 可选 112233 叶子类目ID。通过产品获取类目ID,如果只传cid,则返回一级属性。
param2 String [] 可选 2=200013977
  • 最大列表长度:20
  • 类目子属性路径,由该子属性上层的类目属性id和类目属性值id组成,格式参考示例,多个用逗号隔开,第二个属性及为第一个的属性值的子属性,第三个属性为第二个属性的子属性,以此类推。如需返回此类目对应的子属性,则需同cateid一起进行提交。
    locale String 可选 ru_RU 指定获取语种的属性值文本

    响应参数

    名称 类型 示例值 描述
    result AeopAttributeResponse {"success":true,"attributes":[{"visible":true,"values":[{"names":{"en":"M501","zh":"M501"},"attributes":[],"id":200091888},{"names":{"en":"M621","zh":"M621"},"attributes":[],"id":200568333},{"names":{"en":"Other","zh":"其它"},"attributes":[],"id":4}],"attributeShowTypeValue":"list_box","units":null,"required":false,"customizedPic":false,"spec":0,"customizedName":false,"names":{"en":"ACT Model","zh":"ACT型号"},"keyAttribute":false,"inputType":"STRING","id":200006215,"skuStyleValue":null,"sku":false}]} 发布属性
    • attributes
    • AeopAttributeDto []
    • [{"visible":true,"values":[{"names":{"en":"M501","zh":"M501"},"attributes":[],"id":200091888},{"names":{"en":"M621","zh":"M621"},"attributes":[],"id":200568333},{"names":{"en":"Other","zh":"其它"},"attributes":[],"id":4}],"attributeShowTypeValue":"list_box","units":null,"required":false,"customizedPic":false,"spec":0,"customizedName":false,"names":{"en":"ACT Model","zh":"ACT型号"},"keyAttribute":false,"inputType":"STRING","id":200006215,"skuStyleValue":null,"sku":false}]
    • 发布属性list
    • └ attribute_show_type_value
    • String
    • list_box
    • 发布属性展现样式
    • └ customized_name
    • Boolean
    • false
    • sku属性是否可自定义名称
    • └ customized_pic
    • Boolean
    • false
    • sku属性是否可自定义图片
    • └ id
    • Number
    • 200006215
    • 属性id
    • └ input_type
    • String
    • STRING
    • 文本输入框型属性输入格式(文本|数字)
    • └ key_attribute
    • Boolean
    • false
    • 发布属性是否关键
    • └ names
    • Json
    • {"en":"ACT Model","zh":"ACT型号"}
    • 属性名称
    • └ required
    • Boolean
    • false
    • 发布属性是否必填
    • └ sku
    • Boolean
    • true
    • 发布属性是否是sku
    • └ sku_style_value
    • String
    • COLOUR_ATLA
    • sku属性展现样式(色卡|普通)
    • └ spec
    • Number
    • 1
    • sku维度(1维~6维)
    • units
    • AeopUnit []
    • {"rate":0,"unitName":"cm"}
    • 发布属性单位
    • └ rate
    • String
    • 0
    • 和标准属性对换比率
    • └ unit_name
    • String
    • cm
    • 单位名称
    • values
    • AeopAttrValueDto []
    • [{"names":{"en":"M501","zh":"M501"},"attributes":[],"id":200091888},{"names":{"en":"M621","zh":"M621"},"attributes":[],"id":200568333},{"names":{"en":"Other","zh":"其它"},"attributes":[],"id":4}]
    • 发布属性值
    • └ attributes
    • Json []
    • []
    • 下一层属性
    • └ id
    • Number
    • 200091888
    • 属性值id
    • └ names
    • Json
    • {"en":"M501","zh":"M501"}
    • 属性值名称
    • └ value_tags
    • Json
    • {"sizeGroup":"us"}
    • valueTags
    • └ has_sub_attr
    • Boolean
    • true
    • 该属性值下是否有子属性
    • └ visible
    • Boolean
    • true
    • 属性是否可见
    • └ features
    • Json
    • {"AE_FEATURE_car_cascade_property":"1"}
    • 类目属性的feature集合。因为AE的类目属性有国别化的需求,有的国家需要必填有的国家需要非必填,所以属性上会有一个AE_FEATURE_PRequireStrategy 这样的feature字段,对应的值是国家的缩写(逗号分隔),表示哪些国家需要必填,例如: {"AE_FEATURE_PRequireStrategy": "IT,RU,TR,CN,FR,ES"}。目前支持的feature有 AE_FEATURE_PRequireStrategy和AE_FEATURE_car_cascade_property。AE_FEATURE_car_cascade_property是车型库相关特征,需要使用请咨询对应技术支持。
    • └ success
    • Boolean
    • true
    • 服务调用是否成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AliexpressCategoryRedefiningGetchildattributesresultbypostcateidandpathRequest req = new AliexpressCategoryRedefiningGetchildattributesresultbypostcateidandpathRequest();
    req.setParam1("112233");
    req.setParam2("2=200013977");
    req.setLocale("ru_RU");
    AliexpressCategoryRedefiningGetchildattributesresultbypostcateidandpathResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <aliexpress_category_redefining_getchildattributesresultbypostcateidandpath_response>
        <result>
            <attributes>
                <aeop_attribute_dto>
                    <attribute_show_type_value>list_box</attribute_show_type_value>
                    <customized_name>false</customized_name>
                    <customized_pic>false</customized_pic>
                    <id>200006215</id>
                    <input_type>STRING</input_type>
                    <key_attribute>false</key_attribute>
                    <names>{&quot;en&quot;:&quot;ACT Model&quot;,&quot;zh&quot;:&quot;ACT型号&quot;}</names>
                    <required>false</required>
                    <sku>true</sku>
                    <sku_style_value>COLOUR_ATLA</sku_style_value>
                    <spec>1</spec>
                    <units>
                        <aeop_unit>
                            <rate>0</rate>
                            <unit_name>cm</unit_name>
                        </aeop_unit>
                    </units>
                    <values>
                        <aeop_attr_value_dto>
                            <attributes>
                                <json>[]</json>
                            </attributes>
                            <id>200091888</id>
                            <names>{&quot;en&quot;:&quot;M501&quot;,&quot;zh&quot;:&quot;M501&quot;}</names>
                            <value_tags>{&quot;sizeGroup&quot;:&quot;us&quot;}</value_tags>
                            <has_sub_attr>true</has_sub_attr>
                        </aeop_attr_value_dto>
                    </values>
                    <visible>true</visible>
                    <features>{&quot;AE_FEATURE_car_cascade_property&quot;:&quot;1&quot;}</features>
                </aeop_attribute_dto>
            </attributes>
            <success>true</success>
        </result>
    </aliexpress_category_redefining_getchildattributesresultbypostcateidandpath_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>

    错误码解释

    错误码 错误描述 解决方案
    42001 类目不存在 Category not found,please input valid category id" 请检查类ID或其他参数
    isp.50001 系统异常 SERVER_ERROR 请重试,或联系对应开发负责人

    API工具

    如何获得此API

    FAQ

    返回
    顶部