#Vineet

1 messages ยท Page 1 of 1 (latest)

bleak sedgeBOT
olive lava
#

Can you share with me more about your use case?

south echo
#

i will tell full senario give minutes

#

I have two plans
case 1 :
main thing is that "it would update after end of current subscription period"
i couldn't find any way for this case
case : 2
so i tried subscription schedule but there is a issue "there is two subscriptions of one user after updating shcedule"

olive lava
#

OK. why do you want to update after the end of the current period? is it because you want to prevent proration?

south echo
#

no its client comment so

olive lava
#

If I were you, I'll put back and ask your client to understand what they really want.

south echo
#

but it works with two plans ?

#

And i have more query "subscription schedule create & normal subscription start" is it common?
both has same params so

olive lava
#

You mean two subscriptions? tell me more about it/.

south echo
#

i have 2 plans
1: month / half yearly / yearly
2: 100 strips/ 200strips/ 300 strips

so in case of half yearly
the strips price will change
diffrent prices in different periods

olive lava
#

So what's your question?

south echo
#

so you told me "You can disable proration"
so its work with this plans?

olive lava
#

If you are asking whether you can disable proration when updating the subscription, the answer is yes and you can find more details in the doc that I share earlier.

However, I don't quite understand the billing model that you describe in plan 2.

south echo
#

so plan 2 is device which we can use in blood test
In this image two subscriptions

explain:
step 1:
https://stripe.com/docs/api/subscriptions/create
with use of this we start subcription after devices delivered

step 2:
after subscription start we can update it so we days ago i discussed with stripe dev right here there were told to use subcription schedule
so for update subs.
integrate schedule create and after schedule update its works but there is two active subscriptions of one user

#

so i have to replace create subcription to Create subscription schedules ?

olive lava
#

Sorry I still don't understand your problem.

south echo
#

question is that "can I start subscription with subscription schedule create API?

olive lava
#

Yes you can use subscription schedule API to start a subscription.

south echo
#

that why i have two active subscriptions

olive lava
#

Do you have the subscription IDs?

south echo
#

Normal subcription : sub_1McSwTBataYFhNKg5fmykij4
Schedule : sub_1McR8vBataYFhNKgJzLlWyQR

olive lava
#

That's because you made two API calls. One subscription was created through Subscriptions API, and the other one was created through schedule

south echo
#

is there any way to create subscription API & update with schedule subcription update API ?

south echo
forest turret
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

south echo
#

is there any way for subscription create to create subscription API & subscription update with schedule subcription update API ?

forest turret
south echo
#

ok