#Peter Silie
1 messages · Page 1 of 1 (latest)
Is there a problem you're trying to solve?
I've got 2 webhook running which are connected. Both for different customers. I would like that only the events for the right customer is sending data to the webhook.
The Webbhooks need to be on different servers.
Both for different customers
What's a customer in this context?
So you've configured multiple webhooks on your platform account?
Why not just use a Connect webhook endpoint?
The two direct Webhooks (not connced) I do not need anymore. I will deactive them.
But I will need the two with the Type "connected".
I would like to define, which conneted account is using which webhook.
I think I am right, at the moment they are both firing on 'checkout.session.completed' regardless of the connected account.
Correct?
You can't, unfortunately. A Connect endpoint will receive events from all connected accounts. The way you can tell which account the event occurred on is via the account field on the payload: https://stripe.com/docs/connect/webhooks#:~:text=In addition to,is being sent.
Ah ok. That is what I was searching for. The ID of the connected account is send in the payload and so I can define, what to do with it.
Exactly
Ok, thanks, that is what I was searching for. Have a nice day.
you too!