Skip to content

getFundFlowBill

申请资金账单

使用示例

ts
import { WechatService } from 'nest-wxpay'
import { Injectable, Body, Post } from '@nestjs/common'
import type { FundFlowBillOptions, BillResponse } from 'nest-wxpay'

@Injectable()
export class Controller {
  constructor(private readonly wechatService: WechatService) {}

  @Post('found-flow-bill')
  async refund(@Body() options: FundFlowBillOptions): Promise<BillResponse> {
    return this.wechatService.getFundFlowBill(options)
  }
}

参数解析

FundFlowBillOptions

字段名类型是否必填用途
bill_datestring账单日期
account_type'BASIC''OPERATION''FEES'
tar_type'GZIP'压缩类型

返回参数

BillResponse

字段名类型是否必填用途
hash_type'SHA1'哈希类型
hash_valuestring哈希值
download_urlstring下载URL