#miketimturner-invoice-attributes

1 messages ยท Page 1 of 1 (latest)

static locust
#

Hello ๐Ÿ‘‹
Let me take a look
Do you have an example invoice ID?

lilac spruce
#

Sure in_1KqyqtCj4QBUyD0zX8dZuszU

static locust
#

Thanks
Looking

#

what timestamps are you seeing on this example invoice?

lilac spruce
#

In the actually invoice itself?

#

Trial period for Solo Plan
Apr 21 โ€“ May 5, 2022

static locust
#

That makes sense considering this invoice was created for the trial period
Just so that I'm on the same, I'm not fully clear on this piece

how do I get the actual period the invoice covers as stated in the invoice itself
Can you expand on that? Like give me an example with dates

lilac spruce
#

Theres no timestamp in the invoice object for May 5, 2022

static locust
#

AH gotcha. So you're not seeing that in the response from the API
Can you paste the response object from the API here?

lilac spruce
static locust
#

those attributes on the invoices seems to be tracking usage period during which invoice items were added to the invoice

You'd probably want to look at line item data, it has the right period listed there

"period":{
               "end":1651752662,
               "start":1650543075
         }
lilac spruce
#

I looked at these dates and its the same date but mintutes apart

#

Oops

#

Just checked again and you're right ha

#

I must have tested the same number twice

#

I thought the number looked too far apart to be only minutes different ha

#

Thanks man appreciate it

static locust
#

NP! ๐Ÿ™‚ Happy to help