mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #438] Add consolidated asc iap prices command to reduce IAP pricing lookup from ~3 min to seconds #124
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Feb 7, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/438
Problem
Getting the current price of all IAPs in an app requires multiple sequential CLI calls and takes ~3 minutes even for a single IAP. A user reported this in a tweet:
Current workflow (per IAP)
To get full pricing info for a single IAP, an agent currently has to run 4–6 commands sequentially:
asc iap list --app <APP_ID>— discover IAPsasc iap price-schedules get --iap-id <IAP_ID>— get schedule IDasc iap price-schedules base-territory --schedule-id <SCHEDULE_ID>— get base territoryasc iap price-schedules automatic-prices --schedule-id <SCHEDULE_ID> --paginate— auto pricesasc iap price-schedules manual-prices --schedule-id <SCHEDULE_ID> --paginate— manual pricesasc iap price-points list --iap-id <IAP_ID> --territory USA --paginate— map price point to dollar amountFor an app with N IAPs, this becomes 4–6×N API calls, all sequential. Each call has network latency + JWT auth overhead, so this adds up fast.
Proposed solution
1. New
asc iap pricescommand (consolidated)A single command that returns a complete pricing summary for one or all IAPs in an app:
Output should include (per IAP):
Example JSON output:
2. Parallel API calls internally
The implementation should:
include/fieldsquery params where the API supports it3. Use API
includeandfieldsparametersSeveral App Store Connect API endpoints support
includeparameters that can reduce round-trips:GET /v1/inAppPurchasePriceSchedules/{id}?include=manualPrices,automaticPrices,baseTerritory— fetch schedule + prices + territory in one callfields[inAppPurchasePrices]to limit response sizeThis alone could reduce per-IAP calls from 4–6 down to 1–2.
Implementation checklist
includesupport to existingprice-schedules get(fetch related resources in one call)internal/cli/iap/prices.gowith the consolidatedasc iap pricescommandinternal/cli/iap/iap.goandinternal/cli/registry/registry.go--output json|table|markdownformats--territoryfilter (optional, show only specific territory prices)Impact