4.1优惠券查询

优质
小牛编辑
126浏览
2023-12-01

说明

用于输入优惠券号查询券的有状态

请求地址

http://api.dc78.cn/Api/co_check

请求方式

GET

请求参数

参数参数名称必填描述范例

no

券号



getlist


getlist=1,返回用户所有券

返回

{
"status":"1",
"store":"果盘测试",
"name":"西瓜--单品券1",
"coid":"26689861",
"cono":"281898619298",
"vdate":"20190710~20190731",
"cash":"0.00",
"time":"2019-07-10 12:42:56",
"price":"0.00",
"requireamt":"0",
"deid":"27694",
"info":"1111111111

",
"subject":" 限量第5",
"mbid":"6740019",
"accid":"3812805",
"type":"1",
"choose":"1",
"chooseval":"100",
"entitylist":[
{
"dgid":"4917938",
"name":"张飞酱牛肉",
"refid":"71008"
}
],
"colist":[
{
"store":"全部",
"name":"团购测试",
"coid":"24275648",
"cono":"25*******130",
"vdate":"20190517~20190715",
"cash":"10.00",
"time":"2019-05-17 09:06:08",
"price":0,
"requireamt":"50",
"deid":"13539",
"info":"77777777",
"subject":"生日测试",
"accid":"3812805",
"type":"0"
},
{
"store":"全部",
"name":"520优惠券",
"coid":"26298145",
"cono":"27*******715",
"vdate":"20190702~20190731",
"cash":"52.00",
"time":"2019-07-02 10:13:54",
"price":0,
"requireamt":"100",
"deid":"26408",
"info":"

111111

22222

33333

44444

",
"subject":"充值赠券",
"accid":"3812805",
"type":"0"
},
{
"store":"果盘测试",
"name":"西瓜--单品券1",
"coid":"26689866",
"cono":"28*******723",
"vdate":"20190710~20190731",
"cash":"0.00",
"time":"2019-07-10 12:43:01",
"price":"0.00",
"requireamt":"0",
"deid":"27694",
"info":"1111111111 ",
"subject":" 限量第8",
"accid":"3812805",
"type":"1",
"choose":"1",
"chooseval":"100",
"entitylist":[
{
"dgid":"4917938",
"name":"张飞酱牛肉",
"refid":"71008"
}
]
}
],
"server_timestamp":1562733881,
"server_time":"2019-07-10 12:44:41",
"server_name":"wx-task2.hz",
"msid":"6786"
}

参数参数名称必填描述范例
status
状态
1,成功
1
name
优惠券名称


现金抵用券10元
cono
券号


26609973922
vdate
有效期


20150921~20161231
cash
金额

非0为金额券,0为实物券
10.00
time
券领用时间


2017-01-11 13:12:00
store
券可用门店


全部
info
使用说明


每桌限用一张
price
券金额

仅在券为团购券是有效。可用于线下处理券相应的实收和折扣部分逻辑
0
requireamt


满XX元可用,用于控制券的使用金额
50
mbid
平台用户id


173345
type
券类型

1:单品券 0:现金券

choose
抵扣方式

单品券抵扣方式 0=按固定金额1=按菜品金额比例
1
chooseval


抵扣比例或者金额
100
dgid
菜品id



dgname
菜品名称



refid
外部编码

菜品外部编码

2016-11-13,增加返回券价格pric

2019-03-27 增加返回摘要:subject

2019-07-10 增加返回单品券信息:choose、chooseval、entitylist

请求方式

INI

请求参数

[action]
描述

action=co_check
[get]
描述

no:券号

type:类型

返回

[result]
status=1
store=全部
name=200积分兑换券
coid=501911
cono=20019118486
vdate=20150329~20150727
cash=100
time=2015-04-09 14:25:47
mbid=173345
price=88

[result]
描述

status=1

store=全部

name=200积分兑换券

coid=501911

cono=20019118486

vdate=20150329~20150727

cash=100

time=2015-04-09 14:25:47

mbid=173345

price=88