#leanfucio
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
hello! why do you want to change the Price id?
So the goal is to change the price for all subscriptions (that uses a specific product). But our prices have custom id (human-readable) so when I create a new price I want it to be human-readable too.
Is it possible in Dashboard/
where do you want it to be human readable? Do you mean you want it to be human readable in your own system, or in the Stripe Dashboard?
Both actually. Here's how we do it.
We create price id in our system (generate the price id from <type of subscription> + <billing interval>), if it doesnt exist, we create one. if it does, we just get it. and use the id to attach it to a subscription.
now in this task, I want to create a new price in the dashboard with a custom price id. and use that price id to all subscriptions. The problem is back in the system, if the price if is something like price_136sJ74RabcdFR5Y18jHDgAE, I can't generate the price id from <type of subscription> + <billing interval> to use the new price.
I don't know if I explain it clearly. but all I want to say is I want a custom price id, our system and my script can use . whether while creating it or updating it. in the Dashboard
you can set a lookup_key : https://stripe.com/docs/api/prices/create#create_price-lookup_key which you can use to retrieve the corresponding Price id : https://stripe.com/docs/api/prices/list#list_prices-lookup_keys. However, when you create a Subscription, you would still need to use the actual Price id (not the lookup_key)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.