App Store Server Notifications v2 aren't arriving
When no App Store Server Notifications arrive, App Store Connect is usually missing the right URL for that environment. Sandbox and TestFlight purchases notify only the Sandbox Server URL. Both URLs must be set to Version 2 and use HTTPS with a valid certificate. Your endpoint must answer with HTTP 200. Then send yourself a test with the App Store Server API's Request a Test Notification endpoint.
Symptom
- Your endpoint gets no requests at all after purchases, renewals or refunds.
- Production notifications arrive, but sandbox and TestFlight ones don't (or the reverse).
- Notifications arrive hours late or in bursts.
- Requests arrive, but your server rejects them, so nothing gets recorded.
Why it happens
| Cause | How to tell |
|---|---|
| Sandbox Server URL empty | Sandbox and TestFlight events never arrive; production ones do |
| URL set to Version 1 | Payloads have no signedPayload, or your v2 parser rejects them |
| Wrong URL (typo, staging host, missing path or query) | Your server logs show no requests, or only 404s |
| TLS problem (expired or self-signed certificate, incomplete chain) | An SSL checker reports an error for the host |
| Endpoint answers slowly or with an error status | Notifications arrive late, in retries |
| Signature verification fails on your side | Requests arrive and your code returns 4xx |
Confirm it
- In App Store Connect, open your app → App Information → App Store Server Notifications. Check both Production Server URL and Sandbox Server URL, and that each is Version 2.
- Run an SSL check on the host, and make sure it serves the full certificate chain.
- Ask Apple to send a test, using the App Store Server API (sandbox host for the sandbox URL):
curl -X POST -H "Authorization: Bearer $JWT" \
https://api.storekit-sandbox.itunes.apple.com/inApps/v1/notifications/test
The response contains a testNotificationToken. Pass it to GET /inApps/v1/notifications/test/{token} to see whether Apple reached your server, and what status your server returned.
- Use Get Notification History (
POST /inApps/v1/notifications/history) to list what Apple tried to send in a time range.
Fix
- Set both URLs, each Version 2, and save.
- Fix the URL itself: production host, full path, and any query string your server needs.
- Serve a valid, publicly trusted certificate with the full chain over TLS 1.2 or later.
- Answer quickly with HTTP 200 once you've stored the notification. Do the slow work after responding.
- Verify the
signedPayloadJWS against Apple's certificate chain. If verification fails, log why before you return an error. - Send another test notification and check its status.
Stop it coming back
- Monitor “time since the last notification” per environment, and alert when it's quiet for longer than your usual traffic allows.
- Re-check both URLs whenever you move hosts or rotate certificates.
- Fetch Get Notification History after any outage, and replay what you missed.
If you use BillDog
Each BillDog project has its own notification URL, ending in ?r= plus a route key. It's shown in Project Settings → Store, on the Apple App Store card, once your App Store credentials are verified. The bare https://api.billdog.io/v1/webhooks-apple refuses every notification. Paste your project's URL into both the Production and the Sandbox Server URL, each as Version 2. Last notification on the same card updates when one arrives, and a sandbox purchase is the quickest way to trigger one. This is from BillDog's App Store setup guide.
Related
Sources
Did this fix it?
Frequently asked questions
Why do production notifications arrive but sandbox ones don't?
Apple sends sandbox and TestFlight events only to the Sandbox Server URL. If that field is empty or still points to Version 1, sandbox purchases notify nobody.
Does Apple retry a failed notification?
Apple retries when your server doesn't answer with a success status. Retried notifications arrive late, so a slow or failing endpoint looks like missing notifications. Get Notification History lets you fetch what you missed.
Can I point production and sandbox at the same URL?
Yes. Each signed notification says which environment it came from, so one endpoint can serve both, as long as it reads that field.