余额汇总 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) 时没有得到结果
发布评论