#azh-Connect-test-mode

1 messages ยท Page 1 of 1 (latest)

magic imp
#

Hi there!

#

What type of a webhook endpoint did you register?

distant kraken
#

account.application.authorized
account.application.deauthorized
account.external_account.created
account.external_account.deleted
account.external_account.updated
account.updated

magic imp
#

You have to register a Connect endpoint as opposed to a Direct endpoint in order to receive these events

#

You can also dictate it if you register the endpoint via the Dashboard

distant kraken
#

Oh! I see now. Can I use the same webhook URL for direct and connected accounts? I guess I shouldn't JIC I have Connect account and Direct account updates?

magic imp
#

You can use the same URL if you want. You will know it is a Connect webhook because the JSON will include an account property

#

But really up to you on that front

distant kraken
#

oh, which property is it? and will it just specify "direct" vs "connect" ?

magic imp
#

Take a look at the above doc I linked. You'll see on a Connect webhook:

 "id": "evt_SThNS9pNu6WV1f",
 "livemode": true,
 "object": "event",
 "type": "customer.created",
 "account": "acct_ODFSoGclM6zeSZ",
 "pending_webhooks": 2,
 "created": 1349654313,
 "data": {...}
}```
#

Notice that includes account

#

Which won't be present on a Direct Webhook (an event that takes place on your platform)

distant kraken
#

oh gotcha. that make sense. Thanks ๐Ÿ™‚

#

I also see that there was an API update on Aug 1. Do you have a link to the updates? I'm hoping Orders is in it

magic imp
#

Orders is supported across API versions, it isn't necessary to use the latest to use the Orders API

distant kraken
#

Is it still in Beta?

magic imp
#

Yes it is still in public beta

distant kraken
#

cool. Thanks so much ๐Ÿ™‚