#nadia-subscription-periods
1 messages · Page 1 of 1 (latest)
This is expected/normal, the two periods different things.
the invoice period is the time during which accrued items were paid/covered, its backward looking
the subscription period represents the current billing cycle
because there is no history for the first invoice, the period is 0 seconds long -- it starts and ends at the time of creation
thanks @vagrant plank for your response
noted !
so i should use the lines.data[0] :
"period": { "end": 1633704713, "start": 1631112713 },
to get the first & last day of the invoice cycle ?
or do you advice me to check orther fields ?
What are you trying to represent to your customer?
It depends on whether you want to "current billing cycle" vs the "last invoice period"
i want to display what this invoice is for (the period)
i want to do something like that on my app
description = dates (billing cycle)
i want to display the billing cycle dates & the price my customer paid during that period
gotcha - then yep those dates on the lines are for that (and should match the subscription current period at that time)
you're welcome, you too!