文档中心 > API类目 > 国际站商品API

alibaba.icbu.category.schema.level.get ((新)层级属性获取)

将表单中层级属性的子属性返回

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cat_id Number 可选 333 类目id
language String 可选 zh 返回的文案的语种,可以输入en_US或者zh
xml String 可选 <itemSchema><field id=\"icbuCatProp\" name=\"Category Property\" type=\"complex\"><complex-value><field id=\"p-191284002\" name=\"Place of Origin\" type=\"singleCheck\"><value>100000458</value></field></complex-value></field></itemSchema> 层级属性的当前层级属性

响应参数

名称 类型 示例值 描述
result TopResultDo 返回对象 Top返回对象
  • └ data
  • String
  • <itemSchema><field id=\"icbuCatProp\" name=\"商品属性\" type=\"complex\"><rules><rule name=\"tipRule\" value=\"请填写准确、完整地产品属性,以便买家迅速了解产品特征。\"/></rules><complex-value><field id=\"p-100007008\" name=\"供应类型\" type=\"singleCheck\"><value>417552495</value></field></complex-value><fields><field id=\"p-100007008\" name=\"供应类型\" type=\"singleCheck\"><rules><rule name=\"requiredRule\" value=\"true\"/><rule name=\"asyncQueryRule\" value=\"top.tmall.post.item.query.subProp.schema.get\" desc=\"请使用异步查询接口补全数据后提交\"/></rules><options><option displayName=\"odm\" value=\"141387377\"/><option displayName=\"OEM service\" value=\"393924152\"/><option displayName=\"In-stock Items\" value=\"417552495\"/></options></field><field id=\"p-100007705\" name=\"现有数量\" type=\"input\"><rules><rule name=\"maxLengthRule\" value=\"50\" exProperty=\"include\" unit=\"byte\"/><rule name=\"asyncQueryRule\" value=\"top.tmall.post.item.query.subProp.schema.get\" desc=\"请使用异步查询接口补全数据后提交\"/></rules></field></fields></field></itemSchema>
  • 层级属性的下一级属性结构
  • └ message
  • String
  • 该属性不存在
  • 错误信息
  • └ msg_code
  • String
  • PROPERTY_NOT_EXIST
  • 错误码
  • └ biz_success
  • Boolean
  • true
  • 是否成功
  • └ trace_id
  • String
  • 追踪码
  • 用于排查系统错误

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuCategorySchemaLevelGetRequest req = new AlibabaIcbuCategorySchemaLevelGetRequest();
req.setCatId(333L);
req.setLanguage("zh");
req.setXml("<itemSchema><field id=\\"icbuCatProp\\" name=\\"Category Property\\" type=\\"complex\\"><complex-value><field id=\\"p-191284002\\" name=\\"Place of Origin\\" type=\\"singleCheck\\"><value>100000458</value></field></complex-value></field></itemSchema>");
AlibabaIcbuCategorySchemaLevelGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_icbu_category_schema_level_get_response>
    <result>
        <data>&lt;itemSchema&gt;&lt;field id=\&quot;icbuCatProp\&quot; name=\&quot;商品属性\&quot; type=\&quot;complex\&quot;&gt;&lt;rules&gt;&lt;rule name=\&quot;tipRule\&quot; value=\&quot;请填写准确、完整地产品属性,以便买家迅速了解产品特征。\&quot;/&gt;&lt;/rules&gt;&lt;complex-value&gt;&lt;field id=\&quot;p-100007008\&quot; name=\&quot;供应类型\&quot; type=\&quot;singleCheck\&quot;&gt;&lt;value&gt;417552495&lt;/value&gt;&lt;/field&gt;&lt;/complex-value&gt;&lt;fields&gt;&lt;field id=\&quot;p-100007008\&quot; name=\&quot;供应类型\&quot; type=\&quot;singleCheck\&quot;&gt;&lt;rules&gt;&lt;rule name=\&quot;requiredRule\&quot; value=\&quot;true\&quot;/&gt;&lt;rule name=\&quot;asyncQueryRule\&quot; value=\&quot;top.tmall.post.item.query.subProp.schema.get\&quot; desc=\&quot;请使用异步查询接口补全数据后提交\&quot;/&gt;&lt;/rules&gt;&lt;options&gt;&lt;option displayName=\&quot;odm\&quot; value=\&quot;141387377\&quot;/&gt;&lt;option displayName=\&quot;OEM service\&quot; value=\&quot;393924152\&quot;/&gt;&lt;option displayName=\&quot;In-stock Items\&quot; value=\&quot;417552495\&quot;/&gt;&lt;/options&gt;&lt;/field&gt;&lt;field id=\&quot;p-100007705\&quot; name=\&quot;现有数量\&quot; type=\&quot;input\&quot;&gt;&lt;rules&gt;&lt;rule name=\&quot;maxLengthRule\&quot; value=\&quot;50\&quot; exProperty=\&quot;include\&quot; unit=\&quot;byte\&quot;/&gt;&lt;rule name=\&quot;asyncQueryRule\&quot; value=\&quot;top.tmall.post.item.query.subProp.schema.get\&quot; desc=\&quot;请使用异步查询接口补全数据后提交\&quot;/&gt;&lt;/rules&gt;&lt;/field&gt;&lt;/fields&gt;&lt;/field&gt;&lt;/itemSchema&gt;</data>
        <message>该属性不存在</message>
        <msg_code>PROPERTY_NOT_EXIST</msg_code>
        <biz_success>true</biz_success>
        <trace_id>追踪码</trace_id>
    </result>
</alibaba_icbu_category_schema_level_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>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部