# 充值流水推送

# 接口说明

  • 建议每天0点10分启动定时任务推送昨天的充值流水,需确保凌晨1点前完成推送。
  • 数据以 billno 为唯一标识,如出现重复,以最后推送的一条为准。
  • 如数据量大,需多次调用数据推送接口分批推送。该接口限制每批最多推送100条。

# 接口地址

https://open.wecard.qq.com/cgi-bin/pay/provider/recharge/push-flows

# 请求方法

POST

# 请求参数

access_token=[鉴权token]

参数 是否必填 类型 实例 说明
access_token String 应用有效凭证

# 请求body(json)

参数 是否必填 类型 示例 说明
statis_date String 20220812 数据日期
flows String [{"device_id":"xxx","trade_time":"2022-08-12 09:00:00"}] 流水数据。由 Flow 组成的数组,json格式,Flow 字段详情见下方说明

# 流水 Flow 说明

参数 是否必填 类型 示例 说明
billno String 账单唯一标识,即充值接口里面的billno
device_id String 设备ID
trade_time String 2022-08-12 09:00:00 交易时间(北京时间)
user_id String 学号
flow_type String 类型
amount Integer 100 金额(分)
status String 状态

# 响应说明

{
  "code": 0,
  "data": null,
  "message": "成功"
}