💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - 获取优惠券 **请求URL:** - `/adminapi/marketing.coupon/detail` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |id |必选 |int |优惠券ID | **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |id |必选 |int |优惠券ID | |name |必选 |string |优惠券名称 | |money |必选 |float |优惠券面额 | |condition_type |必选 |int |使用条件 1=无门槛,2=订单满多少钱 | |condition_money |否 |float |使用条件金额,当condition_type=2时必填 | |send_total_type |必选 |int |发放数量类型 1=不限数量,2=固定数量 | |send_total |否 |int |发放数量,send_total_type=2时必填 | |use_time_type |必选 |string |用券时间类型:1=固定时间;2=领券当天起;3=领券次日起 | |use_time_start |否 |datetime |用券开始时间:use_time_type=1时生效 | |use_time_end |否 |datetime |用券结束时间:use_time_type=1时生效 | |use_time |否 |int |多少天内可用:use_time_type=2/3时生效 | |get_type |必选 |int |领取类型:1=用户领取, 2=商家赠送 | |get_num_type |必选 |int |领取次数类型:1=不限制领取次数;2=限制次数;3=每天限制数量 | |get_num |否 |int |领取次数类型: get_type=2/3时生效 | |use_goods_type |必选 |int |适用商品类型:1=全部商品;2=指定商品;3=指定商品不可用 | |use_goods_ids |必选 |array |使用商品ID, use_goods_type=2 / 3 时必填, 且数组不可为空 | **返回示例:** ``` { "code": 1, "show": 0, "msg": "获取成功", "data": { "id": 3, "sn": "yhq12345", "name": "满100减10元", "money": "10.00", "condition_type": 2, "condition_money": 100, "send_total_type": 2, "send_total": 10, "use_time_type": 1, "use_time_start": 1626796800, "use_time_end": 1626883200, "use_time": 0, "get_type": 1, "get_num_type": 1, "get_num": 0, "use_goods_type": 2, "use_goods_ids": "7", "status": 1, "goods": [ { "id": 7, "name": "阿发【发啦发票【拉【", "image": "https://img0.baidu.com/it/u=2635130093,4202492912&fm=26&fmt=auto&gp=0.jpg", "min_price": "3.00", "max_price": "3.00" } ] } } ``` **返回参数:** |参数名 |必选 |说明 | | ------ | ------ | ------ |------ | |id |int |优惠券ID | |name |string |优惠券名称 | |money |float |优惠券面额 | |condition_type |int |使用条件 1=无门槛,2=订单满多少钱 | |condition_money|float |使用条件金额,当condition_type=2时必填 | |send_total_type|int |发放数量类型 1=不限数量,2=固定数量 | |send_total |int |发放数量,send_total_type=2时必填 | |use_time_type|string |用券时间类型:1=固定时间;2=领券当天起;3=领券次日起 | |use_time_start |datetime |用券开始时间:use_time_type=1时生效 | |use_time_end |datetime |用券结束时间:use_time_type=1时生效 | |use_time |int |多少天内可用:use_time_type=2/3时生效 | |get_type |int |领取类型:1=用户领取, 2=商家赠送 | |get_num_type |int |领取次数类型:1=不限制领取次数;2=限制次数;3=每天限制数量 | |get_num |int |领取次数类型: get_type=2/3时生效 | |use_goods_type |int |适用商品类型:1=全部商品;2=指定商品;3=指定商品不可用 | |use_goods_ids |array |使用商品ID, use_goods_type=2 / 3 时必填, 且数组不可为空 | |goods|array|商品列表,具体字段看返回示例|