Agent commands

asc iap commands: create, import and set up in-app purchases, manage their versions, localizations, images, prices, availability, review screenshots, promoted purchases and offer codes.

asc iap manages an app’s in-app purchases (consumable, non-consumable and non-renewing subscription) in App Store Connect: the products, their versions with localizations and images, price schedules and availability, review screenshots, promoted purchases and offer codes. Auto-renewable subscriptions are under asc subscriptions. Picking an Apple team, output, pagination, --confirm and exit codes work as described on the asc page; the flag tables below leave out --output, --pretty, --limit, --next, --paginate and the --fields / --…-fields flags, which are explained there. “Required.” marks the flags the command’s help lists as required. --app takes the App Store Connect app ID and falls back to ASC_APP_ID. Where --iap-id accepts an in-app purchase ID, product ID or exact current name, a product ID or name also needs --app. asc: in-app purchases and subscriptions has a summary of this family with the related ones.

list

List in-app purchases for an app.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID). —
--include Include relationships (comma-separated, v2 only): inAppPurchaseLocalizations, content, appStoreReviewScreenshot, promotedPurchase, iapPriceSchedule, inAppPurchaseAvailability, images, offerCodes, versions. —
--include-versions Include related in-app purchase versions (v2 only). false
--legacy Use legacy v1 in-app purchases endpoint. false
--name Filter by name(s), comma-separated. —
--product-id Filter by product ID(s), comma-separated. —
--sort Sort by (comma-separated): name, -name, inAppPurchaseType, -inAppPurchaseType. —
--state Filter by state(s), comma-separated: MISSING_METADATA, WAITING_FOR_UPLOAD, PROCESSING_CONTENT, READY_TO_SUBMIT, WAITING_FOR_REVIEW, IN_REVIEW, DEVELOPER_ACTION_NEEDED, PENDING_BINARY_APPROVAL, APPROVED, DEVELOPER_REMOVED_FROM_SALE, REMOVED_FROM_SALE, REJECTED. —
--type Filter by type(s), comma-separated: CONSUMABLE, NON_CONSUMABLE, NON_RENEWING_SUBSCRIPTION. —
--versions-limit Maximum included versions (1-50, v2 only). —
Terminal window
asc iap list --app "APP_ID"

versions

Manage versioned in-app purchase review content.

versions create

Create an in-app purchase version.

Flag What it does Default
--iap-id In-app purchase ID. Required. —
Terminal window
asc iap versions create --iap-id "IAP_ID"

versions list

List versions for an in-app purchase.

To find the in-app purchase ID, list the app’s in-app purchases and use the returned id field:

Terminal window
asc iap list --app "APP_ID" --paginate --output json
Flag What it does Default
--iap-id In-app purchase ID. Required. —
--images-limit Maximum included images (1-50). —
--include Include relationships: inAppPurchase,image,images,localizations. —
--localizations-limit Maximum included localizations (1-50). —
--state Filter by state (comma-separated). —
Terminal window
asc iap versions list --iap-id "IAP_ID"

versions view

View an in-app purchase version.

Flag What it does Default
--images-limit Maximum included images (1-50). —
--include Include relationships: inAppPurchase,image,images,localizations. —
--localizations-limit Maximum included localizations (1-50). —
--version-id In-app purchase version ID. Required. —
Terminal window
asc iap versions view --version-id "VERSION_ID" --include localizations,images

versions image

View the primary image for an IAP version.

Flag What it does Default
--version-id In-app purchase version ID. Required. —

versions images

Manage version-scoped IAP review images.

versions images list

List images for an IAP version.

Flag What it does Default
--version-id In-app purchase version ID. Required. —

versions images create

Upload an image for an IAP version.

Flag What it does Default
--file Path to image file. Required. —
--version-id In-app purchase version ID. Required. —
Terminal window
asc iap versions images create --version-id "IAP_VERSION_ID" --file "./image.png"

versions images view

View a version-scoped IAP image.

Flag What it does Default
--image-id Image ID. Required. —

versions images update

Update a version-scoped IAP image.

Flag What it does Default
--image-id Image ID. Required. —
--uploaded Set upload completion state: true or false. Required. —

versions images delete

Delete a version-scoped IAP image.

Flag What it does Default
--confirm Confirm deletion. Required. false
--image-id Image ID. Required. —

versions localizations

Manage version-scoped IAP localizations.

versions localizations list

List localizations for an IAP version.

Flag What it does Default
--include Include relationship: version. —
--version-id In-app purchase version ID. Required. —
Terminal window
asc iap versions localizations list --version-id "IAP_VERSION_ID"

versions localizations create

Create a localization for an IAP version.

Flag What it does Default
--description Description. —
--locale Locale (for example, en-US). Required. —
--name Localization name. Required. —
--version-id In-app purchase version ID. Required. —

versions localizations view

View a version-scoped IAP localization.

Flag What it does Default
--include Include relationship: version. —
--localization-id Localization ID. Required. —

versions localizations update

Update a version-scoped IAP localization.

Flag What it does Default
--clear-description Clear the description. false
--clear-name Clear the localization name. false
--description Description. —
--localization-id Localization ID. Required. —
--name Localization name. —
Terminal window
asc iap versions localizations update --localization-id "LOCALIZATION_ID" --name "New Name"

versions localizations delete

Delete a version-scoped IAP localization.

Flag What it does Default
--confirm Confirm deletion. Required. false
--localization-id Localization ID. Required. —

versions localizations import

Create or update localizations from a JSON file.

Creates or updates localizations for a version from one JSON file that maps each locale to the fields to set:

{"en-US": {"name": "Pro", "description": "Remove limits"}, "de-DE": {"name": "Pro"}}

Fields: name, description. Values must be non-empty strings. Omit a field to leave it unchanged; import never clears a field or deletes a locale. A locale missing from the version is created and needs name. An existing locale is updated only with the fields that differ, so running the same file again is safe.

The command reads the version’s localizations once and validates the whole plan before writing. --dry-run prints the plan without writing. With --confirm, each locale is written independently: a failed locale is reported and the others still run. The receipt lists every locale’s action and status, and the command exits non-zero when any locale failed.

Flag What it does Default
--confirm Confirm writing localizations (required unless --dry-run). false
--dry-run Print the create/update/skip plan without writing. false
--file Path to a JSON file mapping locales to fields. Required. —
--version-id In-app purchase version ID. Required. —
Terminal window
asc iap versions localizations import --version-id "VERSION_ID" --file "./localizations.json" --dry-run

View raw IAP version relationship linkages.

View relationship linkages.

Flag What it does Default
--iap-id In-app purchase ID. Required. —

View the primary image linkage.

Flag What it does Default
--version-id In-app purchase version ID. Required. —

View relationship linkages.

Flag What it does Default
--version-id In-app purchase version ID. Required. —

View relationship linkages.

Flag What it does Default
--version-id In-app purchase version ID. Required. —

versions submit

Add an IAP version to a review submission.

This version-scoped workflow replaces the deprecated product-scoped submission resource.

Flag What it does Default
--confirm Confirm adding the version to review. Required. false
--submission Review submission ID. Required. —
--version-id In-app purchase version ID. Required. —
Terminal window
asc iap versions submit --version-id "VERSION_ID" --submission "SUBMISSION_ID" --confirm

pricing

Manage in-app purchase pricing workflows.

pricing summary

Show consolidated in-app purchase pricing summary.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--iap-id In-app purchase ID, product ID, or exact current name. —
--territory Territory filter (accepts alpha-2, alpha-3, or exact English country name). —
Terminal window
asc iap pricing summary --app "APP_ID"

pricing price-points

List in-app purchase price points.

pricing price-points list

List price points for an in-app purchase.

Use --price to find a specific customer price, or --min-price / --max-price for a range. These filters read every page, so they cover all price points with or without --paginate. --territory accepts several territories. Use --include territory to return each price point’s territory and currency.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--iap-id In-app purchase ID, product ID, or exact current name. Required. —
--include Relationships to include (comma-separated): territory. —
--max-price Filter by maximum customer price. —
--min-price Filter by minimum customer price. —
--price Filter by exact customer price (e.g., 4.99). —
--territory Territory filter, comma-separated (accepts alpha-2, alpha-3, or exact English country name). —
Terminal window
asc iap pricing price-points list --iap-id "IAP_ID"

pricing price-points equalizations

List equalized price points for an in-app purchase price point.

Use --include territory to return each price point’s territory and currency.

Flag What it does Default
--id In-app purchase price point ID. Required. —
--include Relationships to include (comma-separated): territory. —
Terminal window
asc iap pricing price-points equalizations --id "PRICE_POINT_ID"

pricing schedules

Manage in-app purchase price schedules.

pricing schedules view

View in-app purchase price schedule.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--automatic-prices-limit limit[automaticPrices] when included (1-50). —
--iap-id In-app purchase ID, product ID, or exact current name. —
--include Include relationships: baseTerritory,manualPrices,automaticPrices. —
--manual-prices-limit limit[manualPrices] when included (1-50). —
--schedule-id Price schedule ID. —
Terminal window
asc iap pricing schedules view --iap-id "IAP_ID"

pricing schedules base-territory

Get base territory for a price schedule.

Flag What it does Default
--schedule-id Price schedule ID. Required. —
Terminal window
asc iap pricing schedules base-territory --schedule-id "SCHEDULE_ID"

pricing schedules create

Create an in-app purchase price schedule.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--base-territory Base territory: alpha-2, alpha-3, or English country name (e.g., US, USA, United States). Required. —
--iap-id In-app purchase ID, product ID, or exact current name. Required. —
--price Customer price (use instead of --prices for single-price schedule). —
--prices Manual prices: PRICE_POINT_ID[:START_DATE[:END_DATE]] entries. —
--refresh Force refresh of tier cache. false
--start-date Start date when using --tier or --price (YYYY-MM-DD). —
--tier Pricing tier number (use instead of --prices for single-price schedule). —
Terminal window
asc iap pricing schedules create --iap-id "IAP_ID" --base-territory "USA" --prices "PRICE_POINT_ID:2024-03-01"

pricing schedules manual-prices

List manual prices for an in-app purchase price schedule.

Flag What it does Default
--resolved Return the current effective price per territory. false
--schedule-id Price schedule ID. Required. —
Terminal window
asc iap pricing schedules manual-prices --schedule-id "SCHEDULE_ID"

pricing schedules automatic-prices

List automatic prices for an in-app purchase price schedule.

Flag What it does Default
--resolved Return the current effective price per territory. false
--schedule-id Price schedule ID. Required. —
Terminal window
asc iap pricing schedules automatic-prices --schedule-id "SCHEDULE_ID"

pricing ppp

Plan and apply purchasing-power-parity prices from a base price.

Finds the price point for --base-price in --base-territory and Apple’s equalized price for it in every territory the in-app purchase is priced in, multiplies each by the territory’s price level divided by the base territory’s (rounded to 4 decimals), then picks a price from that territory’s Apple price points with --round.

--round Picks
exact The calculated price; fails if it doesn’t exist.
nearest The closest price; exact ties choose the lower price.
up The lowest price greater than or equal to the calculation.
down The highest price less than or equal to the calculation.

Price levels come with the CLI: the World Bank PPP conversion factor (GDP) divided by the official exchange rate, latest year from 2021 through 2025, United States = 1. Territories without a price level are skipped and keep their current price.

--territory limits changes to the listed, currently priced territories; other manual prices and automatic pricing are kept. Without --territory, --confirm replaces the whole price schedule with a manual price for every priced territory (the base, each planned territory, and each skipped one at its current price); future scheduled price changes are not kept. With --start-date, current prices stay until that date. A territory that can’t be resolved stops the run before any change. After applying, prices are read back and compared with the plan.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--base-price Customer price in the base territory. Required. —
--base-territory Base territory (accepts alpha-2, alpha-3, or exact English country name). USA
--confirm Confirm replacing the price schedule (required unless --dry-run). false
--dry-run Show the purchasing-power plan without applying it. false
--iap-id In-app purchase ID, product ID, or exact current name. Required. —
--round Price-point resolution: exact, nearest, up, or down. nearest
--start-date Future start date (YYYY-MM-DD) for the new prices; current prices apply until then. —
--territory Only change these territories (comma-separated alpha-2, alpha-3, or English names). —
--workers Number of concurrent price-point ladder reads. 4
Terminal window
asc iap pricing ppp --iap-id "IAP_ID" --base-price "4.99" --dry-run

pricing availability

Manage in-app purchase availability.

pricing availability view

View in-app purchase availability.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--iap-id In-app purchase ID, product ID, or exact current name. Required. —
Terminal window
asc iap pricing availability view --iap-id "IAP_ID"

pricing availability set

Set in-app purchase availability in territories.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--available-in-new-territories Include new territories automatically. false
--iap-id In-app purchase ID, product ID, or exact current name. Required. —
--territories Territory inputs (comma-separated; accepts alpha-2, alpha-3, or exact English country names). Required. —
Terminal window
asc iap pricing availability set --iap-id "IAP_ID" --territories "US,Canada"

pricing availabilities

Inspect in-app purchase availability records.

pricing availabilities view

View an in-app purchase availability by ID.

Flag What it does Default
--id Availability ID. Required. —
Terminal window
asc iap pricing availabilities view --id "AVAILABILITY_ID"

pricing availabilities available-territories

List available territories for an availability.

Flag What it does Default
--id Availability ID. Required. —
Terminal window
asc iap pricing availabilities available-territories --id "AVAILABILITY_ID"

view

View an in-app purchase by ID.

Flag What it does Default
--id In-app purchase ID. Required. —
--include Include relationships (comma-separated, v2 only): inAppPurchaseLocalizations, pricePoints, content, appStoreReviewScreenshot, promotedPurchase, iapPriceSchedule, inAppPurchaseAvailability, images, offerCodes, versions. —
--include-versions Include related in-app purchase versions (v2 only). false
--legacy Use legacy v1 in-app purchase endpoint. false
--versions-limit Maximum included versions (1-50, v2 only). —
Terminal window
asc iap view --id "IAP_ID"

create

Create a new in-app purchase.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID). —
--family-sharable Enable Family Sharing (cannot be undone). false
--product-id Product ID (e.g., com.example.product). —
--ref-name Reference name. —
--review-note Review note for App Review. —
--type IAP type: CONSUMABLE, NON_CONSUMABLE, NON_RENEWING_SUBSCRIPTION. —
Terminal window
asc iap create --app "APP_ID" --type CONSUMABLE --ref-name "Pro" --product-id "com.example.pro"

import

Create in-app purchases in bulk from a JSON file.

Each product creates an in-app purchase, then its version-scoped localizations, then an optional App Store review screenshot. Pricing, availability and offers are not part of this command. reviewScreenshot paths resolve relative to the file’s folder and must stay inside it.

The file (unknown fields are rejected, at most 50 products):

{
  "products": [
    {
      "type": "CONSUMABLE",
      "referenceName": "Pro",
      "productId": "com.example.pro",
      "familySharable": false,
      "localizations": [
        {"locale": "en-US", "name": "Pro", "description": "Remove limits"}
      ],
      "reviewScreenshot": "shots/pro.png"
    }
  ]
}

type is CONSUMABLE, NON_CONSUMABLE or NON_RENEWING_SUBSCRIPTION. familySharable defaults to false, localizations may be empty, and reviewScreenshot is optional.

A product ID that already exists on the app fails the run before anything is created; --skip-existing skips and reports those products instead. If a create fails partway, the run stops and the receipt lists every product already created; nothing is rolled back.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID). Required. —
--confirm Confirm creating in-app purchases (required unless --dry-run). false
--dry-run Validate the file and print the plan without creating anything. false
--file Path to the JSON import file. Required. —
--skip-existing Skip product IDs that already exist on the app instead of failing. false
Terminal window
asc iap import --app "APP_ID" --file "./iap.json" --dry-run

setup

Create an in-app purchase with optional pricing.

Creates the in-app purchase and, optionally, its first localization and price schedule. By default it reads the result back from App Store Connect and verifies the in-app purchase, localization and current price; --no-verify skips that. The localization flags use Apple’s deprecated v1 localization resource; for new work, create an in-app purchase version and use versions localizations.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID). —
--base-territory Base territory input for the initial price schedule (accepts alpha-2, alpha-3, or exact English country name). —
--description Description for the first localization. —
--display-name Display name for the first localization. —
--family-sharable Enable Family Sharing (cannot be undone). false
--locale Locale for the first localization (e.g., en-US). —
--no-verify Skip post-create readback verification for faster execution. false
--price Customer price for the initial price schedule. —
--price-point-id Explicit price point ID for the initial price schedule. —
--product-id Product ID (e.g., com.example.product). —
--reference-name Reference name. —
--refresh Force refresh of the price-point tier cache when resolving --tier or --price. false
--review-note Review note for App Review. —
--start-date Start date for the initial price schedule (YYYY-MM-DD). —
--tier Pricing tier number for the initial price schedule. —
--type IAP type: CONSUMABLE, NON_CONSUMABLE, NON_RENEWING_SUBSCRIPTION. —
Terminal window
asc iap setup --app "APP_ID" --type NON_CONSUMABLE --reference-name "Pro Lifetime" --product-id "com.example.lifetime"

update

Update an in-app purchase.

Flag What it does Default
--family-sharable Enable Family Sharing (cannot be undone). false
--id In-app purchase ID. —
--ref-name Reference name. —
--review-note Review note for App Review. —
Terminal window
asc iap update --id "IAP_ID" --ref-name "New Name"

delete

Delete an in-app purchase.

Flag What it does Default
--confirm Confirm deletion. Required. false
--id In-app purchase ID. Required. —
Terminal window
asc iap delete --id "IAP_ID" --confirm

review-screenshots

Manage in-app purchase review screenshots.

review-screenshots view

View an in-app purchase review screenshot.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--iap-id In-app purchase ID, product ID, or exact current name. —
--screenshot-id Review screenshot ID. —
Terminal window
asc iap review-screenshots view --iap-id "IAP_ID"

review-screenshots create

Upload an in-app purchase review screenshot.

The file must be a PNG or JPEG named .png, .jpg or .jpeg. The command warns, and still uploads, when the size matches no documented App Store screenshot size (such as 1290x2796 for iPhone), the image has an alpha channel, or the image doesn’t fully decode. If App Store Connect rejects the image, delete the screenshot and upload a corrected file.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--file Path to screenshot file. Required. —
--iap-id In-app purchase ID, product ID, or exact current name. Required. —
Terminal window
asc iap review-screenshots create --iap-id "IAP_ID" --file "./review.png"

review-screenshots update

Update an in-app purchase review screenshot.

Flag What it does Default
--checksum Source file checksum (MD5). —
--confirm Confirm intent to replace a completed screenshot; update never deletes it automatically. false
--file Path to screenshot file; resumes an in-progress upload. —
--screenshot-id Review screenshot ID. —
--uploaded Mark upload complete: true or false. —
Terminal window
asc iap review-screenshots update --screenshot-id "SHOT_ID" --file "./review.png"

review-screenshots delete

Delete an in-app purchase review screenshot.

Flag What it does Default
--confirm Confirm deletion. Required. false
--screenshot-id Review screenshot ID. Required. —
Terminal window
asc iap review-screenshots delete --screenshot-id "SHOT_ID" --confirm

Manage promoted purchases for in-app purchases.

Only promoted purchases attached to in-app purchases are listed or modified. Link operations preserve any subscription promoted purchases already attached to the app.

List promoted purchases for in-app purchases in an app.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID). —
Terminal window
asc iap promoted-purchases list --app "APP_ID"

View a promoted purchase for an in-app purchase by ID.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--iap-id In-app purchase ID, product ID, or exact current name. —
--promoted-purchase-id Promoted purchase ID. —
Terminal window
asc iap promoted-purchases view --promoted-purchase-id "PROMO_ID"

Create a promoted purchase for an in-app purchase.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID). Required. —
--enabled Enable or disable the promoted purchase. —
--product-id In-app purchase ID. Required. —
--visible-for-all-users Visible for all users: true or false. Required. —
Terminal window
asc iap promoted-purchases create --app "APP_ID" --product-id "IAP_ID" --visible-for-all-users true

Update a promoted purchase for an in-app purchase.

Flag What it does Default
--enabled Enable or disable the promoted purchase. —
--promoted-purchase-id Promoted purchase ID. Required. —
--visible-for-all-users Visible for all users: true or false. —
Terminal window
asc iap promoted-purchases update --promoted-purchase-id "PROMO_ID" --visible-for-all-users false

Delete a promoted purchase for an in-app purchase.

Flag What it does Default
--confirm Confirm deletion. Required. false
--promoted-purchase-id Promoted purchase ID. Required. —
Terminal window
asc iap promoted-purchases delete --promoted-purchase-id "PROMO_ID" --confirm

Link or clear promoted purchases for in-app purchases while preserving subscriptions.

Only promoted purchases for in-app purchases are changed; those for subscriptions are kept.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID). Required. —
--clear Remove all promoted purchases from the app. false
--confirm Confirm removal when using --clear. false
--promoted-purchase-id Comma-separated promoted purchase IDs. —
Terminal window
asc iap promoted-purchases link --app "APP_ID" --promoted-purchase-id "PROMO_ID"

content

Fetch in-app purchase content metadata.

content view

View in-app purchase content metadata.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--content-id In-app purchase content ID. —
--iap-id In-app purchase ID, product ID, or exact current name. —
Terminal window
asc iap content view --iap-id "IAP_ID"

offer-codes

Manage in-app purchase offer codes.

offer-codes list

List offer codes for an in-app purchase.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--iap-id In-app purchase ID, product ID, or exact current name. Required. —
Terminal window
asc iap offer-codes list --iap-id "IAP_ID"

offer-codes view

View an offer code by ID.

Flag What it does Default
--offer-code-id Offer code ID. Required. —
Terminal window
asc iap offer-codes view --offer-code-id "CODE_ID"

offer-codes create

Create an offer code.

Flag What it does Default
--app App Store Connect app ID (or ASC_APP_ID; required when --iap-id uses a product ID or name). —
--eligibilities Customer eligibilities (comma-separated). —
--iap-id In-app purchase ID, product ID, or exact current name. Required. —
--name Offer code name. Required. —
--prices Prices: TERRITORY:PRICE_POINT_ID or TERRITORY:FREE entries (territory accepts alpha-2, alpha-3, or exact English country name). Required. —
Terminal window
asc iap offer-codes create --iap-id "IAP_ID" --name "SPRING" --prices "US:PRICE_POINT_ID"

offer-codes update

Update an offer code.

Flag What it does Default
--active Set active status: true or false. Required. —
--offer-code-id Offer code ID. Required. —
Terminal window
asc iap offer-codes update --offer-code-id "CODE_ID" --active true

offer-codes custom-codes

Manage custom codes for in-app purchase offer codes.

offer-codes custom-codes list

List custom codes for an offer code.

Flag What it does Default
--offer-code-id Offer code ID. Required. —
Terminal window
asc iap offer-codes custom-codes list --offer-code-id "OFFER_CODE_ID"

offer-codes custom-codes view

View a custom code by ID.

Flag What it does Default
--custom-code-id Custom code ID. Required. —
Terminal window
asc iap offer-codes custom-codes view --custom-code-id "CUSTOM_CODE_ID"

offer-codes custom-codes create

Create custom codes for an in-app purchase offer code.

Flag What it does Default
--custom-code Custom code value. Required. —
--expiration-date Expiration date (YYYY-MM-DD). —
--offer-code-id Offer code ID. Required. —
--quantity Number of codes to create (positive integer). Required. —
Terminal window
asc iap offer-codes custom-codes create --offer-code-id "OFFER_CODE_ID" --custom-code "SUMMER26" --quantity 100

offer-codes custom-codes update

Turn a custom code on or off.

Flag What it does Default
--active Set active (true/false). Required. —
--custom-code-id Custom code ID. Required. —
Terminal window
asc iap offer-codes custom-codes update --custom-code-id "CUSTOM_CODE_ID" --active false

offer-codes one-time-codes

Manage one-time use codes for in-app purchase offer codes.

offer-codes one-time-codes list

List one-time use code batches for an offer code.

Flag What it does Default
--offer-code-id Offer code ID. Required. —
Terminal window
asc iap offer-codes one-time-codes list --offer-code-id "OFFER_CODE_ID"

offer-codes one-time-codes view

View a one-time use code batch by ID.

Flag What it does Default
--one-time-code-id One-time use code batch ID. Required. —
Terminal window
asc iap offer-codes one-time-codes view --one-time-code-id "ONE_TIME_USE_CODE_ID"

offer-codes one-time-codes create

Generate one-time use codes for an in-app purchase offer code.

Flag What it does Default
--environment Offer code environment: PRODUCTION or SANDBOX. —
--expiration-date Expiration date (YYYY-MM-DD). Required. —
--offer-code-id Offer code ID. Required. —
--quantity Number of codes to generate (positive integer). Required. —
Terminal window
asc iap offer-codes one-time-codes create --offer-code-id "OFFER_CODE_ID" --quantity 100 --expiration-date "2026-12-31"

offer-codes one-time-codes update

Turn off a one-time use code batch.

Turning a batch off is permanent: Apple rejects --active true on an inactive batch, so --active false requires --confirm.

Flag What it does Default
--active Set active (true/false). Required. —
--confirm Confirm --active false, which is permanent. Required. false
--one-time-code-id One-time use code batch ID. Required. —
Terminal window
asc iap offer-codes one-time-codes update --one-time-code-id "ONE_TIME_USE_CODE_ID" --active false --confirm

offer-codes one-time-codes values

Fetch one-time use offer code values for a batch.

Flag What it does Default
--one-time-code-id One-time use code batch ID. Required. —
Terminal window
asc iap offer-codes one-time-codes values --one-time-code-id "ONE_TIME_USE_CODE_ID"

offer-codes prices

List prices for an offer code.

Flag What it does Default
--offer-code-id Offer code ID. Required. —
Terminal window
asc iap offer-codes prices --offer-code-id "OFFER_CODE_ID"