4.2优惠券核销

优质
小牛编辑
128浏览
2023-12-01
本接口用于核销指定的优惠券,可批量核销

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称co_cutstring
getGET参数组,本组参数需要参与签名object
└no券号281898619298number
└lsco批量核券id(多个券id逗号分隔。券id取自协议4.1中返回的coid)1number
└bn业务单号201908170001number
└op操作员王五string
postPOST参数组object
└pylscolist
└└coid菜品券id26308703number
└└no菜品券号28*******722string
└└dgid线下菜品编号(菜品券必传)4917938number
└└cutamt菜品金额(菜品券必传)0.01number

请求示例

{
    "action": {
        "action": "co_cut"
    },
    "get": {
        "no": "281898619298",
        "lsco": "1",
        "bn": "201908170001",
        "op": "王五"
    },
    "post": {
        "pylsco": [
            {
                "coid": "26308703",
                "no": "28*******722",
                "dgid": "4917938",
                "cutamt": "0.01"
            },
            {
                "coid": "26689866",
                "no": "28*******723",
                "dgid": "4917938",
                "cutamt": "0.01"
            }
        ]
    }
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息优惠券使用成功string
cash100number
price88number

响应示例

{
  "status": 1,
  "info": "优惠券使用成功",
  "cash": 100,
  "price": 88
}