You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Stripe CLI触发reporting.report_run.succeeded时遇interval_start参数错误

解决Stripe CLI触发reporting.report_run.succeeded事件的日期参数错误问题

问题核心是Stripe CLI默认生成的interval_start参数值早于你的账户中balance.summary.1类型报告的可用数据起始时间(2023-12-19 00:00:00 UTC),导致触发失败。你可以通过--override参数强制指定符合要求的日期参数来解决:

正确的触发命令

使用stripe trigger时,通过--override参数覆盖默认的interval_start(以及可选的interval_end)参数值:

stripe trigger reporting.report_run.succeeded --override report_run.interval_start=1702953600 --override report_run.report_type=balance.summary.1
  • 这里的1702953600是2023-12-19 00:00:00 UTC对应的Unix时间戳,你也可以直接传入ISO格式的日期字符串,比如2023-12-19T00:00:00Z
  • 如果需要指定结束日期,可追加--override report_run.interval_end=1703040000(对应2023-12-20 00:00:00 UTC)

额外说明

  • 确保指定的interval_start不早于错误提示中给出的可用起始时间(2023-12-19 UTC)
  • 若需要测试其他报告类型,只需修改report_run.report_type的值为对应类型(比如payouts.1)
  • 触发成功后,Stripe CLI会输出事件详情,同时你的Webhook端点会收到对应的reporting.report_run.succeeded事件通知

内容的提问来源于stack exchange,提问作者Zabs

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 07:42:09