mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-24 23:25:55 +03:00
[GH-ISSUE #649] Pricing: support tier-based selection for price points #181
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#181
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 18, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/649
Originally assigned to: @mithileshchellappan on GitHub.
Problem
Several commands require an opaque
price-pointID (orPRICE_POINT_IDinside--pricesentries). In practice, people think in terms of a tier (sorted list of price points for a base territory like USA) or a customer price (e.g. 4.99).Today, to pick a price point you have to:
Examples of affected commands:
asc pricing schedule create --app APP_ID --price-point PRICE_POINT_ID --base-territory USA --start-date 2024-03-01asc subscriptions prices add --id SUB_ID --price-point PRICE_POINT_ID [--territory USA]asc iap price-schedules create --iap-id IAP_ID --base-territory USA --prices PRICE_POINT_ID:2024-03-01Desired behavior
Allow specifying a tier (and/or a customer price) instead of a raw price point ID.
Important note: Apple no longer exposes official numbered tiers in the ASC API. This would be a CLI-defined convenience layer built on top of price points.
Proposal
1) Compute tiers dynamically (API-derived)
customerPrice(numeric) ascending.{tier, id, customerPrice, proceeds, ...}in output.2) Add tier/price resolution flags (mutually exclusive)
For commands that currently accept a price point ID, add one (or both) of:
--tier <int>: resolve to the corresponding price point ID for--territory(or inferred base territory where applicable)--price <decimal>: resolve by exact customer price match for--territoryKeep
--price-pointas the escape hatch.3) Provide a way to list tiers
Add a listing view that prints tier + price point mapping for a territory. Options:
asc pricing tiers --app APP_ID --territory USAasc pricing price-pointswith a--with-tiers/--tiersoutput mode4) Caching + refresh
To avoid repeated API calls and make this ergonomic:
--refresh(or TTL) to re-fetchasOfmetadata in JSON so tier tables are reproducibleAcceptance criteria
asc pricing schedule createusing--tieror--priceinstead of--price-point.asc subscriptions prices addusing--tieror--priceinstead of--price-point.--output table/--output markdown) and JSON.--tier,--price,--price-pointare mutually exclusive; invalid tier/price produces exit code 2 with a clear error.internal/cli/cmdtestcoverage withhttptestfixtures.Notes / considerations
--territory).