#TazI1I - Subscription Webhooks

1 messages · Page 1 of 1 (latest)

stoic dove
#

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?

sly owl
#

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

stoic dove
#

Can you give me the Event ID so I can take a look? Should start with evt_.

sly owl
#

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

stoic dove
sly owl
#

but i want the product name

stoic dove
sly owl
#

there is no product name in the json request ?

#

in this request ?

#

maybe plan nickname ?

stoic dove
#

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.

sly owl
#

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

stoic dove
#

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.

sly owl
#

ok perfect thank you for your clarification

#

good night from FRANCE

#

see you soon