#hjtrhodes_webhooks
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/1275033474096566293
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! what exception exactly?
also you should do this based on the https://docs.stripe.com/api/events/types#event_types-payout.reconciliation_completed event not the .created. event I would say. That's probably the issue.
It's an internal exception in our system.
When we recieve the payout.created we currently create our own payout object so we can display the payout amount, at the same time we trigger that report run.
So instead we should create our report on payout.created then listen for payout.reconciliation_completed and use that to trigger the report run?
From the initial payout.created how long is it until that payout.reconciliation_completed? Obviously it takes 3 days ish for the payout to actually arrive but we want to download the report before the payout actually arrives in the account if that's possible?
I think the correct integration is not to use those events, it's to listen to reporting.report_type.updated , check if the payout_reconciliation.by_id.itemized.1 report is available, and then you can run it
Okay so separate the payout.created logic and listen specifically for reporting.report_type.updated which would be available at around a 12 hour interval.
The docs specify 'A reporting.report_type.updated webhook is sent as soon as a new day’s data is available for a given report type.'
How and when do we give the report type?
As previously we had been inititating a ReportRun for the specific report and specifying the type in the request but this sounds like Stripe needs to know the report type we want so it can tell us when the report is ready
How and when do we give the report type?
you don't have to, you get multiple events each day , one for all the possible types on Stripe