# 获取积分账户详情
说明: 至少填入1个客户id(union_id或external_userid)
请求方式:POST
请求地址:https://$basehost/gateway/qopen/GetPointsAccount
body参数:
{
"union_id": "微信平台的union_id",
"external_userid": "微信平台的客户的external_userid",
"plan_id": "积分方案id"
}
字段 | 类型 | 必填 | 说明 |
---|---|---|---|
union_id | string | 否 | 微信平台的union_id |
external_userid | string | 否 | 微信平台的客户的external_userid |
plan_id | string | 是 | 积分方案id |
返回值:
{
"data": {
"points": 0
},
"errcode": 0,
"errmsg": "",
"hint": ""
}
返回说明
字段 | 类型 | 说明 |
---|---|---|
errcode | int | 状态码,0为正常,非0代表错误 |
errmsg | string | 错误信息 |
data | json | json返回值 |
points | int | 当前可用积分 |
hint | string | 请求日志ID |
完整请求示例:
curl -X POST \
https://$basehost/gateway/qopen/GetPointsAccount \
-H 'Content-Type: application/json; charset=UTF-8' \
-H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
-d '{
"union_id": "微信平台的union_id",
"plan_id": "积分方案id"
}'
← [废弃]修改企业标签 群积分修改 →