#dorian_subscription-intervals-futurestart
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dorian6730_api, 15 hours ago, 32 messages
- dorian_subscription-invoice, 18 hours ago, 63 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1248688193885176020
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi ๐
I don't think so but let's talk through your scenario
The problem, as I see it, is that we don't allow you to do partial intervals so you couldn't use month
https://docs.stripe.com/api/subscriptions/create#create_subscription-items-price_data-recurring-interval
You could use the week interval and an interval count of 2 but that would drift away from the 15th and the last day of the month pretty quick.
And I am assuming you want this to run automatically and bill up front?
Yes thats correct
I'm trying to think through any of the recurring pricing models we document here: https://docs.stripe.com/products-prices/pricing-models
to see if they would perhaps allow a more nuanced approach
Alright, if that works for you that's probably the easiest approach here.
Another question please. Can you explain what drives the start_date parameter in the create subscription response? I dont see that as an input parameter in the docs.
Im trying to figure out how I can submit a subscription today that doesnt charge the first invoice until a future date
A subscription start date by default is the same date the subscription is created. If you want to start your subscription in the future, I recommend you look into using Subscription Schedules. Starting susbcriptions in the future is the first use case we describe here: https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases
OK thanks
Happy to help ๐
dorian_subscription-intervals-futurestart
So the schedule and subscription are two different objects? I create the schedule with a future start date, and when that start date arrives the sub object is created? Im also trying ot understand the end_behavior parameter on the schedule. I want the sub to persist indefinitely, until the user cancels it. I dont think I need the schedule to persist though right? I only need it once, to create the sub on the schedule start_date?
Okay, yes. The schedule is only needed to persist as long as you have plans to make changes.
If you set the end_behavior to release then, when the last schedule phase ends it will just continue the subscription in that last state until canceled
OK thanks. Im not understanding the concept of phases. I only need one phase, correct?
Also, if I only save the schedule ID, can I always look up the associated sub ID to make changes in the future? Even when the schedule 'ends' (not sure what that means either)?
OK thanks. Im not understanding the concept of phases. I only need one phase, correct?
In your case yes. The concept of phases are that each phase represents a different configuration for the subscription. Schedules are designed to allow for many changes to be set in the future. E.g. if you wanted to charge an "intro" price for say 5 months, then change to a higher price, and then do something else after another N months.
if I only save the schedule ID, can I always look up the associated sub ID to make changes in the future? Even when the schedule 'ends' (not sure what that means either)?
The schedule will still link to the Subscription so you can use the ID. When the schedule "ends" is when the last phase has completed and the underlying subscription either cancels or is released.
Thanks. What determines when a phase is completed? And when the subscription is released, can I still modify the subscription using the schedule ID?
What determines when a phase is completed
The billing cycle period and number of iterations. E.g. if you use a price with a per month billing cycle and the phase has iterations of 1, then the phase is complete after 1 month
And when the subscription is released, can I still modify the subscription using the schedule ID?
No