tmall.item.update.simpleschema.get (官网同购编辑商品的get接口)

官网同购编辑商品的get接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_id Number 可选 123456789
  • 默认值:0
  • 商品id

    响应参数

    名称 类型 示例值 描述
    error Boolean ture 返回结果
    error_msg String 错误信息 错误信息
    result String <?xml version="1.0" encoding="UTF-8"?> <itemRule> <field id="title" name="标题" type="input"> <value>臺灣帆布鞋</value> </field> <field id="category" name="类目" type="input"> <value>{"cat_id":"50012027"}</value> </field> </itemRule> 商品信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TmallItemUpdateSimpleschemaGetRequest req = new TmallItemUpdateSimpleschemaGetRequest();
    req.setItemId(123456789L);
    TmallItemUpdateSimpleschemaGetResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tmall_item_update_simpleschema_get_response>
        <error>ture</error>
        <error_msg>错误信息</error_msg>
        <result>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;itemRule&gt; &lt;field id=&quot;title&quot; name=&quot;标题&quot; type=&quot;input&quot;&gt; &lt;value&gt;臺灣帆布鞋&lt;/value&gt; &lt;/field&gt; &lt;field id=&quot;category&quot; name=&quot;类目&quot; type=&quot;input&quot;&gt; &lt;value&gt;{&quot;cat_id&quot;:&quot;50012027&quot;}&lt;/value&gt; &lt;/field&gt; &lt;/itemRule&gt;</result>
    </tmall_item_update_simpleschema_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

    返回
    顶部