Missing some meta data/ transaction information in the response body while calling server to server notification endpoint.

I am making get request using curl command to the sandbox url with test notification token to receive the signed payload base64 string as a response.

curl -v -H 'Authorization: Bearer token' -X GET https://api.storekit-sandbox.itunes.apple.com/inApps/v1/notifications/test/{testNotificationToken}

Signed payload contains 3 base64 string separated by dot(.), while encoding the second base64 string which is payload i am getting the expected properties as described here https://developer.apple.com/documentation/appstoreservernotifications/responsebodyv2decodedpayload

"notificationType":"TEST","notificationUUID":"9143d462-630c-467d-9480-47acedac9c99","data":{"bundleId":"com.example.exampleapp","environment":"Sandbox"},"version":"2.0","signedDate":1668566967923}

In the data object the missing properties are signedRenewalInfo and signedTransactionInfo.

As mentioned here https://developer.apple.com/documentation/appstoreservernotifications/data

Why I am not getting those two properties in data object? Is it because of sandbox environment?

Accepted Reply

Thank you for reaching out. The TEST notification type is not associated with a user or transaction. Therefore, no transaction or renewal information is included. The primary purpose of the endpoint is to confirm you can receive App Store Server Notifications and appropriately verify the signature of the payload.

Replies

Thank you for reaching out. The TEST notification type is not associated with a user or transaction. Therefore, no transaction or renewal information is included. The primary purpose of the endpoint is to confirm you can receive App Store Server Notifications and appropriately verify the signature of the payload.