Apple App Store Setup
Complete guide to connect your App Store Connect account with BillDog
Step 1: Find Your App's Identifiers
BillDog proves the app is yours by asking Apple about this exact app, so it needs three identifiers.
- Bundle ID: your app's bundle identifier (e.g.
com.example.app) - Apple ID: the number in App Store Connect → Apps → your app → General → App Information → Apple ID. Store notifications are verified against it.
- Issuer ID: shown at the top of Users and Access → Integrations (on both the In-App Purchase and the App Store Connect API pages). It is the same for every key on your team.
Step 2: Create an In-App Purchase Key (Required)
BillDog verifies every purchase with the App Store Server API: it checks Apple's signed (JWS) transactions and asks Apple about them with this key. The App Store Server API accepts only an In-App Purchase key, so this is the key that makes purchases count. The same key signs StoreKit promotional offers.
- In App Store Connect, go to Users and Access → Integrations → In-App Purchase
- Generate a new key (the "+" button), name it (e.g. BillDog) and confirm
- Copy the Key ID shown next to the new key
- Download the key's .p8 file. Apple lets you download it only once, so keep it safe.
verifyReceipt endpoint, which BillDog does not use.Step 3: Create an App Store Connect API Key (Optional, for Product Sync)
Only the "Sync products" button uses this key: it reads your in-app purchase and subscription catalog from App Store Connect. Purchases are verified without it. Skip this step if you will add products by hand.
- In App Store Connect, go to Users and Access → Integrations → App Store Connect API
- Under Team Keys, click "+" to create a new key
- Name:
BillDog API Key - Access: App Manager or Admin
- Click "Generate", then copy the Key ID shown next to the key
- Download the key's .p8 file. Apple lets you download it only once.
Step 4: Set Up In-App Purchases & Subscriptions
For Subscriptions:
- In App Store Connect, go to your app → "Subscriptions"
- Create subscription groups (e.g., "Premium Subscription")
- Add subscriptions within groups (e.g., Monthly, Yearly)
- Set pricing for each subscription
- Submit for review
For In-App Purchases:
- In App Store Connect, go to your app → "In-App Purchases"
- Click "+" to create new in-app purchase
- Choose type (Consumable or Non-Consumable)
- Set product ID, name, and pricing
- Submit for review
Step 5: Enter Credentials in BillDog
Open Project Settings → Settings → Store Setup and find the Apple App Store card. It has two parts, each with its own save button.
5.1: App details (and the optional API key)
- Issuer ID: from Step 1
- Key ID: the App Store Connect API key's ID from Step 3 (leave blank if you skipped it)
- Bundle ID: from Step 1 (required)
- Apple ID (App Information): from Step 1 (required)
- Private Key (.p8 contents): the App Store Connect API key's .p8 from Step 3. Choose the file or paste its contents (leave blank if you skipped Step 3)
Click "Save & Verify". If the In-App Purchase key is not saved yet, the card says so. That is expected: continue with 5.2.
5.2: In-App Purchase key (required)
- In-App Purchase Key ID: from Step 2
- In-App Purchase Private Key (.p8 contents): the .p8 file from Step 2
Click "Save In-App Purchase key". BillDog verifies again with Apple.
- When Apple confirms the app is yours, the card shows the app as proven, and shows App Store Server Notifications URL (Version 2): your project's own notification URL, used in Step 6
- If you added the App Store Connect API key, click "Sync products" to copy your in-app purchases and subscriptions into Synced Products, where you import them into your catalog
Step 6: Configure Server Notifications
Server notifications allow BillDog to receive real-time updates about subscription events: renewals, refunds, expirations and billing retries.
?r= followed by your project's route key, and you find it in Project Settings → Settings → Store Setup under App Store Server Notifications URL (Version 2) once Step 5 has verified your credentials. There is no shared URL: https://api.billdog.io/v1/webhooks-apple on its own refuses every notification.- Copy your notification URL from Project Settings → Settings → Store Setup
- In App Store Connect, go to "Apps" and select your app
- Go to "General" → "App Information"
- Scroll down to "App Store Server Notifications"
- Production Server URL: paste your notification URL and choose Version 2
- Sandbox Server URL: paste the same URL and choose Version 2. Sandbox and TestFlight purchases notify only the Sandbox URL, so leaving it empty means BillDog never hears about sandbox renewals, refunds or expirations
- Click "Save"
Verification & Testing
Test Product Sync
With the App Store Connect API key saved, click "Sync products" on the Apple App Store card. Your in-app purchases and subscriptions appear under Monetization → Synced Products, ready to import.
Test Server Notifications
Once the notification URL is saved in App Store Connect, make a sandbox purchase. "Last notification" on the Apple App Store card in Project Settings → Settings → Store Setup shows when the first notification arrived.
Sandbox Testing
Make test purchases on a real device signed in with a Sandbox Apple Account. These transactions appear in BillDog with a "sandbox" flag. Purchases made against an Xcode StoreKit configuration file are not store purchases: BillDog refuses them and never records them.
Creating Sandbox Test Accounts
- In App Store Connect, go to "Users and Access" → "Sandbox"
- Click "+" to create a new sandbox tester
- Fill in email and password (these are test accounts, not real Apple IDs)
- On your test device, sign in under Settings → Developer → Sandbox Apple Account (not your real Apple Account), then buy in your app
Troubleshooting
Verification Failed
- Check that the In-App Purchase key (Step 2) is saved, not only the App Store Connect API key
- Ensure the .p8 file contents are copied correctly (including BEGIN/END markers)
- Verify the Issuer ID, the Key ID, the Bundle ID and the Apple ID match exactly
- Make sure the key hasn't been revoked in App Store Connect
Products Not Syncing
- Product sync needs the App Store Connect API key (Step 3) with App Manager or Admin access
- Ensure in-app purchases/subscriptions are in "Ready to Submit" or "Approved" state
- Wait a few minutes and try the "Sync Products" button again
- Check that your app has at least one version submitted to App Store Connect
Webhook Not Receiving Notifications
- Check that App Store Connect has your project's own URL (ending in
?r=…) from Project Settings → Settings → Store Setup, nothttps://api.billdog.io/v1/webhooks-appleon its own - Check that you've set both the Production and the Sandbox Server URL, each as Version 2
- Apple may take a few minutes to start sending notifications
- Test with a sandbox purchase to trigger notifications
Was this page helpful?
Or rate this page: