查询退款统计
查询时间范围内退款笔数、退款金额,并返回退款单列表。旧版兼容:api.php?act=refund_stats
请求地址:
https://ep.bixulian.cc/api/merchant/refundStats
请求方式:
POST
请求参数说明:
| 字段名 | 变量名 | 必填 | 类型 | 示例值 | 描述 |
|---|---|---|---|---|---|
| 商户ID | pid | 是 | Int | 1001 | |
| 开始时间 | start_time | 否 | String | 2026-11-01 | 默认近30天,最大跨度93天 |
| 结束时间 | end_time | 否 | String | 2026-11-30 | |
| 每页条数 | limit | 否 | Int | 20 | 退款单列表分页,最大100 |
| 偏移 | offset | 否 | Int | 0 | |
| 当前时间戳 | timestamp | 是 | String | 1721206072 | 10位整数,单位秒 |
| 签名 | sign | 是 | String | ||
| 签名类型 | sign_type | 是 | String | RSA |
返回参数说明:
| 字段名 | 变量名 | 类型 | 示例值 | 描述 |
|---|---|---|---|---|
| 退款成功笔数 | refund_count | Int | 3 | pre_refundorder.status=1 |
| 退款金额合计 | refund_money | String | 30.00 | CNY |
| 已退款订单数 | order_refund_count | Int | 3 | 订单 status=2 |
| 退款单列表 | data | Array | refund_no/trade_no/money 等 |
