文档中心 > API类目 > 天猫汽车

taobao.coupon.localization.chmod (卡券模板冻结接口)

卡券模板列表查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
template_code Number 可选 001232 卡券模板code
edit_locked Boolean 可选 true 是否编辑操作被锁定
add_coupon_range_locked Boolean 可选 false 是否添加权益范围被锁定
terminate_locked Boolean 可选 false 是否终止券被锁定
invalidate_locked Boolean 可选 false 是否删除券被锁定

响应参数

名称 类型 示例值 描述
default_model_key String 0022 默认key
success1 Boolean true 卡券操作是否成功
error_message String 0001 错误信息
error_code1 String 002 错误码
total_count Number 1 总数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CouponLocalizationChmodRequest req = new CouponLocalizationChmodRequest();
req.setTemplateCode(001232L);
req.setEditLocked(true);
req.setAddCouponRangeLocked(false);
req.setTerminateLocked(false);
req.setInvalidateLocked(false);
CouponLocalizationChmodResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<coupon_localization_chmod_response>
    <default_model_key>0022</default_model_key>
    <success1>true</success1>
    <error_message>0001</error_message>
    <error_code1>002</error_code1>
    <total_count>1</total_count>
</coupon_localization_chmod_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

返回
顶部