查询订单可用优惠券列表
请求地址
/api/v2/coupon/query_coupon_discounts
公共请求参数
请求参数
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| user_no | 是 | string | 会员编号 |
| fee | 是 | int | 支付金额, 单位分 |
响应参数
| 名称 | 类型 | 说明 |
|---|---|---|
| discount_name | string | 优惠名称 |
| discount_desc | string | 优惠描述 |
| discount_fee | string | 优惠金额 |
| coupon_codes | Array | 优惠券码列表 |
| num | int | 优惠券 |
| coupon_type | string | 优惠券类型, CASH:代金券 DISCOUNT:折扣券 |
请求示例
:::: tabs
::: tab biz_content
{
"user_no": "MID000VlIop",
"fee": 200
}
:::
::::
响应示例
:::: tabs
::: tab result
{
"code": 0,
"data": [
{
"coupon_codes": [
"290092498433"
],
"coupon_type": "CASH",
"discount_desc": "无门槛立减3元,单笔订单最多可使用1张",
"discount_fee": 300,
"discount_name": "3元代金券大酒店",
"num": 1
},
{
"coupon_codes": [
"446054055128"
],
"coupon_type": "DISCOUNT",
"discount_desc": "无门槛立享8.0折",
"discount_fee": 40,
"discount_name": "8折券",
"num": 1
},
{
"coupon_codes": [
"921283471128",
"721284005913"
],
"coupon_type": "CASH",
"discount_desc": "无门槛立减1元,单笔订单最多可使用3张",
"discount_fee": 200,
"discount_name": "叠加使用",
"num": 2
}
],
"msg": "success",
"succeed": true
}
::: ::::