#robertotmuniz
1 messages ยท Page 1 of 1 (latest)
As far as I know, yes. Where did you see that it's no longer going to be available through the Dashboard
I tried to add it and it doesn`t show anymore the option to add 7 days trial, for instance
Hmm, we're not Dashboard experts here, so it's hard to say what might be going wrong there. That being said, as far as I know, the API will always allow trials
Nice! thank you very much ๐
but trials on price and not only on subscription, right?
via API, I meant
There aren't trials on Price objects as far as I know
Where can I confirm that information? That is weird. Because I always used through dashboard and API adding trial periods on price
via API:
{
form: {
product,
unit_amount,
currency: "brl",
recurring: { interval: "month", interval_count: interval_count },
"recurring[trial_period_days]": trial ? trial : undefined,
},
headers: {
Authorization: `Bearer ${process.env.STRIPE_SECRET_KEY}`,
},
that is the property: recurring[trial_period_days]
What version are you on?
Current version doesn't have that: https://stripe.com/docs/api/prices/create#create_price-recurring
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think I am using an older version. Do I need to change the version for the new one or can I still use it?
You can use older versions, I just wanted to make sure that's what was happening.
As far as I know, older versions will always be usable in some capacity. If anything you use is sunsetted, then we're usually pretty good about send you email comms ahead of time
Okay!! Thank you
And can I change a price of a priceId through API when this price has already active subscriptions?
๐ No, you'd need to create a new price object
Okay, thank you!