#sargis-trial-sub-update

1 messages · Page 1 of 1 (latest)

gusty gorge
#

hey there @serene bobcat -- can you share the API request you're making where you update the subscription?

serene bobcat
#

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

gusty gorge
#

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?

serene bobcat
#

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 ?

gusty gorge
#

Well what do you want to happen? do you want to end the trial, or extend it?

serene bobcat
#

no extend it

#

i want to update that trial with new billing period

gusty gorge
#

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

serene bobcat
gusty gorge
#

Ok so you do want to end the trial and start charging

serene bobcat
#

I got it thanks very much

gusty gorge
#

excellent 🎉