#scottmada

1 messages · Page 1 of 1 (latest)

placid shuttleBOT
river monolith
#

Hello! can you share the Invoice ID so I can take a look?

sand kernel
#

in_1MW4vWKHSDcTZmGZnO7ViqTH

#

The due date is January 30th, but the api, as seen here evt_1MgFKPKHSDcTZmGZGftHaCWZ, says that it's 1675722629, which is Feb. 6

river monolith
#

Gotcha! Give me a few minutes to take a look

#

Ah! Found the issue - so this is a bad gap/edge case because you're on an older API version. Starting with API version 2019-10-17 (https://stripe.com/docs/upgrades#2019-10-17) we stopped returning due_date on Invoices that were charge_automatically

#

And the PDF is generated based on the most recent version of the API (which defaults to a null due date)

sand kernel
#

Ok, so the default date will be the creation date?

#

For charge_automatically?

river monolith
#

Yup!

sand kernel
#

Ok! Thanks, this helps.

#

Thanks for the precious help

river monolith
#

glad I could get that cleared up!

sand kernel
#

Oh! created or finalized?

#

Which one should I use?

#

For the start date?

river monolith
#

ahh forgot about that! Sorry, it should be finalized date, not creation date

sand kernel
#

Perfect