#arvindkgs-billing

1 messages · Page 1 of 1 (latest)

ebon cobalt
#

heya @neon grotto, i'll get back to you shortly, i'm a little tied up with something else right now

neon grotto
#

Thank you

kindred radish
#

Hi arvindkgs, you can use invoice.peroid_start, this is the timestamp for the start of the usage period

neon grotto
#

Thanks @kindred radish . What will the typical value be for invoice.period_start ? Suppose I start a subscription now -18-Nov-2021 08:05:53 UTC

#

What will the invoice.period_start be? Will it be from when the subscription started or the start of the month?

kindred radish
#

It is in Unix epoch time

neon grotto
#

sure, I just gave the human readable format

#

1637222949 this is the epoch time for now

#

so what will the invoice.period_start be?

#

will it be 1637222949?

kindred radish
#

Both peroid_start and peroid_end are in unix epoch time format.

neon grotto
#

I understand. But that will the value be equal to?

#

If I start a stripe subscription this moment, will the invoice.period_start be the start of this month? or now?

#

invoice will be generated at the end of the month, right?

#

what will it set the period_start to?

#

will it be start of the month? or the time when the subscription started?

#

@kindred radish can you help me understand this please?

kindred radish
#

Sorry and thanks for the waiting.

#

The invoiced is generated upon successful subscription, so the peroid_start is the timestamp when the subscription starts.