#TryoMan - webhooks
1 messages · Page 1 of 1 (latest)
Unfortunately there is not a way to divide webhook endpoints by product. You will always be signing them up for events of certain kinds across the entire account
Can you tell me a bit more about what you are trying to differentiate there? Do each of these sites sell the same products?
Thank you for your answer Pompey !
No, we have two different website, selling two different product
On the Stripe account i have two different product and a global webhook
When website 1 sell one thing, the webhook push it to the global endpoint, and website 2 is also alerted, that is my problem
I have to distinct website 1 subscription and website 2 sells
It sounds like you may be able tohave each site store the IDs of the products that are relevant to it
Or maybe you can set metadata on each product and a site can pull that data to check if it is relevant to it
Indeed you can! 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.
You can set it on pretty much all of our API objects.