- 营销中心
- 一期接口文档
- 二期接口文档
- 营销cms
- 付费会员赢好礼
- 活动
- 微信券
- 百度券
- 优惠券兑换任务
- 券
- 营销短链
- 寄件有礼活动通知会员团GET
- 寄件有礼活动通知会员团 CopyGET
- 上传POST
- 万象平台
- 一期接口文档
- 二期接口文档
- 三期接口文档
- 88周年庆
- 导出
- 补发券
- 回收券
- 排行活动
- 优惠券兑换任务
- 人群圈选
- 用户领取与使用限制相关接口
- 微信券
- 公共接口
- 中止/恢复活动POST
- 百度OpenAPI
- 微信OpenAPI
新增百度券
开发中
POST
/promotioncenter/coupon/create/other
请求参数
Body 参数application/json
appKey
string
必需
data
object
必需
businessSystemId
integer
必需
canReturn
integer
必需
canTransfer
integer
必需
couponDescription
string
必需
platformName
string
必需
couponName
string
必需
couponType
string
必需
couponWorth
integer
必需
deliverChannel
string
必需
discountAmount
integer
必需
discountRate
integer
必需
issueMaxAmount
integer
必需
maxDiscountAmount
integer
必需
miniOrderAmount
integer
必需
pickupEndTime
string
必需
pickupStartTime
string
必需
useEndTime
string
必需
useStartTime
string
必需
pickupAfterDays
string
必需
additionalInfo
string
必需
ruleInstanceList
array [object {5}]
必需
financialAllocationList
array [object {3}]
必需
operator
string
必需
operatorOrgId
string
必需
operatorOrgType
string
必需
示例
{
"appKey": "1000003",
"data": {
"businessSystemId": 1008611,
"canReturn": 1,
"canTransfer": 1,
"couponDescription": "快递满减",
"platformName": "BAIDU",
"couponName": "快递折扣券",
"couponType": "REDUCE",
"couponWorth": 20,
"deliverChannel": "BAIDU",
"discountAmount": 20,
"discountRate": 5,
"issueMaxAmount": 50,
"maxDiscountAmount": 20,
"miniOrderAmount": 30,
"pickupEndTime": "2021-05-28 00:00:00",
"pickupStartTime": "2021-02-20 00:00:00",
"useEndTime": "2021-05-30 14:40:00",
"useStartTime": "2021-04-05 00:00:00",
"pickupAfterDays": "",
"additionalInfo": "{'url': 'https://mbs1.bdstatic.com/searchbox/mappconsole/image/20210414/228d4d77-6622-42da-835f-fdea11301f31.jpg','appRedirectPath': 'https://b.bdstatic.com/searchbox/mappconsole/image/20191128/8d382c36-2b85-4f2c-b6d1-0d6afbc04dc8.png'}",
"ruleInstanceList": [
{
"actionType": 0,
"name": "Name",
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDetailValue": "12345",
"ruleDictCode": "allow_products",
"ruleDictType": "list"
}
],
"ruleTemplateId": 1000
}
],
"financialAllocationList": [
{
"allocationOrgId": "100000002001",
"allocationOrgType": "3",
"allocationRatio": 0.8
}
]
},
"operator": "zjx",
"operatorOrgId": "1000001",
"operatorOrgType": "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 '/promotioncenter/coupon/create/other' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey": "1000003",
"data": {
"businessSystemId": 1008611,
"canReturn": 1,
"canTransfer": 1,
"couponDescription": "快递满减",
"platformName": "BAIDU",
"couponName": "快递折扣券",
"couponType": "REDUCE",
"couponWorth": 20,
"deliverChannel": "BAIDU",
"discountAmount": 20,
"discountRate": 5,
"issueMaxAmount": 50,
"maxDiscountAmount": 20,
"miniOrderAmount": 30,
"pickupEndTime": "2021-05-28 00:00:00",
"pickupStartTime": "2021-02-20 00:00:00",
"useEndTime": "2021-05-30 14:40:00",
"useStartTime": "2021-04-05 00:00:00",
"pickupAfterDays": "",
"additionalInfo": "{'\''url'\'': '\''https://mbs1.bdstatic.com/searchbox/mappconsole/image/20210414/228d4d77-6622-42da-835f-fdea11301f31.jpg'\'','\''appRedirectPath'\'': '\''https://b.bdstatic.com/searchbox/mappconsole/image/20191128/8d382c36-2b85-4f2c-b6d1-0d6afbc04dc8.png'\''}",
"ruleInstanceList": [
{
"actionType": 0,
"name": "Name",
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDetailValue": "12345",
"ruleDictCode": "allow_products",
"ruleDictType": "list"
}
],
"ruleTemplateId": 1000
}
],
"financialAllocationList": [
{
"allocationOrgId": "100000002001",
"allocationOrgType": "3",
"allocationRatio": 0.8
}
]
},
"operator": "zjx",
"operatorOrgId": "1000001",
"operatorOrgType": "1"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
null
必需
data
object
必需
id
integer
必需
code
string
必需
canTransfer
integer
必需
canReturn
integer
必需
ruleInstanceList
array[string]
必需
success
boolean
必需
示例
{
"code": "200",
"message": null,
"data": {
"id": 61920274197182320,
"code": "2761226838",
"canTransfer": 0,
"canReturn": 0,
"ruleInstanceList": []
},
"success": true
}
修改于 2021-04-16 02:46:53