#TazI1I - Subscription Webhooks
1 messages · Page 1 of 1 (latest)
Hello!
but i need name plan and in the request :
"nickname": null,
"product": "prod_LdMfrAJlqLKw1g",
Are you saying you need the name of the Product when you receive the Event?
I need the name of the plan
but in the request in json format nickname is NULL
yes , i need the name of the product
Can you give me the Event ID so I can take a look? Should start with evt_.
evt_1L61BDE37gDY06V3VuCV3ydg
THe name of this product is Starter but in the json request i have only product id and the nickname is not set
There's no nickname set on that Price. You would need to update it with one: https://stripe.com/docs/api/prices/update#update_price-nickname
but i want the product name
If you want the name of the Product instead of the nickname for the Price you would need to retrieve the Product from the API after you get the Event: https://stripe.com/docs/api/products/retrieve
there is no product name in the json request ?
in this request ?
maybe plan nickname ?
You mean in the customer.subscription.update Event delivered to your server? No, the Product name is not included in that payload, you would need to get it another way. Most people store the Product name locally in their own database and then look it up via the ID in the Event.
as an other table in database for subscription "name|prod_ejr..."
ok this is a solution, I thought stripe would have sent me directly the name and id
Not in that Event, no. You can fetch it from the API or keep a reference locally, but it won't be in that Event.