文档中心> 开发文档> 接口列表> 促销API> dangdang.activity.mo...
dangdang.promotions....
查询促销列表信息
dangdang.promotion.g...
查看促销详细信息
dangdang.promotion.i...
修改商品类型
dangdang.promotions....
批量更新促销结束时间
dangdang.promotions....
发布“直降”促销活动
dangdang.promotions....
修改“直降”促销活动
dangdang.activity.fi...
根据各种条件查询活动...
dangdang.activity.fi...
根据促销id查询详情
dangdang.activity.fi...
查询促销数量
dangdang.activity.fi...
根据品id查促销
dangdang.activity.ad...
添加例外品接口
dangdang.activity.si...
单个取消促销接口
dangdang.activity.mo...
修改促销时间
dangdang.activity.ac...
审核通过
dangdang.activity.re...
审核不通过
dangdang.activity.fi...
查询审核日志
dangdang.activity.mo...
修改促销价
dangdang.activity.ba...
批量取消促销
dangdang.activity.de...
删除例外品
dangdang.activity.de...
删除促销品
dangdang.activity.fi...
查找例外品
dangdang.activity.fi...
分页查找促销品
dangdang.activity.fi...
查找促销失败的品
dangdang.activity.mo...
修改促销
dangdang.activity.cr...
批量创建促销
接口入参包含两部分:
第一部分:url上?后边跟shopId=?(商家店铺id)
第二部分:以表单形式提交post请求,表单中只有一个键值对,name=stringEntity,value的说明如下:
{
"id": 2100896044,//修改促销的时候指定促销id
"shopId": 9001,//修改促销的时候指定店铺id,促销id和店铺id必须匹配
"activityName": "送赠品",//可修改项,本次提交的将覆盖旧的
"activityType": "COMMON_PROMO",//固定值,不可修改
"activitySubType": 3,//促销类型,不可修改
"startDate": 14824010210000,//开始时间,可修改项
"endDate": 14824010210010,//结束时间,可修改项
"createdBy": null,//创建者,修改时传null
"lastChangedBy": "50000327",//最后创建者
"dimensionSets": [//条件优惠信息,本次提交将全量覆盖旧有的数据,字段含义同创建
{
"autoRoll": true,
"maxRollTimes": 10000,
"qualificationBenefitDtos": [
{
"qualifications": [
{
"value": "1",
"enumCode": 1
}
],
"benefits": [
{
"value": "1078508524,0,1\n",
"enumCode": 4
}
],
"step": 1
}
],
"activityProducts":[//限时抢的品在此提报
{
"activityId": 2100896044,//关联的促销id
"dimensionSetId": 0,//关联的维度组合id,无需关心,修改时写0
"productId": 1078517524,
"tryTime": 0,
"minBuyN": 0,
"maxBuyN": 0,
"shopId": 9001,
"activityProductBatchId": 0,
"mainProductId": 0,
"salesQuantityLimit": 0,
"cancleSalesLimit": 0,
"deleted": false
}
]
}
],
"promoAttributeDto": {
"promoLimitbuy": false,
"limitScope": "SKU",
"localDelivery": false,
"autoEbook": false
},
"activityProductBatch": {
"operationType": "ADD_PRODUCT",
"userId": "50000327",
"status": 0,
"deleted": false
},
"activityProducts": [//出限时抢之外的其他促销类型,品写在这个节点
{
"activityId": 0,
"dimensionSetId": 0,
"productId": 1078517524,
"tryTime": 0,
"minBuyN": 0,
"maxBuyN": 0,
"shopId": 9001,
"activityProductBatchId": 0,
"mainProductId": 0,
"salesQuantityLimit": 0,
"cancleSalesLimit": 0,
"deleted": false
}
],
"activityProductGroups": [//如果要修改店铺级促销,这个节点不能为null。
{
"activityId": 0,
"productGroupType": "SHOP",
"productGroupValue": "9001",
"deleted": false
}
],
"activityProductExcepts": [//店铺级促销的例外品
]
}
修改店铺级促销
{
"id": 2100896044,
"shopId": 9001,
"activityName": "店铺级满额减",
"activityType": "COMMON_PROMO",
"activitySubType": 14,
"startDate": "Mar 30, 2017 5:15:00 PM",
"endDate": "Apr 19, 2017 12:00:00 AM",
"createdBy": "50000327",
"lastChangedBy": "50000327",
"dimensionSets": [
{
"autoRoll": false,
"qualificationBenefitDtos": [
{
"qualifications": [
{
"value": "50.0",
"enumCode": 2
}
],
"benefits": [
{
"value": "5.0",
"enumCode": 1
}
],
"step": 1
},
{
"qualifications": [
{
"value": "100.0",
"enumCode": 2
}
],
"benefits": [
{
"value": "10.0",
"enumCode": 1
}
],
"step": 2
},
{
"qualifications": [
{
"value": "200.0",
"enumCode": 2
}
],
"benefits": [
{
"value": "20.2",
"enumCode": 1
}
],
"step": 3
},
{
"qualifications": [
{
"value": "300.0",
"enumCode": 2
}
],
"benefits": [
{
"value": "50.0",
"enumCode": 1
}
],
"step": 4
}
]
}
],
"promoAttributeDto": {
"promoLimitbuy": false,
"limitScope": "SKU",
"localDelivery": false,
"autoEbook": false
},
"activityProductBatch": {
"operationType": "ADD_PRODUCT",
"userId": "50000327",
"status": 0,
"deleted": false
},
"activityProductGroups": [
{
"activityId": 0,
"productGroupType": "SHOP",
"productGroupValue": "9001",
"deleted": false
}
],
"activityProductExcepts": []
}
修改送赠品
{
"id": 2100895051,
"shopId": 9001,
"activityName": "9001送赠品",
"activityType": "COMMON_PROMO",
"activitySubType": 3,
"startDate": "Mar 1, 2017 4:00:00 PM",
"endDate": "Mar 25, 2017 4:42:58 PM",
"createdBy": "50000327",
"lastChangedBy": "50000327",
"dimensionSets": [
{
"autoRoll": true,
"maxRollTimes": 10000,
"qualificationBenefitDtos": [
{
"qualifications": [
{
"value": "1",
"enumCode": 1
}
],
"benefits": [
{
"value": "1078508524,0,1\n",
"enumCode": 4
}
],
"step": 1
}
]
}
],
"promoAttributeDto": {
"promoLimitbuy": false,
"limitScope": "SKU",
"localDelivery": false,
"autoEbook": false
},
"activityProductBatch": {
"operationType": "ADD_PRODUCT",
"userId": "50000327",
"status": 0,
"deleted": false
},
"activityProducts": [
{
"activityId": 0,
"dimensionSetId": 0,
"productId": 1078517524,
"tryTime": 0,
"minBuyN": 0,
"maxBuyN": 0,
"shopId": 9001,
"activityProductBatchId": 0,
"mainProductId": 0,
"salesQuantityLimit": 0,
"cancleSalesLimit": 0,
"deleted": false
}
]
}
Copyright © 当当网 2004-2012, All Rights Reserved