#mason-terry_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1461027198462066718
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
There's not really an easy way to do this unfortunately. What you can do though is look at the balance transaction associated with the charge: https://docs.stripe.com/api/charges/object#charge_object-balance_transaction . That balance transaction will have an available_on date: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-available_on indicating that the charge should be paid out on that date. So you can then use the list payouts api to filter payouts by that available_on date via the arrival_date filter: https://docs.stripe.com/api/payouts/list#list_payouts-arrival_date
If you need this information reliably, we really recommend you save this information in your database instead. The idea is that you would save a record of all your transactions in your database and then have a column that explicitly represents which Payout contained that transaction. You can stay up-to-date by listening to the payout.created Events and for each one check what is bundled in it via: https://docs.stripe.com/payouts/reconciliation and save it in your database. You can also run a script that will backfill this information if you didn’t collect it at first so that, moving forward, you never have to guess and have, for all transactions, the id of the Payout that contained it.