客户积分发放或扣减
最后更新:2023/04/06企业可通过此接口发放或扣减客户的积分
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/integral/customer/increase_or_decrease?access_token=x
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数
{
"type" : 1,
"customer_id" : "fake_data",
"customer_id_type" : 1,
"business_no": "fake_data",
"business_time" : 1679391445,
"integral": 100,
"reason" : "reason"
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
type | int | 是 | 积分增减类型0,增加,1减少 |
customer_id | string | 是 | 客户id |
customer_id_type | int | 否 | 客户id类型 1:服务商主体/三方应用external_userid 2:企业主体/自建应用external_userid 3:服务商主体/三方应用unionid 4:企业主体/自建应用unionid 5:客户积分用户id 不传默认为企业主体/自建应用external_userid |
business_no | string | 是 | 业务单号 不能为空, 并且针对同一用户要具有唯一性 若无唯一业务流水,请生成具有唯一性的uuid传入 |
business_time | long | 否 | 业务时间 |
integral | int | 是 | 抵扣的积分值,传入正值,不能为空,最大不超过100,000 |
reason | string | 否 | 积分变更原因,最大不超过50字 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"success": true,
"remark": "fake_data"
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | |
success | bool | true代表成功 |
remark | string | 备注 |