#KEITH LARD
1 messages · Page 1 of 1 (latest)
Hello 👋
Can you share the example you're working with?
cancel_at_period_end is set when you set it by calling the update subscription API
evt_1NB11UAjtNFaRAYobzW4Vb4e
sub_1NB0vjAjtNFaRAYoFsoMx408
Hmm okay, should I check current_period_end to find when the cycle ended and the payment failed
I basically want to display a date to the user when their membership was suspended (when it goes to past_due)
Hmm Past due subscription would still generate new invoices so current_period_end would change on each invoice
What you'd likely want to do is fetch the oldest invoice the subscription has and show the period_end on that invoice
does that make sense? @misty shore
Yeah that's what I am thinking.. Not sure if that's 100% accurate though.
Would recommend testing it out
Will do thanks for the help