App Store Server Notifications V2 always receive six times

We always receive six times about the same TransactionID. You can see the image.

It's not five times.

We are under V2.

Any comments will be helpful.

Those are likely retries as V2 notifications are retried up to 5 times after the initial attempt (making for 6 total attempts): https://developer.apple.com/documentation/appstoreservernotifications/responding-to-app-store-server-notifications

Make sure your server is returning an HTTP 200 when receiving the notification, to indicate it was received successfully and prevent further retries for the notification.

To confirm this is what's happening, call Get Notification History, locate the notification, and check the sendAttempts array in the response. https://developer.apple.com/documentation/appstoreserverapi/get_notification_history

For version 2 notifications, it retries five times, at 1, 12, 24, 48, and 72 hours after the previous attempt.

https://developer.apple.com/documentation/appstoreservernotifications/responding-to-app-store-server-notifications

With 5 retries this would bring to 6 total notifications.

Please make sure you are responding with 200 and check the Get Notification History endpoint of the App Store Server API which can tell you why send attempts are failing from Apple's perspective.

https://developer.apple.com/documentation/appstoreserverapi/sendattemptresult

App Store Server Notifications V2 always receive six times
 
 
Q