#KEITH LARD

1 messages · Page 1 of 1 (latest)

solid bisonBOT
hardy solar
#

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

misty shore
#

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)

hardy solar
#

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

misty shore
#

Ah I see

#

so the original cycle before the failure

hardy solar
#

Yeah that's what I am thinking.. Not sure if that's 100% accurate though.
Would recommend testing it out

misty shore
#

Will do thanks for the help