编辑兑换码
POST
https://api.xiaoe-tech.com/xe.redeem_code.edit/1.0.0
拥有此API的权限集 |
---|
营销码券管理-码券操作 |
content
兑换码内容参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
app_id | 是 | string | 店铺id |
activity_id | 是 | string | 活动id |
batch_id | 是 | string | 批次id |
title | 是 | string | 标题 |
total | 是 | int | 生成兑换码数量 |
start_at | 是 | string | 兑换码开始时间 |
end_at | 是 | string | 兑换码结束时间 |
use_limit | 是 | int | 兑换码每人可用次数,0不限制 |
resource | 是 | array | 商品信息,可多个 |
coupon_ids | 是 | array | 优惠券id |
resource
商品信息参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
resource_id | 是 | string | 商品id |
sku_id | 否 | string | 商品sku_id |
resource_type | 是 | string | 商品类型 |
resource_name | 是 | string | 商品名称 |
resource_img_url | 是 | string | 商品图片 |
period_type | 否 | string | 有效期类型:0-长期有效;1-具体时间前有效;2-有效期时间范围(秒) |
period_value | 否 | string | 有效期值 |
spu_id | 否 | string | 统一商品id |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.xiaoe-tech.com/xe.redeem_code.edit/1.0.0' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_token": "xe_xxxxx",
"b_user_id": "b_u_xxx",
"content": "{\"app_id\":\"appxxx\",\"activity_id\":\"ma_rd_61d53a1b654e1_a6UvIedp\",\"batch_id\":\"QU\",\"title\":\"胜多负少\",\"total\":22,\"start_at\":\"2022-01-21 17:45:52\",\"end_at\":\"2022-01-26 12:00:00\",\"use_limit\":0,\"resource\":[{\"resource_id\":\"i_61d5451fe4b01af41370af0c\",\"sku_id\":\"\",\"resource_type\":1,\"resource_name\":\"232\",\"resource_img_url\":\"https://wechatapppro-1252524126.file.myqcloud.com/appoylrzfaj1001/image/b_u_5b73e348662c0_y1li3YvR/kw5rczay0o3h.gif\",\"period_type\":\"\",\"period_value\":\"\",\"spu_id\":\"\"}],\"coupon_ids\":[\"cou_617781c13a8b0-BlMlxF\"]}"
}'
响应示例响应示例
{
"code": 0,
"msg": "编辑兑换码批次成功",
"data": ""
}
请求参数
Body 参数application/json
返回响应
修改于 2022-03-31 06:46:19