#amit_02785-subscription

1 messages · Page 1 of 1 (latest)

idle spireBOT
harsh flame
#

Hello!

#

The idea here would be that you use the customer.subscription.updated event and check specifically what attributes were changes - so for example if the subscription was renewed you'd see the current_period_start and current_period_end change for the subscription

spark blade
#

Hey, Let me check and verify please don't close the thread🙂

harsh flame
#

👍

#

amit_02785-subscription

spark blade
#

Hi, I've checked with cancle and renew subscription in both cases current_period_start & current_period_end are the same there is no any different.

Cancle Subscription.

current_period_end: 1696511861, current_period_start: 1693919861,

Renew Subscription.

current_period_end: 1696511861, current_period_start: 1693919861,

harsh flame
#

Can you give me the exaxmple event ID for the renew subscription webhook event?

spark blade
#

sure

#

evt_1Nn1i2CWEjXXQ9Adw2c5ygs3 & evt_1Nn1jzCWEjXXQ9Ad5Rxw41bp

harsh flame
#

Ah, you're not actually talking about renewing - you're talking about reactivating a subscription that was previously scheduled to be canceled

#

In that case you want to be checking cancel_at on the subscription

spark blade
#

Okay, let me check with cancle_at

#

Thanks @harsh flame ,
I got the difference b/w cancle and renew subscription.😃