文档
测试

由订单确定可用与不可用优惠券

POST
OrderAvailableCoupon

接口描述

此接口只返回未使用优惠券

请求参数

参数名
类型
描述
必填
order_id
订单id
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:0
必填
data
object
数据字典
必填
available
array
可用优惠券列表,数据列表
必填
id
string
示例:14
必填
status
string
示例:0
必填
start_time
string
开始使用时间,示例:1611630082
必填
end_time
string
最晚使用时间,示例:1614222082
必填
use_time
string
使用时间,未使用则为0示例:0
必填
coupon_id
string
优惠券id,示例:8
必填
over
string
满多少,示例:200.00
必填
off
string
减多少,示例:30.00
必填
type
string
类型1全场通用,2限品类,3限商品,示例:1
必填
time_type
string
有效期计算规则,到期时间类型1固定时间2领取后validity天,示例:2
必填
desc
string
优惠券描述,示例:按业绩测试全场
必填
is_yeji
string
满多少的门槛计算方式0按实付总价1按业绩,示例:1
必填
off_yeji
string
是否减少业绩0不减1减,示例:1
必填
off_fc
string
是否减少分润0不减1减,示例:1
必填
is_superpose
string
是否可叠加,0不可1可示例:0
必填
unavailable
array
不可用优惠券列表,数据列表
必填
id
string
示例:3
必填
status
string
示例:0
必填
start_time
string
示例:1609344000
必填
end_time
string
示例:1612022400
必填
use_time
string
示例:0
必填
coupon_id
string
示例:1
必填
over
string
示例:1000.00
必填
off
string
示例:200.00
必填
type
string
示例:2
必填
time_type
string
示例:1
必填
desc
string
示例:测试优惠券
必填
is_yeji
string
示例:0
必填
off_yeji
string
示例:1
必填
off_fc
string
示例:1
必填
is_superpose
string
示例:0
必填
availableIds
array
数据列表
必填
unavailableIds
array
数据列表
必填

说明 / 示例

```json { "msg": "success", "code": 0, "data": { "available": [ { "id": "14", "status": "0", "start_time": "1611630082", "end_time": "1614222082", "use_time": "0", "coupon_id": "8", "over": "200.00", "off": "30.00", "type": "1", "time_type": "2", "desc": "按业绩测试全场", "is_yeji": "1", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "13", "status": "0", "start_time": "1611630082", "end_time": "1614222082", "use_time": "0", "coupon_id": "8", "over": "200.00", "off": "30.00", "type": "1", "time_type": "2", "desc": "按业绩测试全场", "is_yeji": "1", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "9", "status": "0", "start_time": "0", "end_time": "0", "use_time": "0", "coupon_id": "6", "over": "1.00", "off": "20.00", "type": "1", "time_type": "1", "desc": "客服关怀", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "8", "status": "0", "start_time": "0", "end_time": "0", "use_time": "0", "coupon_id": "6", "over": "1.00", "off": "20.00", "type": "1", "time_type": "1", "desc": "客服关怀", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "7", "status": "0", "start_time": "0", "end_time": "0", "use_time": "0", "coupon_id": "6", "over": "1.00", "off": "20.00", "type": "1", "time_type": "1", "desc": "客服关怀", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "6", "status": "0", "start_time": "0", "end_time": "0", "use_time": "0", "coupon_id": "6", "over": "1.00", "off": "20.00", "type": "1", "time_type": "1", "desc": "客服关怀", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "5", "status": "0", "start_time": "0", "end_time": "0", "use_time": "0", "coupon_id": "6", "over": "1.00", "off": "20.00", "type": "1", "time_type": "1", "desc": "客服关怀", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "4", "status": "0", "start_time": "0", "end_time": "0", "use_time": "0", "coupon_id": "6", "over": "1.00", "off": "20.00", "type": "1", "time_type": "1", "desc": "客服关怀", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" } ], "unavailable": [ { "id": "3", "status": "0", "start_time": "1609344000", "end_time": "1612022400", "use_time": "0", "coupon_id": "1", "over": "1000.00", "off": "200.00", "type": "2", "time_type": "1", "desc": "测试优惠券", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "2", "status": "0", "start_time": "1609344000", "end_time": "1612022400", "use_time": "0", "coupon_id": "1", "over": "1000.00", "off": "200.00", "type": "2", "time_type": "1", "desc": "测试优惠券", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "1", "status": "0", "start_time": "1609344000", "end_time": "1612022400", "use_time": "0", "coupon_id": "1", "over": "1000.00", "off": "200.00", "type": "2", "time_type": "1", "desc": "测试优惠券", "is_yeji": "0", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "12", "status": "0", "start_time": "1609430400", "end_time": "1612022400", "use_time": "0", "coupon_id": "2", "over": "100.00", "off": "20.00", "type": "3", "time_type": "1", "desc": "限商品测试", "is_yeji": "1", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "11", "status": "0", "start_time": "1609430400", "end_time": "1612022400", "use_time": "0", "coupon_id": "2", "over": "100.00", "off": "20.00", "type": "3", "time_type": "1", "desc": "限商品测试", "is_yeji": "1", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" }, { "id": "10", "status": "0", "start_time": "1609430400", "end_time": "1612022400", "use_time": "0", "coupon_id": "2", "over": "100.00", "off": "20.00", "type": "3", "time_type": "1", "desc": "限商品测试", "is_yeji": "1", "off_yeji": "1", "off_fc": "1", "is_superpose": "0" } ], "availableIds": [ "8", "6" ], "unavailableIds": [ "1", "2" ] } } ```