Can I use the Get Notification History API without setting an HTTPS URL for notifications?

I am planning to use the Get Notification History API to receive refund notifications for consumable in-app purchases. In order to receive notification data from this API, do I need to set up an HTTPS URL in App Store Connect to receive App Store Server Notifications?

Replies

The Get Notification History endpoint returns the history of V2 notifications the App Store server generated for your app. The App Store server will only start generating V2 notifications for your app once you have enabled the notifications, according to the instructions here:

https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/enabling_app_store_server_notifications

So yes, enabling V2 notifications is a prerequisite for using Get Notification History. But the endpoint is primarily intended as a way to recover missed notifications; for your use case you can simple enable V2 notifications and listen for those with type REFUND.

Refunded purchase data is also available from the Get Refund History endpoint:

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