#uzu_api
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/1347303257198039051
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
When you say you tried to simulate without specifying params, what exactly did you pass? Was that using the subscription_details parameters?
It may be possible to set cancel_at to an empty string to unset it while also providing the subscription ID, haven't had a chance to test myself yet https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-subscription_details-cancel_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can you explain in a bit more detail what you are trying to preview here? If the user changed to the other price now but still ends their subscription at the same time?
i want to preview the invoice if the user changed to other price and sets the cancel_at to null, the user remove the cancel
Gotcha, I think what I said before may still apply. Will test. Or did you get an error when you used subscription_details before?
I just tried using that parameter and get "The subscription is managed by the subscription schedule sub_sched_1QzQG7FDzWEzE3i9d7SCPeFY, and updating any cancelation behavior is not allowed."
i get this req url https://dashboard.stripe.com/test/logs/req_lKUgLyLZRh7vZG?t=1741295905
Gotcha, thanks for the detail. Looking into how to handle this if there is a subscription schedule involved
Ah so the cancel date is defined by your schedule, we also have schedule_details so I think we are expecting you to define that changing here https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-schedule_details-phases-end_date