#elianbraja
1 messages · Page 1 of 1 (latest)
Hello! No, I don't believe so. That's an API-only feature as far as I'm aware. Not seeing a way to edit it in the Dashboard.
ok, is there any way I can get the plan product name from the webhook. I can see just the product_id but not the name
Taking a step back, what are you trying to do?
Like which Event are you receiving via webhook? What are you trying to build?
yes when I receive the customer.subscription.created event I want to know the product name
is there any way?
You would need to retrieve the Subscription with the Product(s) expanded: https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-price-product
yes but is a webhook
stripe decides how to send the webhook
where should I specify the extend?
You would make the retrieve API call after receiving the Event. You can't expand ahead of time.
- Receive `customer.subscription.updated
- Retrieve Subscription from the API with expansion options
Also I want to know can I use the lookup key instead of the price id for the API calls?
What is the purpose of the lookup key?
You can list Prices by their lookup keys: https://stripe.com/docs/api/prices/list#list_prices-lookup_keys
I am interested to create a new subscription item but instead of providing the price_id I want to provide the lookup_key
You would need to look up the Price using the list API I linked to above to get the Price ID, and then use that when creating the Subscription.