# 群积分修改

说明: 至少填入1个客户id(union_id或external_userid)

请求方式:POST

请求地址:https://api.aquanliang.com/gateway/qopen/UpdatePointsAccount

body参数:至少填入1个客户id(union_id或external_userid)

{
  "union_id": "微信平台的union_id",
  "plan_id": "积分方案id",
  "points": 1,
  "remark": "备注",
  "external_userid": "微信平台的客户的external_userid"
}
字段 类型 必填 说明
union_id string 微信平台的union_id
plan_id string 积分方案id
points int 消费积分
remark string 备注, 不能为空
external_userid string 微信平台的客户的external_userid

返回值:

{
  "data": {},
  "errcode": 0,
  "errmsg": ""
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息

完整请求示例:

curl -X POST https://api.aquanliang.com/gateway/qopen/UpdatePointsAccount \
     -H 'Content-Type: application/json; charset=UTF-8' \
     -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
     -d '{
             "union_id": "微信平台的union_id",
             "plan_id": "积分方案id",
             "points": 1,
             "remark": "备注"
         }'