#trina_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/1416041970274402304
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
Thanks! happy to provide more context if needed
I'm just looking at the subscription and the invoices and trying to collect some information
will be with you shortly
are you only controlling the subscription/subscription schedules from the dashboard?
We tried with dashboard first, but I wanted to extend it to api also to schedule based on webhook events
However without confirming here that we can do mid-cycle updates to subscriptions with metered products without triggering invoice creation I didn't feel it was safe to do so
you can use proration_behavior: 'create_prorations' which creates the prorations invoice items but only add them on the next invoice (for the next billing_cycle_anchor) and if you don't want the billing_cycle_anchor to change then you need to pass in 'unchanged' as its value in the updates
when you say prorations invoice items, which are you referring to?
ah sorry i meant mid cycle schedule phase change
not update
hey just stepping in for tarzan who needs to step away
i think the same guidance applies: the new phase would use create_prorations
https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-phases-proration_behavior