#kv1traven_connect-api-requests
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/1384583815636451451
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kv1traven_webhooks, 56 minutes ago, 5 messages
- kv1traven_webhooks, 5 hours ago, 7 messages
Hi ๐
Can you restate your full question? I'm not sure I follow
Hey,
We are trying to refund some connected invoices that have processed in past 24 hrs. We use webhooks to set payment status and enrollment in product and due to a bug, some payments went through yesterday and we dont have enrollment for them. We basically want to retrieve all the events that went through in last 24 hrs across all our connect accounts and issue refunds on a few of them.
The events related to the webhook type invoice.payment_succeeded
Okay. And these events exist on the Connected Accounts, correct?
Okay so you will need to make requests to retrieve the Events from each Connected Account using the Stripe Account header: https://docs.stripe.com/api/connected-accounts
But we have around 100s of connect account do we need to do that for each of them individually ?
Is it possible to replay all the connected accounts events some how that have occurred in past 24hrs without being account specific ?
No
Since these events exist on each Connected Account, you will need to make requests where you specify the Connected Account
Okay just out of curiosity is there a reason why the main account cannot query all the connected accounts events directly ?
Because that isn't how we built the API. The way the authentication between Platform and Connected Account works requires that you specify and individual account ID and we check if you have the permissions to access that account's data
Okay thanks I will raise a new query if I have any more questions.
Thanks for the help
Happy to shed what ๐ก I can ๐