#jchannon

1 messages ยท Page 1 of 1 (latest)

burnt shuttleBOT
rain maple
#

๐Ÿ‘‹ happy to help

#

would you mind sharing your webhook endpoint id?

young terrace
#

we_1LaLNgAT2irRycsW2otuK7Dj

rain maple
#

taking a look

#

ok so your webhook endpoint is in test mode

#

while the event account.updated that you produced is in live mode

young terrace
#

how do i test account.updated whilst i'm in test mode?

rain maple
#

I'm not sure you can

#

what are you trying to achieve?

young terrace
#

ah so i went to the account details page and flipped it to test mode

#

changed the values

#

still no webhook

#

i'm just trying to test my code on an account.updated event/webhook

#

if i update a connected account will it fire?

rain maple
#

this is exactly why I asked what are you trying to achieve

#

you're testing account.updated event on your own account where in fact what you need is to get a webhook event for when a Connected Account account.updated event is fired

young terrace
#

yeah

rain maple
#

this is a very common confusion amongst our users and we're sorry about that

#

you need to create another webhook endpoint but this time specify that you want to listen to the Connected Account events

young terrace
#

well my webhook i sent above listens to all events so it should be ok?

rain maple
#

no that's not ok

#

that's what I'm trying to explain, we have 2 different types of webhook endpoints

#

a webhook endpoint that listens to your own account (the one you created)

young terrace
#

gotcha

rain maple
#

and another type which listens to the Connected Acccounts events

#

exactly!

young terrace
#

brill thanks!

rain maple
#

๐Ÿ‘

#

and this time to test it you need to update something on the Connected Account linked to your platform in test mode

young terrace
#

yup, thanks, still not sure why my account changes didnt fire the webhook though

rain maple
#

because when you update your own account it creates a live mode event but you are only listening to test mode events

young terrace
#

ah ok

#

if i setup a new webhook endpoint, can I point it to my existing url or does the url need to be unique

#

ah i can add the existing url

#

cool

#

hmm, no worky

#

we_1M2CfJAT2irRycsWMR70WorN

rain maple
#

what did not work exactly?

young terrace
#

i updated a connected account website and name, and i dont see a webhook

#

acct_1LwRHPPIaHTHpwly

rain maple
#

looking into it, just give me a minute

young terrace
#

thanks, appreciate it

#

hmm, the UI doesn't seem to be saving the new details i added

#

maybe cause it's marked as Complete?

rain maple
#

actually what happened is that we're sending you the event, but you're code is not responding correctly

#

we actually did send the event twice and we received a 400 from your url

young terrace
#

but i don't see any errors on the webhook page

rain maple
#

refresh your page, I'm able to see both events that failed

young terrace
#

bloody js frameworks! ๐Ÿ™‚

#

thanks, i see them now

rain maple
#

perfect! I will leave you in the good and capable hands of my colleague @tulip hazel for any further inquiry

young terrace
#

thanks, all sorted now!

tulip hazel
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

young terrace
#

thanks, all good now!