#lucascheles
1 messages ยท Page 1 of 1 (latest)
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
- Yes, as long as the endpiont is listening for the type of event that was generated/triggered.
- Yup, exactly.
ok, got it. Thank you so much.
Happy to help!