#supay_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/1410320357642076170
📝 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.
- supay_docs, 1 day ago, 4 messages
- supay_api, 5 days ago, 29 messages
Hi, you can’t when collection_method: charge_automatically is set. Instead, you could send the invoice. All invoices created for subscriptions where collection_method: send_invoice will still have a one hour period after they have been created during which they can be updated.
So the invoice won't be sent until automatically_finalizes_at date is reach. is collection_method: send_invoice
Can I update the invoice collection_method when the invoice status isopen ?
The first invoice for this type of subscription is immediately finalized and charged. As such, there is no one hour period in which a user can update the invoice before finalization. All subsequent invoices generated for subscription renewals will have the one hour draft period
There are a couple of ways you could work around this:
Create their subscription with trial_end set a couple of seconds into the future. The subscription will first generate a $0 invoice, and once the trial is over a non-zero invoice will be created with a one hour draft period. The initial status of this subscription will be trialing and will transition to either active or past_due depending on the payment outcome.
Create the subscription through a subscription schedule, https://docs.stripe.com/billing/subscriptions/subscription-schedules#start-subscription-future . When the schedule starts, the subscription’s initial status will be active with an initial draft invoice that is scheduled to finalize in an hour. Depending on whether payment of the initial invoice is successful or not, the subscription will either stay active or transition to past_due.
No, you can't update it like you imagined after the fact
Subsequent invoices generated for subscription renewals will have the one hour draft period
If I understand correctly, only invoice renewal have the 1 hour draft period. If it's a subscription update, (e.g. Update quantity) it's doesn't mark it.
Is there no other way to keep the invoice in draft for an hour other than using a subscription schedule instead of a subscription ?
What's weird is that you can update the current phase of a subscription schedule to have the draft behavior.
That is correct or to change the collection method
I wouldn't mind to use the collection method to send_invoice if I could change it back to charged_automatically once the invoice modification has been done
You can try to update the subscription to change it's collection method actually: https://docs.stripe.com/api/subscriptions/update?api-version=2025-07-30.preview#update_subscription-collection_method
Can you try that and see if that is what you're looking for?
Ok letme check right now, it should take 5min. If that resolved my issue that would be perfect, if not I'll use the subscription schedule. We already have subscription schedule implemented with our system anyway.
Good News your solution works.
I can do
- Update subscription with
collection_method: 'send_invoice' - Receive from wehbook
invoice.createdand performed the changes required - Update invoice
collection_method: 'charged_automatically'