下单结算
下单页面查询是否有可用优惠
POST {{base_url}}/cart/getUseableDiscounts
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
shop_id |
string | 1 | 1 | |
cart_ids[0] |
string | 1 | 177 | |
cart_ids[1] |
string | 1 | 178 | |
cart_ids[2] |
string | 1 | 179 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"useable_coupons": [
{
"id": 11,
"coupon_id": 1,
"uid": 14,
"used_time": null,
"get_time": "2020-05-29 17:01:27",
"use_status": 1,
"order_id": 0,
"start_time": "2020-05-29 17:01:27",
"end_time": "2020-06-07 17:01:27",
"created_at": "2020-05-29 17:01:27",
"updated_at": "2020-05-29 17:01:27",
"coupon": {
"coupon_id": 1,
"shop_id": 0,
"shop_type": 1,
"use_money": 20,
"reduce_money": 10,
"term_of_validity": 3,
"get_num": 1,
"status": 1,
"create_at": "2020-04-20 11:08:12",
"update_at": 1587352092
}
}
]
}
}
文档更新时间: 2020-06-13 11:27 作者:nianwang