修改券模板状态
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/api/promotion/v1/coupon/update_coupon_meta_status
使用限制
接口说明
需要申请权限。路径:
小程序:抖音开放平台控制台 > 应用详情 > 能力 > 能力实验室 > 小程序券
错误码
HTTP 状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
200 | 0 | success | 接口请求成功,无需排查 |
200 | 28001007 | 参数不合法 | 检查请求参数是否填写正常 |
200 | 29005086 | 券模板未处于生效状态,不允许变更 | - |
200 | 28001005 | 系统内部错误,请重试 | 请求重试,若依然无解请向平台提交反馈 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/promotion/v1/coupon/update_coupon_meta_status' \
--header 'access-token: clt.xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"coupon_meta_id": "702345xxxxxxx",
"coupon_meta_status": 1,
"app_id": "ttec789ac573xxxxxx01"
}'
响应示例响应示例
200 - 成功示例
{
"err_no": 0,
"err_msg": "",
"log_id": "202008121419360101980821035705926A"
}
请求参数
Header 参数
access-token
string
必需
示例值:
clt.xxx
Content-Type
string
必需
示例值:
application/json
Body 参数application/json