#lil-qu4n_webhooks
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/1339866820269703169
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi
Hi! Looking into your query.
Have you attempted to finalise the invoice (https://docs.stripe.com/api/invoices/finalize) ? If yes, what happens?
My side has set up automatic payment for invoices (including finalization process)\
I mean is that some invoices during my subscription renewal process have the "auto_advance" = false field, which causes the above invoices to not automatically change status from "draft" to open to stripe payment.
I want to find out why when I'm in the subscription renewal process, some invoices return "auto_advance" = true but some invoices return "auto_advance" = false
Can you give me an example of an invoice that returns "auto_advance" = true?
evt_1Qs3y7GOGj3Av1fntwSTHt0x
You can check by the Related Event ID, right?
@wooden osprey
Still looking into your query.
@wooden osprey Thank you. If there is anything please contact me soon.
Apologies for the wait! The subscription (sub_1Oe5VsGOGj3Av1fnbVlL3LgS) for this invoice was in an unpaid status since 2025-02-11. Due to this all the invoices were created in a draft status with auto advanced as false.
You can refer to this doc for more details: https://docs.stripe.com/billing/subscriptions/overview#unpaid-subscriptions
@wooden osprey
Yes, the above subscription was manually deactivated on February 11, 2025,
However, what I want to ask here is why from February 29, 2024, every month when renewing a subscription, an invoice is created with status as draft and auto_advance = false, leading to it not being able to pay itself.
The subscription was cancelled on 2025-02-11. But before that it was in an unpaid state. As mentioned in the docs (https://docs.stripe.com/billing/subscriptions/overview#unpaid-subscriptions): Unpaid subscription continues to generate invoices each billing cycle, which remain in the draft state. You will manually need to enable the auto-advance for these invoices.
I understand that
But there is this
On 30/03 when the subscription renewal deadline is due, normally when the subscription bill of the previous month has been successfully paid, it will be renewed normally this month, however on 30/03, it only creates a draft invoice and does not charge anymore
The part I am confused about is in this part
@reef fractal @wooden osprey
Hi. I'm taking over from my colleague. Please, give me a moment to catch up.
@reef fractal If there is anything please contact me soon.
Still looking...
I see that multiple previous Invoices for the same Subscription were also created but not paid. Is it because you were pausing collection?
I don't do anything
auto_advance seems to be disabled because this Subscription has too many unpaid Invoices. I don't have a better explanation right now.
Do you know why all of those Invoices are not paid?
As I checked in the "invoice.created" event, "auto_advance" = false, which leads to the invoice not being automatically switched to open for charging
@reef fractal
And the problem here I don't understand is why only this user's invoice has "auto_advance" = false, while the remaining users are normal
@gleaming wyvern Can you check for me?
in_1Ozq8gGOGj3Av1fnIO0BtL74
you can check this
Looking!
I think this is expected because the invoice was generated when payment collection was paused on the sub: https://dashboard.stripe.com/logs/req_y4RxtU1HNX8WGG
You set the value to automatically void any invoices generated during that time
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
@gleaming wyvern
As I said above, on February 11, 2025, we canceled the subscription ourselves.
And what I want to ask here is that from March 30, 2024 when the subscription renewal deadline is due, normally when the subscription bill of the previous month has been successfully paid, it will be renewed normally this month, however on March 30, 2024 until we found out on February 11, 2025, it only creates a draft invoice and does not charge anymore
in_1Ozq8gGOGj3Av1fnIO0BtL74 is not a draft invoice
What?
I found it still dg status is draft both on stripe and in my database
Status 1 in my DB meaning draft
I don't know why the Dashboard says that. But according to the pause behaviour on the sub at the time it should of been voided
If you want to advance it, which I'd be surprised if possible, then finalize it
@gleaming wyvern It seems that I understand this phenomenon as follows
- This user's subscription is renewed on the 30th of every month
- However, when renewing in February, the renewal invoice for January will not be paid until March 1 (evt_1OpB6uGOGj3Av1fnCMLG5Miw), leading to the fact that when the subscription renews on February 29, this subscription is considered unpaid (evt_1OoxpZGOGj3Av1fnQXzKxJgy)
I am not sure if this flow is working the way stripe works or not
Do you acknowledge that your integration paused payment collection for sub_1Oe5VsGOGj3Av1fnbVlL3LgS on 2024-03-27 09:45:23 here?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Essentially you told us to stop collecting payments for any invoices generated between 2024-03-27 09:45:23 and 2024-04-27 15:00:00 and instead void them
in_1Ozq8gGOGj3Av1fnIO0BtL74 was created during that time period, on 2024-03-30 00:51:18, so we didn't collect payment for it as it was paused as per your request
That is why auto-advance is disabled and why it remains unpaid
Whether or not the previous billing period's invoice is paid or not is mostly irrelevant. In most cases that wouldn't stop us from generating and attempting to charge a new invoice for a fresh billing period
What I outlined above is the cause
Let me check again about this case