taobao.item.anchor.get.tmall (天猫)

根据类目id和宝贝描述规范化打标类型获取该类目可用的宝贝描述模块中的锚点

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cat_id Number 必须 50010158 对应类目编号
type Number 必须 1 宝贝模板类型是人工打标还是自动打标:人工打标为1,自动打标为0.人工和自动打标为-1.

响应参数

名称 类型 示例值 描述
total_results Number 1 返回的宝贝描述模板结果数目
anchor_modules IdsModule [] 宝贝描述规范化可使用打标模块的锚点信息
  • └ name
  • String
  • 商品尺码表
  • 宝贝描述规范化模块名
  • └ id
  • Number
  • 1
  • 宝贝描述规范化模块id
  • └ type
  • Number
  • 1
  • 0为自动打标; 1为人工打标;

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ItemAnchorGetTmallRequest req = new ItemAnchorGetTmallRequest();
req.setCatId(50010158L);
req.setType(1L);
ItemAnchorGetTmallResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<item_anchor_get_tmall_response>
    <total_results>1</total_results>
    <anchor_modules>
        <ids_module>
            <name>商品尺码表</name>
            <id>1</id>
            <type>1</type>
        </ids_module>
    </anchor_modules>
</item_anchor_get_tmall_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>

错误码解释

错误码 错误描述 解决方案
isv.error-get-ids-module 系统错误,获取宝贝描述锚点信息失败! 请稍候重试或联系管理员。

API工具

如何获得此API

FAQ

返回
顶部