| HTTP 状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 200 | 0 | success | 接口请求成功,无需排查 |
| 200 | 29005013 | 券模板不存在 | 确认券模板id是否正确 |
| 200 | 28001005 | 系统内部错误,请重试 | 请求重试,若依然无解请向平台提交反馈 |
| 200 | 29005031 | 库存无限制不能再改变 | - |
| 200 | 28001007 | 参数不合法 | 检查请求参数是否填写正常 |
| 200 | 29005071 | No Permission Operate | 没有权限对券模板id进行操作,检查申请access-token的client_key是否与app_id一致 |
curl --location --request POST 'http://dev-cn.your-api-server.com/api/promotion/v1/coupon/update_coupon_meta_stock' \
--header 'access-token: clt.xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "ttec789ac573xxxxxx01",
"coupon_meta_id": "702345xxxxxxs",
"unique_key": "202302224522342425",
"action": "increase",
"number": 200
}'{
"err_no": 0,
"err_msg": "",
"log_id": "202008121419360101980821035705926A"
}