#tyson

1 messages · Page 1 of 1 (latest)

stiff bloomBOT
urban cosmos
#

customer.subscription.deleted is likely what you're looking for

valid field
#

yes

#

I was thinking using customer.subscription.deleted but this doesn't get triggered when its cancled

#

will it get trigured at the end of the period?

#

triggered*

urban cosmos
#

It should get triggered when the subscription is cancelled

#

Have you tried it?

valid field
#

it doesn't

#

I am thinking of a logic like this

#

When request data cancel at the end of period is true then run cascade

urban cosmos
#

Can you share with me the request id of you cancelling a subscription where this event wasn't generated?

#

That's unexpected behavior

valid field
#

But i guys they still have the membership until the end of peroid so that might not work

urban cosmos
valid field
#

evt_1MPSnnEmAsCUvewddrNIpqkv

#

Here you go

#

its only coming up at customer.subscription.updated

#

i guess i could delay database changes until the end of peroid

urban cosmos
#

Oh

#

Yeah if you set it to not cancel immediately and cancel at the end of the billing period then the event will be sent at the end of the billing period. Apologies I misunderstood what you were saying

valid field
#

no worries

urban cosmos
#

So you'll have to inspect the subscription update event payload to be able to tell that you set to cancel at the end of the billing period