#litterboks_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ 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/1245334096947970048
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Is it enough to simply update the subscription and removing the Domain 2? Or will this lead to some kind of refund behavior?
Yes you just update the Subscription by removing that item. Disable proration when you make the update (proration_behavior: none)
https://docs.stripe.com/api/subscription_items/delete#delete_subscription_item-proration_behavior
Thank you!
Happy to help!
What happens if this was the last item?
What you mean by the "last item" exactly? can you share a concrete example of the update you want to make
The subscription contains only
Domain 1
I cancel domain 1
Domain 1 is removed from the subscription
Does the subscription still exist? because i need to be able to uncancel and re-add them
No in that case you cancel the subscription
and then create a new one
when the customer come back
Hmm this is problematic, can i add the item back to the cancelled subscription and uncancel it?
Otherwise its hard to track domains over several subscriptions
Hmm this is problematic, can i add the item back to the cancelled subscription and uncancel it?
Why you want to add the cancelled Subscription and not creating a new Subscription?
Otherwise its hard to track domains over several subscriptions
You can track via the priceId...
Because the cycle of the new subscription needs to be the same as the old one
I might get it working though.
If it is the last item i cannot remove it from the subscription anyway. (just tested via cli)
So i need to cancel the subscription instead.
If the item stays in the subscription i can still uncancel it
Because the cycle of the new subscription needs to be the same as the old one
You can set the billing cycle when creating a Subscription
Use the billing cycle timestamp of the old Susbcription