简要描述:
- 店铺优惠券列表
请求URL:
POST/wapapi/addons/execute/addons/coupontype/controller/coupontype/action/confirmOrderCouponList
说明
参加秒杀和拼团的商品信息不要带进来,活动不能同时参加,优惠券的内容会被满减送的影响到,注意先计算满减送的内容
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
post_data | 是 | array | 商品信息 |
`` |
{
"post_data":[
{
"shop_id":0,// 店铺id
"sku_id":19, //sku id
"goods_id":17, // 商品id
"discount_price":80,// 商品销售价 * 会员折扣 * 限时折扣
"num":2 // 购买数目
"full_cut_percent_amount":10 // 满减送在这个商品的优惠占比金额 = 满减送优惠金额 * (discount_price * num / (累计这个店铺所有商品discount_price * num)),这个字段非必须或者=0
},
{
"shop_id":0,
"sku_id":20,
"goods_id":18,
"discount_price":100,
"num":3
"full_cut_percent_amount":0
},
{
"shop_id":52,
"sku_id":30,
"goods_id":25,
"discount_price":100,
"num":3
"full_cut_percent_amount":0
}
]
}
返回示例:
正确时返回:
{
"code": 1,
"message": "获取成功",
"data": [
{
"coupon_id": 459, // 领取优惠券id
"shop_id": 0,//优惠券所属店铺id
"coupon_type_id": 33,//优惠券id
"discount": "10.00",//优惠券折扣
"money": "1.00",//优惠券优惠金额
"goods_limit": [],//优惠券指定可用商品id,为限制
"start_time": 1540828800,//可使用开始时间
"end_time": 1543507199,//可使用结束时间
"coupon_name": "店铺优惠券200元",//优惠券名称
"coupon_genre": 1,//优惠券类型1-无门槛,2-满减,3-折扣
"at_least": "0.00",//优惠券金额要求
"range_type": 1,//0部分产品使用 1全场产品使用
"use_shop_id": 0//可用店铺id
},
{
"coupon_id": 462,
"shop_id": 0,
"coupon_type_id": 34,
"discount": "10.00",
"money": "10.00",
"goods_limit": [],
"start_time": 1541433600,
"end_time": 1543593599,
"coupon_name": "1000-10",
"coupon_genre": 1,
"at_least": "0.00",
"range_type": 1,
"use_shop_id": 0
},
{
"coupon_id": 459,
"shop_id": 0,
"coupon_type_id": 33,
"discount": "10.00",
"money": "1.00",
"goods_limit": [],
"start_time": 1540828800,
"end_time": 1543507199,
"coupon_name": "店铺优惠券200元",
"coupon_genre": 1,
"at_least": "0.00",
"range_type": 1,
"use_shop_id": 52
},
{
"coupon_id": 462,
"shop_id": 0,
"coupon_type_id": 34,
"discount": "10.00",
"money": "10.00",
"goods_limit": [],
"start_time": 1541433600,
"end_time": 1543593599,
"coupon_name": "1000-10",
"coupon_genre": 1,
"at_least": "0.00",
"range_type": 1,
"use_shop_id": 52
}
]
}
参数名 | 类型 | 说明 |
---|