4.1优惠券查询

优质
小牛编辑
125浏览
2023-12-01
根据优惠券号查询券的有状态(券号可输入或扫描券二维码获得)

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称co_checkstring
getGET参数组,本组参数需要参与签名object
└no券号281898619298number
└getlistgetlist=1,返回用户所有券1number

请求示例

{
    "action": {
        "action": "co_check"
    },
    "get": {
        "no": "281898619298",
        "getlist": "1"
    }
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息okstring
store券可用门店果盘测试string
name优惠券名称西瓜--单品券1string
coid券id26689861number
cono券号281898619298number
vdate有效期20190710~20190731string
cash金额(非0为金额券,0为实物券)0.00number
time券领用时间2019-07-10 12:42:56string
price券金额(仅在券为团购券是有效。可用于线下处理券相应的实收和折扣部分逻辑)0.00number
requireamt满XX元可用,用于控制券的使用金额0number
deid27694number
subject备注限量第5string
mbid平台id6740019number
accid会员卡id3812805number
type1number
choose抵扣方式(单品券抵扣方式 0=按固定金额 1=按菜品金额比例)1number
chooseval抵扣比例或者金额100number
entitylistlist
└dgid菜品id4917938number
└name菜品名称张飞酱牛肉string
└refid菜品外部编码71008number
colistlist
└store券可用门店果盘测试string
└name券名称西瓜--单品券1string
└coid券id26689866number
└cono券号28*******723string
└vdate券有效期20190710~20190731string
└cash金额(非0为金额券,0为实物券)0.00number
└time券领用时间2019-07-10 12:43:01string
└price券金额(仅在券为团购券是有效。可用于线下处理券相应的实收和折扣部分逻辑)0.00number
└requireamt满XX元可用,用于控制券的使用金额0number
└deid券类型id27694number
└info1111111111number
└subject限量第8string
└accid会员卡id3812805number
└type1:单品券 0:现金券1number
└choose抵扣方式( 单品券抵扣方式 0=按固定金额 1=按菜品金额比例)1number
└chooseval抵扣比例或者金额100number
└entitylistlist
└└dgid菜品id4917938number
└└name券名称张飞酱牛肉string
└└refid菜品外部编码71008number
msid6786number
tp使用类型:堂吃、外卖 、通用通用string

响应示例

{
    "status": "1",
    "info": "ok",
    "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",
    "subject": " 限量第5",
    "mbid": "6740019",
    "accid": "3812805",
    "type": "1",
    "choose": "1",
    "tp": "通用",
    "chooseval": "100",
    "entitylist": [
        {
            "dgid": "4917938",
            "name": "张飞酱牛肉",
            "refid": "71008"
        }
    ],
    "colist": [
        {
            "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"
}