#Vineet
1 messages ยท Page 1 of 1 (latest)
Can you share with me more about your use case?
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"
OK. why do you want to update after the end of the current period? is it because you want to prevent proration?
no its client comment so
If I were you, I'll put back and ask your client to understand what they really want.
For completeness. You can disable proration (https://stripe.com/docs/billing/subscriptions/prorations#disable-prorations) and update the subscription directly. So that the customer will be billed with the new price in the beginning of the next billing cycle.
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
You mean two subscriptions? tell me more about it/.
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
So what's your question?
so you told me "You can disable proration"
so its work with this plans?
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.
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so i have to replace create subcription to Create subscription schedules ?
Sorry I still don't understand your problem.
can i replace https://stripe.com/docs/api/subscriptions/create
this API to https://stripe.com/docs/billing/subscriptions/subscription-schedules#managing
question is that "can I start subscription with subscription schedule create API?
Yes you can use subscription schedule API to start a subscription.
that why i have two active subscriptions
Do you have the subscription IDs?
Normal subcription : sub_1McSwTBataYFhNKg5fmykij4
Schedule : sub_1McR8vBataYFhNKgJzLlWyQR
That's because you made two API calls. One subscription was created through Subscriptions API, and the other one was created through schedule
is there any way to create subscription API & update with schedule subcription update API ?
thank you brother sorry my english ๐
just last query
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
is there any way for subscription create to create subscription API & subscription update with schedule subcription update API ?
I'm not sure I understand you question here. Subscription Schedule creates/uses a Subscription behind
https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-subscription
ok