简要描述:
搜索门店优惠券
请求域名:
- http://xx.com
请求URL:
plugin.store-decorate.admin.decorate-common.search-coupon
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
store_id | 是 | int | 门店ID |
返回示例:
正确时返回:
{
result: 1,
msg: "成功",
data: {
list: [
{
id: 53,
uniacid: 1,
cat_id: 0,
name: "测试",
get_type: 1,
level_limit: -1,
get_max: 1,
get_limit_max: 1,
get_limit_type: 0,
use_type: 5,
return_type: 0,
bgcolor: "",
enough: 0,
coupon_type: 0,
time_limit: 0,
time_days: 1,
time_start: "2023-01-04 00:00:00",
time_end: "2023-01-11 00:00:00",
coupon_method: 1,
discount: "0.00",
deduct: "0.00",
back_type: 0,
back_money: "",
back_credit: "",
back_redpack: "",
back_when: 0,
thumb: "",
desc: null,
total: 0,
status: 1,
money: "0.00",
resp_desc: null,
resp_thumb: "",
resp_title: "",
resp_url: "",
credit: 0,
usecredit2: 0,
remark: "",
descnoset: 0,
display_order: 0,
supplier_uid: 0,
getcashier: 0,
cashiersids: null,
cashiersnames: null,
category_ids: null,
categorynames: null,
goods_names: null,
goods_ids: null,
storeids: 41,
storenames: [
"油炸桃子"
],
member_tags_ids: null,
member_tags_names: null,
getstore: 0,
getsupplier: 0,
supplierids: null,
suppliernames: null,
createtime: 0,
created_at: "2023-01-04 17:09:44",
updated_at: "2023-01-04 17:09:44",
deleted_at: null,
is_complex: 0,
plugin_id: 32,
use_conditions: null,
is_integral_exchange_coupon: 0,
exchange_coupon_integral: null,
content: null,
coupon_type_name: "门店商品"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "暂无数据",
"data": []
}
返回参数说明:开启插件的插件名
参数名 | 类型 | 说明 |
---|---|---|
id | int | 优惠券id |
name | string | 优惠券名称 |
coupon_method | int | 优惠方式: 1为立减deduct, 2为折扣discount |
deduct | int | 立减多少元(注意,coupon_method为1时,该数据才有意义) |
discount | float | 折扣(注意,coupon_method为2时,该数据才有意义; 例子:7表示打7折,即原价的0.7倍) |
enough | int | 消费满多少元, 优惠券才可用(空或0为不限制) |
use_type | int | 适用范围,0商城通用 1指定分类 2指定商品 |
category_ids | array | 适用的分类ID (受use_type影响) |
categorynames | array | 适用的分类名称 (受use_type影响) |
goods_ids | array | 适用的商品ID (受use_type影响) |
goods_names | array | 适用的商品名称 (受use_type影响) |
time_limit | int | 时间限制类型: 0领取后几天有效, 1时间范围 |
time_days | int | 领取后几天有效(受time_limit影响) |
time_start | int | 有效期的起始时间(受time_limit影响) |
time_end | int | 有效期的终止时间(受time_limit影响) |
get_max | int | 每人限领的上限 |
total | int | 发放总数量限制( -1 为不限制) |
备注:
- 更多返回错误代码请看首页的错误代码描述