{
"appKey": "vientiane",
"data": {
"additionalInfo": "{\"bannerAppRedirectPath\":\"\",\"color\":\"B010\",\"appRedirectPath\":\"\",\"businessName\":\"BAIDU_EXPRESS\",\"url\":\"\"}",
"businessSystemId": "expressBusiness",
"canReturn": 0,
"canTransfer": 1,
"couponDescription": "qq",
"couponName": "aa百度",
"couponType": "REDUCE",
"couponWorth": 0,
"deliverChannel": "BAIDU",
"discountAmount": 1,
"discountRate": 0,
"financialAllocationList": [
{
"allocationOrgId": "11",
"allocationOrgType": "DEPARTMENT",
"allocationRatio": 0.5
},
{
"allocationOrgId": "123",
"allocationOrgType": "BRANCH",
"allocationRatio": 0.5
}
],
"issueMaxAmount": 100,
"maxDiscountAmount": 0,
"miniOrderAmount": 0,
"pickupAfterDays": 7,
"pickupEndTime": "2022-04-30 23:59:59",
"pickupStartTime": "2022-03-02 00:00:00",
"platformName": "BAIDU",
"remark": "abc",
"ruleInstanceList": [
{
"actionType": 0,
"name": "name",
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDetailValue": "10",
"ruleDictCode": "person_pickup_coupon_total",
"ruleDictType": "int"
}
],
"ruleTemplateId": 1000
},
{
"actionType": 1,
"name": "name",
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_products",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_send_type",
"ruleDictType": "list"
},
{
"ruleDetailValue": "ydwechat,ydapp",
"ruleDictCode": "allow_app",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_settlement_types",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_online_pay",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_fee_types",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_self_order",
"ruleDictType": "string"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_region",
"ruleDictType": "list"
}
],
"ruleTemplateId": 1000
}
]
},
"operator": "0001|张三测试",
"operatorOrgId": "",
"operatorOrgType": ""
}
curl --location --request POST '/promotioncenter/baiduApi/create/baidu' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey": "vientiane",
"data": {
"additionalInfo": "{\"bannerAppRedirectPath\":\"\",\"color\":\"B010\",\"appRedirectPath\":\"\",\"businessName\":\"BAIDU_EXPRESS\",\"url\":\"\"}",
"businessSystemId": "expressBusiness",
"canReturn": 0,
"canTransfer": 1,
"couponDescription": "qq",
"couponName": "aa百度",
"couponType": "REDUCE",
"couponWorth": 0,
"deliverChannel": "BAIDU",
"discountAmount": 1,
"discountRate": 0,
"financialAllocationList": [
{
"allocationOrgId": "11",
"allocationOrgType": "DEPARTMENT",
"allocationRatio": 0.5
},
{
"allocationOrgId": "123",
"allocationOrgType": "BRANCH",
"allocationRatio": 0.5
}
],
"issueMaxAmount": 100,
"maxDiscountAmount": 0,
"miniOrderAmount": 0,
"pickupAfterDays": 7,
"pickupEndTime": "2022-04-30 23:59:59",
"pickupStartTime": "2022-03-02 00:00:00",
"platformName": "BAIDU",
"remark": "abc",
"ruleInstanceList": [
{
"actionType": 0,
"name": "name",
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDetailValue": "10",
"ruleDictCode": "person_pickup_coupon_total",
"ruleDictType": "int"
}
],
"ruleTemplateId": 1000
},
{
"actionType": 1,
"name": "name",
"ruleInstanceDesc": "RuleInstanceDesc",
"ruleDetails": [
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_products",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_send_type",
"ruleDictType": "list"
},
{
"ruleDetailValue": "ydwechat,ydapp",
"ruleDictCode": "allow_app",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_settlement_types",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_online_pay",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_fee_types",
"ruleDictType": "list"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_self_order",
"ruleDictType": "string"
},
{
"ruleDetailValue": "1",
"ruleDictCode": "allow_region",
"ruleDictType": "list"
}
],
"ruleTemplateId": 1000
}
]
},
"operator": "0001|张三测试",
"operatorOrgId": "",
"operatorOrgType": ""
}'
{}