#kitkat - subscription's upcoming invoice date

1 messages · Page 1 of 1 (latest)

gleaming lion
#

Good question. Looking in to this

#

Is that currently working for you but you are wondering if there is another way to access that date?

steel sundial
#

More of I'm worried it may not be accurate if I do use it.

#

I haven't tested using the invoice.created in production yet, theoretically it sounds like it should work.

gleaming lion
#

For me, it looks that returned the time that I made the call.

#

So you are just looking for the subscription cycle and when the next invoice will be sent?

#

Looking in to that...

steel sundial
#

Yup

#

for me when I looked up an upcoming invoice for a subscription in test mode, I got an example with created = 1681938321 or Wednesday, April 19, 2023 9:05:21 PM

#

This does coincide with the details in the stripe interface, but I just want to be 100% certain. (displayed in PDT)

gleaming lion
#

Gotcha. Not sure where my test went wrong then. If that lines up there then that is the correct timestamp.

#

Yep, lo and behold I mixed up the timestamp I was looking at. That is the correct timestamp

steel sundial
#

Great 🙂

#

thank you!