#kanohian
1 messages · Page 1 of 1 (latest)
Are you just asking for how to get the date that a subscription becomes first active?
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
assume I am doing this way past invoice payment
just looking through subscription info
maybe invoice.effective_at
?
Hmm... the only other way I can think of would be to check the Invoice, expand it's Payment Intent and check the date of it's latest_charge (https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge) so you know exactly when it was paid
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)