#Eranga
1 messages · Page 1 of 1 (latest)
They're the timestamps of the beginning and end of the billing period (e.g. monthly, yearly)
Actually I thought the same
But I have an invoice which has the same date for both
This is the invoice id: in_1Lu94iC8JGuaUdU6t2fPy7mV
That's because its the initial invoice on the subscription
Oh, that is weird
Do you know the reason behind why the first invoice have the same values?
It's because our invoices are generated for the previous period. In the instance of an initial invoice, there is no previous period
Cool, so in this case I need to dig deep into the line items to find the correct period, right?
Well the period dates differ. The dates on the line items will be for the period upcoming
So my intention is to find the period for which this invoice is charged for
In this case the period should be one billing cycle after the invoice period start date
Sure, period hash on the line item(s) works then
Cool, thank you.
I have one question regarding the promocodes as well
I have a coupon that can be applied for multiple months
Let's say 4 months
I apply this coupon to a subscription at the beginning, and the subscription now is on the 4th month
When I retrieve the subscription at this time, I should get the discount as null, right?
I am guessing Stripe removes the attached discount at the beginning of the 4th month
Do you have an example or is this hypothetical?
This is hypothetical. Because for a one time subscription, Stripe removes the discount from the subscription
Don't worry about this. I'll check this with test clock and see how it behaves. Looks like you have lot of traffic today
Thanks for the time. Have a nice day 🎉
thanks!