#Aarti

1 messages · Page 1 of 1 (latest)

fallen merlinBOT
mighty jacinth
#

Is it possible to register multiple webhook endpoints for the same event?
You can do this

dense portal
#

But then does this mean that each endpoint will receive all the events generated? For example, the invoice.paid event - will all the webhooks receive this event?

mighty jacinth
#

Your webhook endpoints will receive only the events you configured them to receive. If you configured them all to receive invoice.paid events, then they all will receive those. You have complete control over this though

dense portal
#

okay so if I configured two endpoints to receive the invoice.paid event, both of them will receive the same event, right?

mighty jacinth
#

yes

dense portal
#

Got it. In case of registering multiple endpoints, there won't be any way to know the env that the webhook event belongs to though 🤔

mighty jacinth
#

You can use query params

dense portal
#

For example, if I have a test and a stage env, the event that I receive over one of my webhooks could belong to either test or stage

mighty jacinth
#

That's why we recommend separate accounts for staging and test

#

To keep all objects separate

dense portal
#

Hmm makes sense. Just wanted to check in with y'all too. Thank you! 💯