调用 Stripe 的余额汇总 API(Node JS) 时没有得到结果

编程入门 行业动态 更新时间:2024-10-04 21:29:54

调用 Stripe 的<a href=https://www.elefans.com/category/jswz/34/1764564.html style=余额汇总 API(Node JS) 时没有得到结果"/>

调用 Stripe 的余额汇总 API(Node JS) 时没有得到结果

我想获得我的条纹交易的余额摘要。所以我使用了余额汇总API。

结果在这里为空

{
  id: 'akdgfajhdja',
  object: 'reporting.report_run',
  created: 1683696387,
  error: null,
  livemode: true,
  parameters: {
    columns: [ 'category', 'description', 'net_amount', 'currency' ],
    interval_end: 1682879399,
    interval_start: 1680287401,
    timezone: 'America/Los_Angeles'
  },
  report_type: 'balance.summary.1',
  result: null,
  status: 'pending',
  succeeded_at: null
}

这是创建报告的代码

let reportRun = await stripe.reporting.reportRuns.create({
      report_type: "balance.summary.1",
      parameters: {
        interval_start: data.startDate,
        interval_end: data.endDate,
        timezone: "America/Los_Angeles",
        columns: ["category", "description", "net_amount", "currency"],
      },
    });
console.log(reportRun);
回答如下:

更多推荐

调用 Stripe 的余额汇总 API(Node JS) 时没有得到结果

本文发布于:2024-05-30 22:26:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1770990.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:余额   Stripe   API   JS   Node

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!