#mxp_best-practices

1 messages ¡ Page 1 of 1 (latest)

acoustic vineBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1373009172718686269

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

hasty lichen
#

What's the end goal? Just to reduce the quantity to 4 after the first month? Or would you want to schedule a decrease in quantity more than 1 month out?

ivory sapphire
#

The goal is to reduce the quantity to 4 at the end of the billing period when a customer removes a user from their account

hasty lichen
#

Ah then you shouldn't need a subscription schedule

#

You just need a regular subscriptoin update where you decrease the quantity. You can pass proration_behavior=none so that the update doesn't happen until the next invoice/billing cycle

ivory sapphire
#

We are currently doing that, but for upgrades, we apply a proration, not for downgrades. If a customer removes 1 user (from 5 to 4) at the beginning of the period and adds two more later in the same period, this results in proration behavior that is difficult for the customer to understand, even for us.
Using the schedule for downgrade, I plan to apply proration for upgrades and set up a schedule for the next period for downgrade. Regarding the previous example :

  • on downgrade from 5 to 4 : create a schedule with phase one identical, and second phase start at period end and with 4 users
  • on upgrade from 4 to 6 : update schedule second phase to start now with quantity 6, and proration always invoice
hasty lichen
#

Ahh ok thanks for that additional context

#

So yeah you shouldn't have to worry about end date

#

You can just set iterations to 1

ivory sapphire
#

I am concerned about the end date of phase one or the start date of phase two. When I want to match the billing anchor for a downgrade, do I need to compute the date myself, which is prone to error and might cause proration? or trigger right after the subscription renewal (without the downgraded quantity)? I would like to use the current_period_end, but it has been removed from the subscription and moved to the subscription items, right ?

hasty lichen
#

You don't need to worry about date at all

#

If you use iterations instead of end_date and pass 1, then the second phase will start at the end of the billing cycle on your normal billing cycle anchor

#

You really only need to worry about calculating date if you want to change the billing cycle anchor to something different or switch the billing cadence

#

But in your case, you can get away with just passing iterations instead of end_date

ivory sapphire
#

ok, when I create a schedule from a subscription, I will have an existing phase matching the subscription. I will update this phase to iteration 1 and add a new one with the updated quantity and iteration 1 as well, so it will be released at some point?

hasty lichen
#

I think iterations is automatically set to 1 for the first phase when you do that

#

But recommend testing in test mode

#

But yeah you'll need to add a second phase

ivory sapphire
#

Ok perfect I'll try that thank you. On last thing, I understand that we can have subscription items with different billing period. When I try to create one in the dashboard I have a warning :

change the billing mode in Advanced Settings to flexible.
I cannot find this settings in my dashboard, do I need to update the API version before ?

hasty lichen
#

So you need to reach out through the form there

ivory sapphire
#

Ok my bad, I'll take a look
Thank you for your help