查询用户积分日志
拥有此API的权限集 |
---|
积分管理-查询 |
请求方式及url
- 请求方式:
POST
- 请求头:
Content-Type:application/json
- 接口地址:
https://api.xiaoe-tech.com/xe.account.flow.list/1.0.0
- 频率限制:
10秒500次
在线调试工具
请求
响应
请求参数
参数名 | 必选 | 类型 | 说明 | 备注 |
---|---|---|---|---|
access_token | 是 | string | 专属token | ... |
flow_id | 否 | string | 流水ID | ... |
user_id | 否 | string | 用户ID | ... |
account_type | 是 | string | 账户类型 | INTEGRAL-用户积分 COURSE-用户课程 |
business_type | 否 | string | 业务类型 | 具体参数详见业务类型说明 、不传表示全部 |
flow_type | 否 | int | 流水类型 | 1-加、2-减、3-冻结中、不传表示全部 |
page | 否 | int | 当前页数 | 默认第1页 |
page_size | 否 | int | 每页返回条数 | 默认每页10条 |
year_month | 否 | string | 查询年月 | 格式:2025_05;默认当前月份 |
请求示例
{
"access_token": "xe_xxxxx",
"flow_id ":"",
"user_id":"u_5cb6c94d7dcb9_6CKEkzsFeX",
"account_type":"INTERGRAL",
"business_type":"LEARN_TASK",
"flow_type ": 1,
"page":1,
"page_size":10,
"year_month":"2025_05"
}
返回参数
参数名 | 必选 | 类型 | 说明 | 备注 |
---|---|---|---|---|
code | 是 | int | 返回码 | 0为成功,其它为失败,具体错误码详情见说明 |
msg | 是 | string | 消息详情 | ... |
data | 是 | json对象 | 返回值 | 具体内容见下表data说明 |
返回data字段参数
参数名 | 必选 | 类型 | 说明 | 备注 |
---|---|---|---|---|
list | 是 | array | 日志详情数据list | ... |
list.id | 是 | int | 主键ID | ... |
list.business_id | 是 | string | 业务ID | ... |
list.flow_id | 是 | string | 流水ID | ... |
list.app_id | 是 | string | 店铺ID | ... |
list.user_id | 是 | string | 用户ID | ... |
list.flow_type | 是 | int | 流水类型 | 1-加、2-减、3-冻结中 |
list.business_type | 是 | string | 业务类型 | 具体参数详见说明备注 |
list.flow_count | 是 | int | 变更数量 | ... |
list.business_source | 否 | string | 业务订单来源 | 订单ID |
list.freeze_day | 否 | int | 冻结期 | ... |
list.remark | 否 | string | 发放原因 | ... |
list.balance | 是 | string | 积分 | ... |
list.created_at | 是 | string | 创建时间 | ... |
list.source_id | 否 | string | 来源业务ID | ... |
list.extend_json | 否 | string | 扩展字段 | ... |
page | 是 | object | 分页数据 | ... |
page.current_page | 是 | int | 当前页码 | ... |
page.last_page | 是 | int | 最后页码 | ... |
page.page_size | 是 | int | 每页数量 | ... |
page.total | 是 | int | 数据总数 | ... |
month_total_grant | 是 | int | 当前月发放积分总数 | ... |
month_total_consume | 是 | int | 当前月消费积分总数 | ... |
返回示例
{
"code": 0,
"msg": "success",
"data": {
"list": [
{
"id": 237955759,
"business_id": "",
"flow_id": "flow_682ed471261bb_QMmAHeMkoK71",
"app_id": "appa56i4dxr9741",
"user_id": "u_680dced16f088_qCfTl3V9OT",
"flow_type": 1,
"business_type": "LEARN_TASK",
"flow_count": 1,
"business_source": "task_study",
"freeze_day": 0,
"remark": "2025-05-22 学习时长+5分钟",
"balance": 279,
"created_at": "2025-05-22 15:34:52",
"source_id": "",
"extend_json": ""
},
{
"id": 237777599,
"business_id": "",
"flow_id": "flow_682ed3b3805a9_vngQDZvrYZ89",
"app_id": "appa56i4dxr9741",
"user_id": "u_680dced16f088_qCfTl3V9OT",
"flow_type": 1,
"business_type": "LEARN_TASK",
"flow_count": 1,
"business_source": "task_study",
"freeze_day": 0,
"remark": "2025-05-22 学习时长+5分钟",
"balance": 278,
"created_at": "2025-05-22 15:29:52",
"source_id": "",
"extend_json": ""
},
{
"id": 237545672,
"business_id": "",
"flow_id": "flow_682ed235eadb2_KZGLTgaCJj64",
"app_id": "appa56i4dxr9741",
"user_id": "u_680dced16f088_qCfTl3V9OT",
"flow_type": 1,
"business_type": "LEARN_TASK",
"flow_count": 1,
"business_source": "task_study",
"freeze_day": 0,
"remark": "2025-05-22 学习时长+5分钟",
"balance": 277,
"created_at": "2025-05-22 15:24:53",
"source_id": "",
"extend_json": ""
}
],
"page": {
"current_page": 1,
"last_page": 1,
"page_size": 10,
"total": 3
},
"month_total_grant": 3,
"month_total_consume": 0
}
}