#lucascheles

1 messages ยท Page 1 of 1 (latest)

solid tokenBOT
hearty kindle
#

Hi ๐Ÿ‘‹ the behavior you're describing is not possible. All events that match a type that a webhook endpoint is listening for will be sent to that webhook endpoint, this is expected behavior.

If you would like to filter out events from other applications/services, then you'll need to add a mechanism to track which application those events are from and add filter logic to your webhook endpoints to filter out events it considers irrelevant.

Our metadata parameter that exists on most objects could be a good place to track which application an object is related to:
https://stripe.com/docs/api/metadata

glass totem
#

1 - So the webhook events will be sent to all endpoints that I've registered in my account?

2 - By using metadata I can filter the event right after receiving it on my application. I should double check who has created it using the metadata attribute. Based on that I can decide to proceed or not. That's what you mean?

hearty kindle
#
  1. Yes, as long as the endpiont is listening for the type of event that was generated/triggered.
  2. Yup, exactly.
glass totem
#

ok, got it. Thank you so much.

hearty kindle
#

Happy to help!