- 营销中心
- 一期接口文档
- 二期接口文档
- 营销cms
- 付费会员赢好礼
- 活动
- 微信券
- 百度券
- 优惠券兑换任务
- 券
- 营销短链
- 寄件有礼活动通知会员团GET
- 寄件有礼活动通知会员团 CopyGET
- 上传POST
- 万象平台
- 一期接口文档
- 二期接口文档
- 三期接口文档
- 88周年庆
- 导出
- 补发券
- 回收券
- 排行活动
- 优惠券兑换任务
- 人群圈选
- 用户领取与使用限制相关接口
- 微信券
- 公共接口
- 中止/恢复活动POST
- 百度OpenAPI
- 微信OpenAPI
创建优惠券
开发中
POST
/ypc/vientiane/wechat/createCoupon
请求参数
Body 参数application/json
data
object
必需
businessSystemId
string
必需
couponType
string
必需
couponName
string
必需
issueMaxAmount
string
必需
couponDescription
string
必需
useStartTime
string
必需
useEndTime
string
必需
discountAmount
string
必需
additionalJson
object
必需
ruleInstanceList
array [object {5}]
必需
canReturn
integer
必需
canTransfer
string
必需
remark
string
必需
miniOrderAmount
string
必需
pickupAfterPeriod
integer
必需
pickupAfterDays
string
必需
financialAllocationList
array [object {3}]
必需
示例
{"data":{
"businessSystemId": "expressBusiness",
"couponType": "REDUCE",
"couponName": "满减",
"issueMaxAmount": "100",
"couponDescription": "使用须知",
"useStartTime": "2022-10-20 00:00:00",
"useEndTime": "2022-10-23 23:59:59",
"discountAmount": "7",
"additionalJson": {
"merchant": "1587950041",
"goodsName": "快递",
"color": "Color030",
"path": "pages/order-enter/order-enter",
"custom": {
"path": "pages/order-enter/order-enter",
"entranceWord": "入口",
"guidingWord": "引导",
"appid": "wx72d3f4a714e51767"
}
},
"ruleInstanceList": [
{
"actionType": 0,
"name": "name",
"ruleTemplateId": 1000,
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDictCode": "person_pickup_coupon_total",
"ruleDetailValue": "4",
"ruleDictType": "int"
},
{
"ruleDictCode": "day_pickup_coupon_times",
"ruleDetailValue": "10",
"ruleDictType": "int"
}
]
},
{
"actionType": 1,
"name": "name",
"ruleTemplateId": 1000,
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDictCode": "limit_time_range",
"ruleDetailValue": "{\"type\":1,\"dayList\":[1,2,3,4,5,6,7],\"timeList\":[{\"start\":\"09:20:37\",\"end\":\"11:20:39\"}]}",
"ruleDictType": "string"
},
{
"ruleDictCode": "allow_app",
"ruleDetailValue": "ydwechat",
"ruleDictType": "list"
}
]
}
],
"canReturn": 0,
"canTransfer": "0",
"remark": "备注",
"miniOrderAmount": "12",
"pickupAfterPeriod": 3,
"pickupAfterDays": "5",
"financialAllocationList": [
{
"allocationOrgId": "1523",
"allocationOrgType": "DEPARTMENT",
"allocationRatio": 1
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/ypc/vientiane/wechat/createCoupon' \
--header 'Content-Type: application/json' \
--data-raw '{"data":{
"businessSystemId": "expressBusiness",
"couponType": "REDUCE",
"couponName": "满减",
"issueMaxAmount": "100",
"couponDescription": "使用须知",
"useStartTime": "2022-10-20 00:00:00",
"useEndTime": "2022-10-23 23:59:59",
"discountAmount": "7",
"additionalJson": {
"merchant": "1587950041",
"goodsName": "快递",
"color": "Color030",
"path": "pages/order-enter/order-enter",
"custom": {
"path": "pages/order-enter/order-enter",
"entranceWord": "入口",
"guidingWord": "引导",
"appid": "wx72d3f4a714e51767"
}
},
"ruleInstanceList": [
{
"actionType": 0,
"name": "name",
"ruleTemplateId": 1000,
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDictCode": "person_pickup_coupon_total",
"ruleDetailValue": "4",
"ruleDictType": "int"
},
{
"ruleDictCode": "day_pickup_coupon_times",
"ruleDetailValue": "10",
"ruleDictType": "int"
}
]
},
{
"actionType": 1,
"name": "name",
"ruleTemplateId": 1000,
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDictCode": "limit_time_range",
"ruleDetailValue": "{\"type\":1,\"dayList\":[1,2,3,4,5,6,7],\"timeList\":[{\"start\":\"09:20:37\",\"end\":\"11:20:39\"}]}",
"ruleDictType": "string"
},
{
"ruleDictCode": "allow_app",
"ruleDetailValue": "ydwechat",
"ruleDictType": "list"
}
]
}
],
"canReturn": 0,
"canTransfer": "0",
"remark": "备注",
"miniOrderAmount": "12",
"pickupAfterPeriod": 3,
"pickupAfterDays": "5",
"financialAllocationList": [
{
"allocationOrgId": "1523",
"allocationOrgType": "DEPARTMENT",
"allocationRatio": 1
}
]
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2022-10-19 08:14:39