创建优惠码
POST
https://api.xiaoe-tech.com/xe.promo_code.create_code/1.0.0
拥有此API的权限集 |
---|
营销码券管理-码券操作 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.xiaoe-tech.com/xe.promo_code.create_code/1.0.0' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "dss",
"name": "dss",
"note": "22",
"ptype": "1",
"start_at": "2021-12-01 14: 59: 19",
"end_at": "2021-12-18 00: 00: 00",
"total_num": "22",
"style": "1",
"min_charge": "0",
"discount": "22",
"discount_limit": "0",
"bind_res_type": "1",
"user_limit": "0",
"can_share": "0",
"use_in_acts": "0",
"remark": "33",
"code": "",
"resource": [{
"resource_id": "i_6184ed0a60b2c37884d5181d",
"resource_type": "1"
}]
}'
响应示例响应示例
{
"code": 0,
"msg": "添加成功",
"data": null
}
请求参数
Body 参数application/json
返回响应
修改于 2022-03-31 06:26:45