#Dev Błack

1 messages · Page 1 of 1 (latest)

old hollowBOT
quartz oar
#

👋 happy to help

clear karma
#

Hi!!

quartz oar
#

when a customer downgrades their subscription to fewer user licenses than the current number of users in their company?
where is that action happening?

clear karma
#

Customers can use the stripe customer portal to edit their subscription. Or choose another plan

quartz oar
old hollowBOT
clear karma
#

I want to allow this if the existing company users in my app are less than the new quantity number. And prevent this action if the existing company users are larger than the new quantity

ornate pagoda
#

👋 stepping in as tarzan needs to step away

#

So the question is how to prevent certain Subscription updates via the Customer Portal, yes?

clear karma
#

yes, if specific criteria are met in our applications database then it should allow this. If not then it should prevent it without charging the customer

ornate pagoda
#

Gotcha, so really this level of control isn't possible. You can only create Customer Portal configs with Subscription updates on or off.

#

The workaround would be to not allow quantity updates

#

And only allow Price updates

#

And then set the allowed Prices for update to be specific ones that satisfy your criteria.

clear karma
#

But I can't really see how this can help.
If a company has bought a subscription for 10 users. And already created those 10 users. The portal will still allow the customer to downgrade to the subscription with 5 users. And then I will have to deal with the extra 5 users that are now using my app for free. This is actually my problem

ornate pagoda
#

Hmm not sure I understand that at all.

#

If they downgrade from quantity 10 --> 5 why do they get 5 users using your app for free?

#

It would be a prorated charge at that point

#

With a quantity of 5 going forward?

#

And you would update your permissions to provide access to 5 instead of 10 for your product?

clear karma
#

Because they already have created 10 users within my application. And the goal is to prevent companies downgrading to a subscription with fewer users

#

I dont want to start deactivating users automatically.

ornate pagoda
#

Right well I explained above how the Customer Portal is not meant for this specific type of customization.

#

So your options are instead to not allow a quantity update and just allow Price updates. And the Price update can then represent a higher quantity

#

But really there is no great way to do exactly what you want -- Customer Portal doesn't support "only allow quantity upgrades and don't allow quantity downgrades" as a feature.

clear karma
#

I see. Thank you guys for your time. I really appreciate it. I guess I will have to find another way , maybe using the stripe API to refund the customer and cancel the quantity update and the roll them back to their old subscription. But it doesnt seem the right approach.

ornate pagoda
#

Yeah that will be a huge hassle. I'd either only allow updates in your App so you can control this more finely or limit the updates to specific Prices that are only upgrade options.

#

But obviously this is up to you!

#

I can file a feature request to add an ability like "only quantity upgrades" to our API

clear karma
#

That would be amazing!

#

Once again thank you so much guys! You really covered any gaps of information that I had