💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - 结算页优惠券 **请求URL:** - `/coupon/orderCoupon` **请求方式:** - post **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |source |是 |int |来源类型 1-来自下单 2-来自购物车 | |goods |否 |array |商品数据, source=1时必须 | |cart_ids |否 |array |购物车数据 , source=2时必须| **传参示例** ``` { "source":1, "goods": [ {"item_id": 2, "num": 1}, {"item_id": 3, "num": 2} ] } { "source":2, "cart_ids": [1,2,3] } ``` **返回示例** ``` { "code": 1, "show": 0, "msg": "", "data": { "can_use": [], "can_use_count": 0, "not_can_use": [ { "id": 1, "create_time": "2021-07-21 15:15:59", "name": "满100减10元", "money": "10.00", "condition_type": 2, "condition_money": 100, "use_time_type": 1, "use_time_start": 1626796800, "use_time_end": 1626883200, "use_time": 0, "use_goods_type": 2, "use_goods_ids": "23", "fail_use_tips": "部分商品不适用", "fail_use_detail": "可用商品:\\n哈比树儿童滑滑梯室内汽车滑梯家用玩具宝宝小型秋千组合游乐园", "use_time_tips": "2021.07.21 00:00:00 - 2021.07.22 00:00:00", "condition_tips": "满100可用", "goods_tips": "指定商品可用" }, { "id": 2, "create_time": "2021-07-21 15:15:59", "name": "满100减10元", "money": "10.00", "condition_type": 2, "condition_money": 100, "use_time_type": 1, "use_time_start": 1626796800, "use_time_end": 1626883200, "use_time": 0, "use_goods_type": 2, "use_goods_ids": "23", "fail_use_tips": "部分商品不适用", "fail_use_detail": "可用商品:\\n哈比树儿童滑滑梯室内汽车滑梯家用玩具宝宝小型秋千组合游乐园", "use_time_tips": "2021.07.21 00:00:00 - 2021.07.22 00:00:00", "condition_tips": "满100可用", "goods_tips": "指定商品可用" } ], "not_can_use_count": 2 } } ``` **参数:** |参数名 |类型 |说明 | |:--| |can_use |array |可使用优惠券 | |can_use_count |integer |可使用优惠券数量 | |not_can_use |array |不可使用优惠券 | |not_can_use_count |integer |不可使用优惠券数量 | |id |integer |用户优惠券id | |name |string |优惠券名称 | |money |decimal |优惠券面额 | |fail_use_tips |string |不可使用原因| |fail_use_detail |string |不可使用原因详情| |use_time_tips |string |使用时间提示 | |condition_tips |string |使用条件提示 | |goods_tips |string |可使用商品提示 |