Stripe Invoice. Start/created and End date are all the same for first invoice -


i getting invoices api, , noticing if there 2 full month billing cycles, - 1 in start/end , created dates same.

so, end displaying , makes no sense.. ie.

lets user created account on july 19, 2016.. 1 of invoices (the others good), getting this.

amount: 0 billingdate:"2016-07-19t23:20:33.000z" enddate:"2016-07-19t23:20:33.000z" startdate:"2016-07-19t23:20:33.000z" 

how should handle this, or how valid response? keep in mind billing on 8th. little afraid :-), omit if start/end/created date same.

the current_period_end , current_period_start corresponds period invoice for. rule on stripe's end, invoice "previous" period while line item subscription new month.

this means if have monthly subscription on 1st of month, invoice on 1st of november 1st of october until 1st of november while line item subscription 1st of november 1st of december.

there exception first invoice. since there no "past" invoice, current_period_end , current_period_start equal in situation , correspond date subscription created.

i'd recommend using subscription's line item's period instead if you're displaying date period invoice corresponds to.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -