Blog Setup & tools

App Store Server Notifications V2 Explained for Indie Developers

What App Store Server Notifications V2 are, the main notification types, how signing works, production vs sandbox URLs and when you need them.

App Store Server Notifications sound like something only big companies need. They're actually useful for any app that sells purchases or subscriptions, because they're the only way to learn about sales, renewals and refunds the moment they happen.

Here's a plain-English tour.

What they are

When something happens with an in-app purchase or subscription, Apple can send an HTTPS request to a URL you set in App Store Connect. The request contains a signed payload describing what happened. Version 2 is the current format, and it's what Apple recommends.

Apple's official documentation lists every detail. Here's what matters for most indie developers.

The main notification types

You'll see a notification type and sometimes a subtype. The common ones:

  • SUBSCRIBED. Someone started a subscription, either new or resubscribing.
  • DID_RENEW. A subscription renewed successfully.
  • DID_CHANGE_RENEWAL_STATUS. Auto-renew was turned off or back on. Turning it off is what most people call a cancellation.
  • DID_FAIL_TO_RENEW. A renewal payment failed. The subscription may be in billing retry or a grace period.
  • EXPIRED. A subscription ended.
  • REFUND. Apple refunded a transaction.
  • ONE_TIME_CHARGE. A one-time purchase like a consumable or non-consumable.
  • TEST. A test notification you can request to check your setup.

There are more, for things like offer redemptions, price increases and consumption requests, but these cover the basics.

How signing works

Each notification is a JSON payload signed with Apple's certificates using JWS. Your server should verify the signature before trusting anything in it. That way nobody can fake a sale by sending a request to your URL.

Inside, you'll find signed transaction info and, for subscriptions, signed renewal info, with details like the product, price, currency, country and dates.

Production and sandbox URLs

In App Store Connect, under App Information for each app, you can set two URLs:

  • Production Server URL for real purchases.
  • Sandbox Server URL for test purchases from TestFlight and development.

You choose Version 2 for each. Keeping sandbox separate stops test purchases from polluting your real numbers. See sandbox vs production purchases.

Retries and reliability

If your server doesn't respond successfully, Apple retries a few times over the following days. Even so, a server that's down for a long time can miss events. Apple also offers an API to look up notification history, so you can recover anything you missed. Good setups handle duplicates too, since the same event can arrive more than once.

Do you need them?

You'll want them if you:

  • Want to know about sales in real time.
  • Grant access to content on your own server.
  • Want to react to cancellations, billing issues or refunds quickly.

If you just want sale alerts and a live sales list without running a server, AppScope Live receives the notifications for you, verifies them, and sends you push notifications. You paste one link per app into App Store Connect and you're done.

The bottom line

App Store Server Notifications V2 are signed messages Apple sends whenever a purchase or subscription changes. They power real-time sales, renewals, cancellations and refunds. Verify signatures, separate sandbox from production, handle retries and duplicates, or let a tool like AppScope handle all of it for you.

Keep reading