#newt-webhook-connect

1 messages · Page 1 of 1 (latest)

sudden spoke
#

Hello! @hollow hemlock is going to look

unreal obsidian
#

Thank you, @sudden spoke

#

@hollow hemlock Let me know if you need any more details

#

The webhook enpoint ids are:

#

Direct: we_1KqLTYDfcmTYbu9Y1QgiDXpI

#

Connect: we_1Jv3NeDfcmTYbu9Y2e9zV1wT

hollow hemlock
#

Thanks! Do you have the ID of an event that was delivered to both endpoints?

#

Also, just to clarify: You expect the "Direct" endpoint to be receiving just the webhooks from your account, and the "Connect" endpoint to be receiving both Custom and Standard account webhooks, correct? And what you are seeing is that the "Direct" endpoint is getting Custom and Standard webhooks in addition to your own account's?

unreal obsidian
#

Do you have the ID of an event that was delivered to both endpoints?
Ex. evt_3LOOapDfcmTYbu9Y1BJ1gPYE

#

Well, we were expecting the Direct webhook to receive the standard account webhooks.

#

We were also expecting the Connect webhook to receive the custom account webhooks.

hollow hemlock
#

Got it! To be clear, the Connect webhook endpoint will receive both standard and custom connected accounts' webhooks, and the Direct webhook endpoint should only receive webhooks from your platform account. The event you shared (evt_3LOOapDfcmTYbu9Y1BJ1gPYE) looks like it is related to a payment on your platform account. It was delivered to two endpoints that you set up as "Direct" endpoints: we_1KqLTYDfcmTYbu9Y1QgiDXpI and we_1Jv3KwDfcmTYbu9Yq9C5xptl

#

It sounds like you're trying to distinguish between the custom and standard account events, correct?

#

Unfortunately there's no way to tell from the event whether it's a custom or standard account. You'll either have to retrieve that account via the API to see what type it is or store that information in your own database.

unreal obsidian
#

Where can I find the account id reliably on an event?

hollow hemlock
unreal obsidian
#

But then why is evt_3LOOapDfcmTYbu9Y1BJ1gPYE not getting the account id?

sudden spoke
#

the account property is only for events on connected accounts which are sent to your own Connect webhook endpoint

#

when it's events about your own account then there's no account property, since you already know it's for your own account and it goes to your Account webhook endpoint

unreal obsidian
#

Let me see if I am fully following: This event is from a Connected Account (acct_1K1uYQRkhkuEuv6M)

#

but it is arriving to a Direct Webhook endpoint

#

we_1Jv3KwDfcmTYbu9Yq9C5xptl

#

Direct webhook endpoint should only receive webhooks from your platform account.
Why is it that a Direct webhook endpoint is receiving an event from connected account?

#

What am I missing here?

#

Is this event considered a platform account webhook even though we are setting "on_behalf_of"?

rugged pine
#

Hi there, stepping in for koopa as they needed to step away.

#

Yep, on_behalf_of does not change the account that the event takes place on.

#

So that is still a platform event even if you are setting on_behalf_of