券模板发券接口
POST
/open/v1/crm/coupon/manualSend(下行接口)客如云提供通过券模板发券接口
请求参数
Body 参数application/json
brandId
integer
客如云品牌Id
shopId
integer
客如云门店Id
customerId
integer
顾客Id
coupons
$ref(#/definitions/2356404)[]
发券信息
#/definitions/2356404
可选
customerInfo
#/definitions/2356403可选
开放用户信息,顾客customerId为空时,字段customerInfo不能为空
示例
{
"brandId": 2479,
"shopId": 247900002,
"customerId": 9527,
"coupons": [
{
"couponId": 1234567,
"count": 1
}
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
result
$ref(#/definitions/2356405)[]
规则
#/definitions/2356405
可选
code
integer
必需
错误码;0:成功;其他值认为失败
message
string
返回信息
messageUuid
string
错误信息序列码
apiMessage
string
必需
示例
{
"code": 0,
"message": "string",
"messageUuid": "string",
"result": [
{
"coupInstanceId": 11122,
"couponId": 12345678,
"holderId": 9527
}
]
}
修改于 3 年前