tmall.item.sizemapping.template.update (更新天猫商品尺码表模板)

更新天猫商品尺码表模板

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
template_id Number 必须 123456 尺码表模板ID
template_name String 必须 男直筒牛仔裤尺码表1
  • 最大长度:20
  • 尺码表模板名称
    template_content String 必须 S:身高(cm):160,S:体重(公斤):45,M:身高(cm):165,M:体重(公斤):50
  • 最大长度:8000
  • 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。尺码值,维度数据不能包含数字,特殊字符。数值为0-999.9的数字,且最多一位小数。

    响应参数

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

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TmallItemSizemappingTemplateUpdateRequest req = new TmallItemSizemappingTemplateUpdateRequest();
    req.setTemplateId(123456L);
    req.setTemplateName("男直筒牛仔裤尺码表1");
    req.setTemplateContent("S:身高(cm):160,S:体重(公斤):45,M:身高(cm):165,M:体重(公斤):50");
    TmallItemSizemappingTemplateUpdateResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tmall_item_sizemapping_template_update_response>
        <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>
        </size_mapping_template>
    </tmall_item_sizemapping_template_update_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

    返回
    顶部