文档中心 > API类目 > 商品编辑

tmall.item.sizemapping.templates.list (获取天猫商品尺码表模板列表)

获取所有尺码表模板列表。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
size_mapping_templates SizeMappingTemplate [] 尺码表模板列表
  • └ template_id
  • Number
  • 123456
  • 尺码表模板ID
  • └ template_name
  • String
  • 男直筒牛仔裤尺码表1
  • 尺码表模板名称
  • └ template_content
  • String
  • S:身高:160,S:体重:45,M:身高:165,M:体重:50
  • 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。
  • └ category_id
  • Number
  • 202054506
  • 尺码表模板所属的叶子类目ID

请求示例

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

响应示例

  • XML示例
  • JSON示例
<tmall_item_sizemapping_templates_list_response>
    <size_mapping_templates>
        <size_mapping_template>
            <template_id>123456</template_id>
            <template_name>男直筒牛仔裤尺码表1</template_name>
            <template_content>S:身高:160,S:体重:45,M:身高:165,M:体重:50</template_content>
            <category_id>202054506</category_id>
        </size_mapping_template>
    </size_mapping_templates>
</tmall_item_sizemapping_templates_list_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

返回
顶部