简体   繁体   English

查找 Stripe 付款中包​​含的费用

[英]Find charges contained in a Stripe payout

Given a Stripe Payout ( po_1BRxlK... ), how can I determine which charges are contained in this payout?给定一个 Stripe po_1BRxlK... ( po_1BRxlK... ),我如何确定此支出中包含哪些费用? Right now the balance transactions in the API seems like a complete mess.现在 API 中的余额交易似乎一团糟。

I've tried searching for all charges between two payouts, but due to the holding period of charges, there might be a shift of a few dates.我已尝试搜索两次付款之间的所有费用,但由于费用的保留期,可能会有几个日期的变化。 How would you recommend to match payouts with charges?您建议如何将支出与费用相匹配?

I can see that within the Stripe Dashboard, you can see all transactions in a payout, so I assume it's possible to get the same data somehow via the API.我可以看到在 Stripe Dashboard 中,您可以看到支付中的所有交易,因此我认为可以通过 API 以某种方式获取相同的数据。

Thanks in advance.提前致谢。

You can use the List all balance history endpoint to do that: https://stripe.com/docs/api/php#balance_history-payout您可以使用List all balance history端点来做到这一点: https : //stripe.com/docs/api/php#balance_history-payout

If you pass the payout id to the payout parameter you'll get back the list of all balance transactions aggregated in the payout.如果您将支付 ID 传递给payout参数,您将返回支付中汇总的所有余额交易的列表。 It only works with automatic payouts though.不过,它仅适用于自动付款。

You can achieve this by using Report API and API report type: balance_change_from_activity.itemized.1您可以通过使用报告 API 和 API 报告类型来实现此目的:balance_change_from_activity.itemized.1

For more info refer - https://stripe.com/docs/reports/financial-reports/api有关更多信息,请参阅 - https://stripe.com/docs/reports/financial-reports/api

Report Schemas - https://stripe.com/docs/reports/financial-reports/report-schemas报告模式 - https://stripe.com/docs/reports/financial-reports/report-schemas

For quick reference - you can view the payout reconciliation from dashboard under Reports section.为了快速参考 - 您可以从“报告”部分下的仪表板查看付款对帐。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM