使用Stripe CLI获取付款对账报告时添加日期参数报错求助
解决Stripe CLI添加
--interval_start参数报错的问题 你的问题核心是用错了命令:
stripe reporting report_types retrieve payout_reconciliation.itemized.5这个命令仅用于查询指定报告类型的元数据(比如支持的字段、版本信息),本身不需要也不支持--interval_start/--interval_end这类时间过滤参数,所以添加后会触发未知flag的错误。- 要生成带时间范围的付款对账报告,你需要使用
stripe reporting reports create命令,这才是创建具体报告并指定时间范围的正确操作。
正确的命令示例:
stripe reporting reports create --report-type=payout_reconciliation.itemized.5 --interval_start=1702944000 --interval_end=1705276800
额外注意:
- 确保你的Stripe CLI是最新版本,旧版本可能存在参数支持不全的问题,可执行
stripe update命令升级。 - 确认传入的时间戳是有效的Unix时间戳,格式无误。
内容的提问来源于stack exchange,提问作者Zabs
相关产品推荐
相关产品推荐

