#sargis-trial-sub-update
1 messages · Page 1 of 1 (latest)
hey there @serene bobcat -- can you share the API request you're making where you update the subscription?
Hi thanks for response , will do it. One additional info also,
when i was updating the trial subscription product within that trial got updated but status remains the same
{
"items": {
"0": {
"id": "si_KSJ4MAJ2T00Oeq",
"price": "price_1J7xv7FyIPQ9wD9upSPzl4g8"
}
},
"proration_behavior": "always_invoice"
}
ohh i alredy got it i shoudl pass trial_end param in such scenarios
anyway thanks
Well, it depends on exactly what you want to do, but generally something like that yes
Did you figure out what you needed and get this working?
Let me describe littlie bi t deeper, i am creating trial subscription with some basic product after that i want to update that trial subscription with another product
Will passing trial_end work in this case ?
Well what do you want to happen? do you want to end the trial, or extend it?
so yes, to extend it you'd pass trial_end with a new timestamp to extend it to
what do you mean by billing period? there won't be any invoicing until the trial ends
Yes you are right i just wrong express my thoughts, I meant to update that trial subscription just as normal 'active' subscription with recurring billing cycle.
Ok so you do want to end the trial and start charging
in which case you can send trial_end=now when you make the update request
https://stripe.com/docs/api/subscriptions/update#update_subscription-trial_end
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 got it thanks very much
excellent 🎉