#isabela12313-Invoice
1 messages · Page 1 of 1 (latest)
thank you
It looks like it's an expected behavior that you see the due_date to be from when the invoice was created: https://stripe.com/docs/api/invoices/create#create_invoice-due_date. You could update the draft invoice, https://stripe.com/docs/api/invoices/update to reflect the desired due date.
hm
I'm not sure if that makes much sense, the invoice hasn't been finalized yet and draft invoices are not created with due dates / the due dates are not set on the invoice until the invoice is finalized.
Can you update the due date on an open invoice?
We can't know when the invoice is due until it is finalized
You can update the due_date on a draft invoice
Let me test something real quick on my end
okay
thanks
This was one of the threads that made me assume that the due date would be set based on the finalization date #935243611199656017 message
From the invoice creation request, https://dashboard.stripe.com/logs/req_nNiTpzgpLeyqnw I see days_until_due: "30" was passed. According to our docs, https://stripe.com/docs/api/invoices/create#create_invoice-days_until_due I can confirm that it's from when the invoice was created: The number of days from when the invoice is created until it is due.
Looking at the previous thread
I might be misreading our document, let me further investigate this
After further reading, it does make sense that the days_until_due starts when the invoice is finalized. I'm trying to reproduce what you're seeing on that on in_1LKwoKJxJIrs34m7U0eOALTN, on my end.
I was unable to reproduce this, so what Rubeus is provided on the previous thread you found is the expected behavior. I tested this on my Dashboard with Test Clocks, https://stripe.com/docs/billing/testing/test-clocks
I had days_until_due: "30" and left it in drafts for 2 weeks. When I finalized it, the days_until_due: "30" was reflected from when the invoice is finalized, so I was totally wrong here.
Now that we know the expected behavior, I'm further investigating what might have happened to that invoice
Thank you for your patience and understanding. I was able to talk this out with a teammate.
My initial answer was correct that it's an expected behavior that the due date of the invoice will be based on when it is created, not when it is finalized. When I tried reproducing it with Test Clock, it did not work like normal.