App Store Connect webhooks

Connect App Store Connect to PurchaseKit so you receive real-time subscription updates (renewals, cancellations, refunds).

Bundle identifier

The bundle identifier connects your iOS app to App Store Connect and PurchaseKit.

Find your bundle ID in Xcode

  1. Open your Xcode project
  2. Select your app target
  3. Go to the Signing & Capabilities tab
  4. Find Bundle Identifier

The bundle identifier in Xcode's Signing & Capabilities tab
The bundle identifier in Xcode's Signing & Capabilities tab

Verify in App Store Connect

  1. In App Store Connect, select your app
  2. Go to App Information
  3. Confirm the Bundle ID matches your Xcode project

Configure in PurchaseKit

  1. In the PurchaseKit dashboard, go to your app settings
  2. Enter your Apple Bundle ID
  3. Save changes

PurchaseKit uses the bundle ID to match incoming Apple webhooks to the correct app.

Server Notifications

Apple sends server notifications when subscriptions are created, renewed, or canceled. PurchaseKit receives these webhooks and forwards them to your Rails app.

  1. Open App Store Connect
  2. Select your app
  3. Navigate to App Information in the sidebar
  4. Scroll to App Store Server Notifications

The App Store Server Notifications section in App Information
The App Store Server Notifications section in App Information

  1. For Production Server URL, enter:

    https://purchasekit.com/webhooks/apple

  2. For Sandbox Server URL, enter the same URL (PurchaseKit handles both environments)

  3. Click Save

Next step

Test locally with StoreKit Configuration files.