Hi,
I wanted to change the subscription count of my customers at the end of the cycle.
So basically if a customer has 10 subscriptions and wants to downgrade to 7, I would like to update the subscription count at the beginning of the next subscription cycle.
Right now I did not find a way to do this. I could only manage to make the billing happen at the beginning of the next cycle instead of restarting the cycle(which is part of what I want), but then the subscription count is changed immediately, so my customer would be paying for 10 subscriptions while only having access to seven.
I could not find a way to do this, if there is, please let me know.
If there is no way of doing this, I thought the way to implement it could be to create a new nullable column called next_quantity or something like that, which would specify how many subscriptions will there be in the next cycle. Then create a new function updateQuantityNextCycle that would set this new field and create a new order_item inline with the new quantity.
This approach is very similar to the one that is currently taken with swapNextCycle().
Thank you very much for your time and attention,
Pablo
Hi,
I wanted to change the subscription count of my customers at the end of the cycle.
So basically if a customer has 10 subscriptions and wants to downgrade to 7, I would like to update the subscription count at the beginning of the next subscription cycle.
Right now I did not find a way to do this. I could only manage to make the billing happen at the beginning of the next cycle instead of restarting the cycle(which is part of what I want), but then the subscription count is changed immediately, so my customer would be paying for 10 subscriptions while only having access to seven.
I could not find a way to do this, if there is, please let me know.
If there is no way of doing this, I thought the way to implement it could be to create a new nullable column called next_quantity or something like that, which would specify how many subscriptions will there be in the next cycle. Then create a new function updateQuantityNextCycle that would set this new field and create a new order_item inline with the new quantity.
This approach is very similar to the one that is currently taken with swapNextCycle().
Thank you very much for your time and attention,
Pablo