Cancel Notification when user cancels subscription during trial period

We are finding a solution to implement when a user has cancelled his/her subscription during the trial period. We have implemented notification types using this document

https://developer.apple.com/documentation/appstoreservernotifications/notification_type

Please address following queries

1- When user is on trial and cancel a subscription, cancellation notification is received? if received which notification is triggered? DID CHANGE RENEWAL STATUS this notification is received for subscription change as well, how to identify a subscription is cancelled?
2- Same thing (cancellation), we want to test in the sandbox environment?

Replies

Hello,

when a customer cancels their subscription this will disable auto-renew so their subscription will not renew and will expire at the end of their trial period. This customer event generates the server notification type DIDCHANGERENEWAL_STATUS.

Check out this one for more detail on the types sent and the events that will trigger them: https://developer.apple.com/documentation/appstoreservernotifications/notification_type