In app store server notification v2, there is no CANCEL in notificationType.

Thank you for your help!

In v1 of app store servernotifications, there was a notificationType, CANCEL, but it is gone from v2. In v1 of the app store servernotifications, there was a notificationType of CANCEL, but in v2 it's gone. Which notification should I use instead when CANCEL happens?

v1 notificationType Document Link https://developer.apple.com/documentation/appstoreservernotifications/notification_type

v2 notificationType Document Link https://developer.apple.com/documentation/appstoreservernotifications/notificationtype?changes=la

Accepted Answer

Looking at the v1 docs

CANCEL

Indicates that Apple Support canceled the auto-renewable subscription and the customer received a refund as of the timestamp in cancellation_date_ms.

This now a REFUND notification, as it indicates a refund occurred, pulling from the v2 docs

Indicates that the App Store successfully refunded a transaction for a consumable in-app purchase, a non-consumable in-app purchase, an auto-renewable subscription, or a non-renewing subscription. The revocationDate contains the timestamp of the refunded transaction. The originalTransactionId and productId identify the original transaction and product. The revocationReason contains the reason. To request a list of all refunded transactions for a user, see Get Refund History in the App Store Server API.

You can also see revocationReason for a bit more information about why it was refunded

In app store server notification v2, there is no CANCEL in notificationType.
 
 
Q