alibaba.gpu.add.schema.get (获取产品发布规则接口)

获取产品发布规则接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
leaf_cat_id Number 必须 1512 叶子类目ID
brand_id Number 可选 30111 品牌ID
provider_id Number 必须 0 当前用户所在渠道如0代表天猫,8代表淘宝

响应参数

名称 类型 示例值 描述
add_product_rule String <itemRule><field id="in_prop_20000" name="品牌" type="input"><rules><rule name="disableRule" value="true"><depend-group operator="and"><depend-express fieldId="prop_20000" value="-1" symbol="!="/></depend-group></rule></rules></field></itemRule> 返回产品发布规则

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaGpuAddSchemaGetRequest req = new AlibabaGpuAddSchemaGetRequest();
req.setLeafCatId(1512L);
req.setBrandId(30111L);
req.setProviderId(0L);
AlibabaGpuAddSchemaGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_gpu_add_schema_get_response>
    <add_product_rule>&lt;itemRule&gt;&lt;field id=&quot;in_prop_20000&quot; name=&quot;品牌&quot; type=&quot;input&quot;&gt;&lt;rules&gt;&lt;rule name=&quot;disableRule&quot; value=&quot;true&quot;&gt;&lt;depend-group operator=&quot;and&quot;&gt;&lt;depend-express fieldId=&quot;prop_20000&quot; value=&quot;-1&quot; symbol=&quot;!=&quot;/&gt;&lt;/depend-group&gt;&lt;/rule&gt;&lt;/rules&gt;&lt;/field&gt;&lt;/itemRule&gt;</add_product_rule>
</alibaba_gpu_add_schema_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

返回
顶部