#zaddler_unexpected
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/1219214072000811039
đ 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.
- zaddler_code, 4 days ago, 26 messages
- zaddler_webhooks, 6 days ago, 34 messages
Hello
Could you please create a test simulation using Stripe Test Clock:
https://stripe.com/docs/billing/testing/test-clocks
And share with me the subscription Id ?
sub_1OvcPfIaroXmrIGX8G1zdZbn
in_1OvcPfIaroXmrIGX9BL0jFPp: 3 usd
in_1OvcQ1IaroXmrIGXTWZtWx9V: 24 usd finnally <----------This should be invoiced when the 3 usd billing cycle ends.
It is an annual plan, but even if I set protation_behavior to be none and billyng_cicle_anchor to be unchanged, it does not work.
Thanks for sharing, let me check...
Alright
It is an annual plan, but even if I set protation_behavior to be none and billyng_cicle_anchor to be unchanged, it does not work.
When exactly you set this ? can you share the requestId ?
req_S1TETKYF6iKxAF
I see it, this one req_S1TETKYF6iKxAF
Yep
So you've deleted the price Premium Plus and you replace it with Premium
Sure, but we only handle 1 subscription per user, that's right, right?
What I want is to invoice at the end of the cycle, not immediately
Try setting the billing_cycle_anchor: unchanged
https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_cycle_anchor
Exactly, premium plus has more things to offer than premium, but this premium is annual, you should not issue an invoice until the end of the cycle
I tried but it doesn't work. I'll try again.
Can you share the requestId ?
req_wUuEPQKFsJVrvd
I tried this:
{
"proration_behavior": "none",
"billing_cycle_anchor": "unchanged",
"default_payment_method": "pm_1Ov9B0IaroXmrIGXT4dnYChX",
"items": {
"0": {
"quantity": "1",
"id": "si_Pl8uJPAnaBeWFx",
"deleted": "true"
},
"1": {
"quantity": "1",
"price": "price_1OufyYIaroXmrIGXQ6bZGZYj"
}
}
}
But doesn't work
Sorry, I'm quiet confused, so you want to create a proration for the unused time of the price Premium plus ?
I don't want to create prorations, because that remains as credit to the client.
What I want is that if you have paid for a monthly premium plus plan, and change to annual premium, to wait the month and then bill
However this doesn't work:
"proration_behavior": "none",
"billing_cycle_anchor": "unchanged",
What I want is that if you have paid for a monthly premium plus plan, and change to annual premium, to wait the month and then bill
Ok I see. Then you need to use Subscription Scheduler
You schedule the update till the end of the current phase (monthly plan)
But it won't generate an invoice until the end of the cycle period, right?
You can find here a couple of helpfull use cases:
https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases
yes
So if I change from a monthly to an annual plan, I create a schedule, right?
How can I use the retrieve upcoming invoice in subscription schedule?
and if you want to achieve your use case (wait untill the end of the current billing cycle to create an invoice)
Same as you are doing on a Subscription
for each schedule, you have a related Subscription
But to show my next invoice, do I have to create the schedule first?
Yes.
Is there a way to create it but without applying the effect? Since I need to show the user their billing information
You can always update the future phases of the schedule and remove the next phase
But I have a question, but if you create a subscription schedule, what will happen to the current ordinary subscription?
So something I don't understand is, do I have to use subscription and then schedule, or just schedule?
You can create a scheduler from an existing subscription:
https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
Have you had the chance to walk through all the guides I shared with you?
You can start a scheduler from the beginging, or create a scheduler from an existing subscription
A scheduler provides just an extra layer of customization to the Subscription
I think it's what I need for my use case, but I have to read the documentation well and stuff
Okay, thank you very much, I'll try it and write to you anything.