#kanohian

1 messages · Page 1 of 1 (latest)

silent nightBOT
rough raptor
#

Are you just asking for how to get the date that a subscription becomes first active?

restive adder
#

gets paid

#

I need to know when the invoice assoicated to subscription got paid

rough raptor
#

Really, the best way to get that is by listening for the invoice.paid event to be notified when the invoice was paid and get the timestamp from that

restive adder
#

assume I am doing this way past invoice payment

#

just looking through subscription info

#

maybe invoice.effective_at

#

?

rough raptor
#

effective_at is usually the same as finalization time, and that's not always the same as when the invoice was paid (for example, if the initial payment failed it would be paid way after finalization)

restive adder
#

okok I will take a look

#

thanks