# 用户补贴钱包流水查询

# 接口说明

用于按用户查询补贴流水,支持按核算单位查看;

# 请求地址

https://open.wecard.qq.com/cgi-bin/pay/provider/wallet-flow

# access_token 获取

参考 https://wiki.weixiao.qq.com/api/third/oauth/access_token.html

# 请求方式

GET

# 请求参数

参数 是否必填 类型 实例 说明
access_token String 应用有效凭证
start_date String 20231101 开始日期,格式为YYYYmmdd
end_date String 20231102 结束日期,格式为YYYYmmdd(仅能查询30天内的数据)
app_ids String 1010343033 需要查询的核算单位id,多个核算单位以英文逗号隔开
user_ids String 123,456 用户学工号,多个学工号以英文逗号隔开
wallet_ids String 123,456 钱包id,多个钱包以英文逗号隔开

请求示例

/cgi-bin/pay/provider/wallet-flow?access_token={{access_token}}&start_date=20231110&end_date=20231121&app_ids=1010343033E,1010343033N&wallet_ids=1010343033_99694617,1010343033_99679424&user_ids=2023001,boneyxiang

# 返回参数

参数 类型 说明
返回码 String 主体code
message String 返回说明
data date String 日期
appid String 核算单位id
app_name String 核算单位名称
user_id String 学工号
billno String 唯一交易单号信息
wallet_id Integer 钱包id
wallet_name String 钱包名称
type String 类型:order-订单支付;refund-订单退款;decr-扣减;present-发放;
amount Integer 发生金额(单位:分),正数表示余额增加, 负数表示余额减少
flow_time String 流水时间:2023-11-10 16:04:40

返回示例

{
  "code": 0,
  "data": [
    {
        "flow_time": "2023-11-10 16:04:40",
        "type": "present",
        "amount": 1000,
        "user_id": "18100760052",
        "billno": "owr76580e96e97d5d03ccc5009d6a89698f",
        "appid": "1010343033E",
        "app_name": "mikejliu核算单位2",
        "wallet_id": "1010343033_99694617",
        "wallet_name": "交大测试陈磊",
    }
  ],
  "message": "成功"
}