#kv1traven_connect-api-requests

1 messages ยท Page 1 of 1 (latest)

burnt saffronBOT
#

๐Ÿ‘‹ 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.

bronze flicker
#

Hi ๐Ÿ‘‹

Can you restate your full question? I'm not sure I follow

cobalt vortex
#

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

bronze flicker
#

Okay. And these events exist on the Connected Accounts, correct?

cobalt vortex
#

yes

#

all the events are connect account events

bronze flicker
cobalt vortex
#

But we have around 100s of connect account do we need to do that for each of them individually ?

bronze flicker
#

Yes

#

I recommend writing some code to automate the process

cobalt vortex
#

Is it possible to replay all the connected accounts events some how that have occurred in past 24hrs without being account specific ?

bronze flicker
#

No

#

Since these events exist on each Connected Account, you will need to make requests where you specify the Connected Account

cobalt vortex
#

Okay just out of curiosity is there a reason why the main account cannot query all the connected accounts events directly ?

bronze flicker
#

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

cobalt vortex
#

Okay thanks I will raise a new query if I have any more questions.

#

Thanks for the help

bronze flicker
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚