#anthony_entitlements-product
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1260698882090991627
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Is it possible to listen to product.updated when we add a feature to a product.
Have you tried in Test mode? If so can you provide more details such as your exact code, the Event id, what's not working?
Is it possible to assign the feature to a customer for existing subscription of a product?
I don't really get the question unfortunately. I think I need more details about what you are doing, your code, which doc(s) you are following, etc.
I added a feature/entitlement to a product, and i''m expecting to receive product.updated event but it is not getting triggered. when i update the product metadata it does trigger the event for example
That was triggered after updating the metadata
Is there any way to achieve the same after attaching the feature to a product?
Gotcha, no that wouldn't happen. The Product isn't really updated in that flow, a ProductFeature or an Entitlement are separate API resources.
So there's not way to know if a feature was added to a product ๐ฆ
I'm still sturggling to follow you unfortunately. Are you a developer writing code? Just clicking in the Dashboard? Are you following a doc?
Sorry it's a bit too meta for me and that API is brand new
I'm a developer
sorry I asked multiple separate questions. Can you answer all of those and provide a lot more context in one message so I can help you further?
As a developer, i'm working on test mode. I'm not writing any code yet, i'm still figuring things out about this feature/entitlement api.
Basically, one of the things i need to know is, is there any event i can listen to, to know when my product had a feature added or updated?
Yeah the problem is that you're deep in something and haven't really provided much details. There isn't a Product id, a request id, I don't see what you see and there are dozens of ways to integrate our products and APIs and I rarely touch the Dashboard myself so I don't know where you are even looking.
I'm definitely happy to help but would need a bit more context from you to help you
This is the list of event https://docs.stripe.com/api/events/types which one can i listen to, that notifies me about a feature added to a product?
Basically i have a webhook that listens to stripe events
And what I mean about adding a feature to a product https://docs.stripe.com/billing/entitlements#assign
yeah but you just said you wrote no code and just clicked around ๐
I haven't write any code to integrate the ENTITLEMENTS api, because first i need to understand how it works to see if it matches my requirements
sure sure sorry, we're running in circles
But I tried that code on that doc and can confirm there's no Events being triggered for any of this unfortunately. It'd be a feature request you can flag to our support team: https://support.stripe.com/contact
anthony_entitlements-product
My understanding though is that this is more part of a "product catalog" set up for your integration where you own code will create those and link them so an Event shouldn't be required though I do agree having Events for all the objects would be best
About this question: is it possible to assign the feature to a customer for existing subscription of a product?
The docs you shared say
Existing subscriptions will create active entitlements for any product feature changes at the start of the next billing period.
Let's say I have a user with a subscription of a product for a year. if i add a feature to a product. is the feature added to existing subscription or only for new subcriptions ?
Yes, just saw it
You updated the docs a few minutes ago ๐ ๐
lol