#ainsley_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1247657423389458432
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi there! I'm a little confused about what you mean by "next phase early". Why not transition a Schedule to the next phase if a customer accepts the offer?
So to be clear I want to add 2 years onto their subscription without effecting the amount of time currently left on their subscription. So if a user has a yearly subscription and 3 months left and they purchase a 2 year extension then they have 2 years and 3 months before they are charged another year. I was thinking of using the phases feature inside a subscription, but maybe there is a better way?
Got it. Is your goal to charge them for the 2 year extension when they accept the offer, or charge them for the 2 year extension at the end of the remaining 3 months?
When they accept the offer
I see hmm
I recommend playing around with this a bit. Schedules and Phases are likely the way to go here and adding a phase at the end of the 2 years that is a trial, where the phase length is the amount of time that was left in their original 1 year subscription
I see, so they start the 2 years with a trial for the extra days and then switch back to their old schedule
They'd start the 2 years immediately since you want to charge them at the point they accept the offer and you don't plan on using prorations for the remaining time on the yearly subscription. Then, you'd need to calculate how much trial time to tack on at the end of the 2 years (this would be as a phase), then you could add another phase for returning them to a 1 year price or a 2 year price
ok thanks
Phases can get complicated so, if you plan on working with them, I recommend using the API instead so all your start/end times line up as expected
Yes I'm using the API
Also is there a way to preview an invoice one_time purchase without including the subscriptions next rewnal price? I'm add a one_time price item in the line items and its returning two items.
I'm not sure I follow. Is your goal to preview a customer's next invoice in the case where you add a one-time item to their next recurring invoice?
This is actually a seperate issue, we have some one off purchases as well as subscriptions and the preview (through the API) is producing an invoice preview with everything and not just the one time item the customer wants to purchase