Importing In App Products From The App Store Via Api
Overview
To effectively manage in-app monetization, subscriptions, and promotional campaigns for iOS apps, it's essential to maintain an up-to-date list of all products (SKUs) published in App Store Connect. These may include in-app purchases (consumable or non-consumable) and subscriptions used within an iOS app.
While it's possible to enter products manually in the Magify system, this approach quickly becomes inefficient when:
- The number of products is large
- Products are frequently updated
- Accuracy and time savings are important
To streamline the process, Magify supports automated product import via the App Store Connect API, using the /v1/inAppPurchases method and related endpoints.
Key benefits of the integration
- Full coverage of all active App Store in-app products
- Automatic syncing of new and updated SKUs without manual input
- Reduced workload for marketing and technical teams
- Data is refreshed regularly through API polling
Once products are imported into Magify, you can:
- Define custom parameters — what the user receives after purchase
- Configure usage context — visuals, campaigns, and how the product is presented
This integration ensures accuracy, reduces manual work, and enables scalable product management within your iOS app.
Requirements
Before integrating, make sure the following are in place:
Access to App Store Connect
- You have Admin or App Manager access to App Store Connect
- Your app has already published or draft in-app purchases
These products will be retrieved via the API.
App Store Connect API Key
You need an API key to authorize access to App Store Connect:
- Issuer ID
- Key ID
- Private Key (.p8 file)
You can create these under: Users and Access > Keys > App Store Connect API > Generate API Key
Creating and Managing API Keys
- Log into App Store Connect.
- In the top menu, go to the Users and Access section.

- Open the Integrations tab.
- In the left sidebar, select Keys > App Store Connect API.
- You will see your existing API keys (if any) and the Issuer ID for your team.
To create a new API key:
- Click the blue plus (+) icon under the Active section.

- Enter a name for the key (e.g.,
iap-sync-key
). - Choose access type: usually App Manager or Developer.
- Click Generate.

- Download the
.p8
private key file immediately — you won’t be able to download it again.


- Save the following securely and share with the Magify team:
- Issuer ID (displayed at the top of the section)
- Key ID (visible after key creation)
- Private key file (
.p8
format)

These credentials are required to generate a valid JWT for authenticating with the App Store Connect API.