#Eranga

1 messages · Page 1 of 1 (latest)

obsidian monolithBOT
fading raven
#

They're the timestamps of the beginning and end of the billing period (e.g. monthly, yearly)

twilit willow
#

Actually I thought the same

#

But I have an invoice which has the same date for both

#

This is the invoice id: in_1Lu94iC8JGuaUdU6t2fPy7mV

fading raven
#

That's because its the initial invoice on the subscription

twilit willow
#

Oh, that is weird

#

Do you know the reason behind why the first invoice have the same values?

fading raven
#

It's because our invoices are generated for the previous period. In the instance of an initial invoice, there is no previous period

twilit willow
#

Cool, so in this case I need to dig deep into the line items to find the correct period, right?

fading raven
#

Well the period dates differ. The dates on the line items will be for the period upcoming

twilit willow
#

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

fading raven
#

Sure, period hash on the line item(s) works then

twilit willow
#

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

fading raven
#

Do you have an example or is this hypothetical?

twilit willow
#

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 🎉

fading raven
#

thanks!