iap command group provides comprehensive management of in-app purchases (IAP), including creation, pricing, localization, and submission workflows.
Overview
In-app purchases allow you to sell digital content and features within your app:- Consumables - Products that can be purchased multiple times (e.g., game currency)
- Non-Consumables - One-time purchases (e.g., premium features)
- Non-Renewing Subscriptions - Time-limited access that doesn’t auto-renew
List In-App Purchases
List all in-app purchases for an app.--app- App ID (orASC_APP_IDenv)
--limit- Results per page (1-200)--paginate- Fetch all pages automatically--next- Pagination URL--legacy- Use v1 endpoint (for backward compatibility)
Get IAP Details
Retrieve details for a specific in-app purchase.--id- In-app purchase ID
--legacy- Use v1 endpoint
Create In-App Purchase
Create a new in-app purchase product.--app- App ID (orASC_APP_IDenv)--type- IAP type:CONSUMABLE,NON_CONSUMABLE,NON_RENEWING_SUBSCRIPTION--ref-name- Reference name (internal identifier)--product-id- Product ID (must match your app’s bundle ID prefix)
--family-sharable- Enable Family Sharing (cannot be undone)
com.example.myapp, product IDs might be:
com.example.myapp.procom.example.myapp.coins100com.example.myapp.unlock
Update In-App Purchase
Update an existing in-app purchase.--id- In-app purchase ID
--ref-name- New reference name--family-sharable- Enable Family Sharing (cannot be disabled once enabled)
Delete In-App Purchase
Delete an in-app purchase.--id- In-app purchase ID--confirm- Confirm deletion
Pricing
View Pricing
View current pricing for in-app purchases in an app.Manage Price Points
Work with App Store price points and tiers.Manage Price Schedules
Configure pricing schedules for in-app purchases.Localizations
Manage in-app purchase localizations for different languages and regions.List Localizations
--limit- Results per page (1-200)--paginate- Fetch all pages
Create Localization
Update Localization
Delete Localization
Images and Screenshots
Upload Promotional Image
Upload a promotional image for an in-app purchase.- Format: PNG or JPG
- Size: 1024 x 1024 pixels
- Color space: RGB
- Maximum file size: 4MB
Manage Review Screenshots
Upload screenshots for App Review.Availability
Control which territories can purchase your in-app purchases.Get Availability
Set Availability
USA- United StatesCAN- CanadaGBR- United KingdomAUS- AustraliaJPN- Japan
List Availabilities
Promoted In-App Purchases
Promote in-app purchases on your App Store product page.Get Promoted Purchase
Create Promoted Purchase
Update Promotion Order
Offer Codes
Create promotional offer codes for in-app purchases.Create Offer Code
--one-time- One-time use codes--start-date- Start date (ISO 8601)--end-date- End date (ISO 8601)
Manage Offer Code Prices
Content
Manage hosted content for in-app purchases.Submission
Submit in-app purchases for review.- At least one localization
- Pricing configured
- Screenshots for review (if required)
- All required metadata fields completed
Common Workflows
Create Complete IAP
Bulk Update Availability
Export IAP Catalog
Family Sharing
Family Sharing allows up to six family members to share eligible in-app purchases. Enabling Family Sharing:- Only available for
NON_CONSUMABLEandNON_RENEWING_SUBSCRIPTIONtypes - Cannot be disabled once enabled
- Consumables are never shareable
Best Practices
Product IDs
- Use descriptive, hierarchical naming:
com.example.app.category.item - Include version or tier in recurring products:
com.example.app.premium.v2 - Keep IDs under 100 characters
- Use only alphanumerics, dots, and underscores
Localizations
- Provide localizations for all supported app languages
- Keep names concise (30 characters or less)
- Write clear descriptions that explain value
- Review translations with native speakers
Pricing
- Research price tiers across key markets
- Consider regional purchasing power
- Test price sensitivity with A/B testing
- Use offer codes for promotions rather than changing base price
Testing
- Test all IAPs in sandbox environment before release
- Verify purchase flows on multiple devices
- Test restoration of non-consumables
- Validate receipt verification on your backend
Related Commands
- Subscriptions - Auto-renewable subscriptions
- Apps - Manage app metadata and settings
- Pricing - Territory pricing and currencies
