taobao.banamadpc.item.select.prop (获取子属性)

巴拿马供应商通过此接口获取子属性

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cat_id Number 必须 1512 类目id
prop_id Number 必须 147956252 属性id
xml String 必须 <itemSchema>...</itemSchema> 子属性的schema xml

响应参数

名称 类型 示例值 描述
api_result ApiResult
  • └ er_msg
  • String
  • 系统异常类目不存在或无效
  • 错误信息
  • └ er_code
  • String
  • isp.system-service-error:API_SYSTEM_ERROR
  • 错误码
  • └ result
  • String
  • <itemSchema> <field id="catProp" name="类目属性" type="complex"> <complex-value> <field id="p-20000" name="品牌" type="singleCheck"> <value inputValue="传国奇">1802815129</value> </field> </complex-value> </field> </itemSchema>
  • 入参类目下入参属性的子属性schema xml
  • └ error
  • Boolean
  • false
  • 成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
BanamadpcItemSelectPropRequest req = new BanamadpcItemSelectPropRequest();
req.setCatId(1512L);
req.setPropId(147956252L);
req.setXml("<itemSchema>...</itemSchema>");
BanamadpcItemSelectPropResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<banamadpc_item_select_prop_response>
    <api_result>
        <er_msg>系统异常类目不存在或无效</er_msg>
        <er_code>isp.system-service-error:API_SYSTEM_ERROR</er_code>
        <result>&lt;itemSchema&gt; &lt;field id=&quot;catProp&quot; name=&quot;类目属性&quot; type=&quot;complex&quot;&gt; &lt;complex-value&gt; &lt;field id=&quot;p-20000&quot; name=&quot;品牌&quot; type=&quot;singleCheck&quot;&gt; &lt;value inputValue=&quot;传国奇&quot;&gt;1802815129&lt;/value&gt; &lt;/field&gt; &lt;/complex-value&gt; &lt;/field&gt; &lt;/itemSchema&gt;</result>
        <error>false</error>
    </api_result>
</banamadpc_item_select_prop_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

返回
顶部