查询用户积分日志

拥有此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
    }
}

results matching ""

    No results matching ""