券查询
POST
{{url}}(上行接口)合作方提供此接口地址,接受客如云商户pos端查询券信息的请求(满足第三方满减券、折扣券在客如云POS端核销验券场景) 注:crm2.0商户不可使用该接口
请求参数
Body 参数application/json
coupons
array[string]
待核销券码集合
shopId
integer
客如云商户门店编号
示例
{
"coupons": [
"123456789012345601"
],
"shopId": 810094162
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
messageUuid
string
必需
result
$ref(#/definitions/2356406)[]
必需
#/definitions/2356406
可选
示例
{
"code": 0,
"message": "OK",
"messageUuid": "3b4cce269b0d45a3a2a783e91bed263a",
"result": [
{
"brandId": 32296,
"shopId": 810094162,
"couponInfo": {
"couponNo": "123456789012345601",
"couponName": "第三方满减券",
"couponType": 1,
"status": 1,
"statusDesc": "可用",
"threshold": 1,
"faceValue": 1,
"deductPerThreshold": 1,
"startTime": "2019-08-01",
"endTime": "2019-08-01"
}
}
]
}
修改于 3 年前