首页 > 解决方案 > 如何获得条带连接帐户的总支出?

问题描述

有没有办法获得每个条带连接帐户的总支出?

我的意思是仍在传输到银行的付款金额。不是完成的。

在条纹仪表板上,我可以确认每个连接帐户的金额,但我不确定如何使用 API 在我的应用程序上获得该金额。

标签: stripe-payments

解决方案


我相信您在检索关联账户的支付列表时必须指定关联账户 ID 和外部账户 ID。

Stripe::Payout.list({destination: external_account_id}, {stripe_account: connected_account_id})

当您检索特定的一笔支出时,如下所示。

好的:

Stripe::Payout.retrieve('po_**********', {stripe_account: 'acct_**********'})

坏的:

Stripe::Payout.retrieve('po_**********')

推荐阅读