capabilities.work

Retire an Unpublished Subscription Product

A 4-step recipe with Android. We can help you get access.

Recipe · 4 steps

Retire an Unpublished Subscription Product

with Android · Plan & Entitlement Design

Check a subscription's base plans and offers, then delete it if unpublished or archive it if it was ever live.

  1. Read the subscription to see whether it carries base plans, which decides whether it can legally be deleted or must be archived.
  2. List the offers on the base plan. Offers are evidence the product was merchandised to real users, so the product must be archived rather than deleted.
  3. Archive the published subscription with a masked update that touches only the archived flag, preserving base plans, listings, and purchase history.
  4. Delete the subscription outright. Only reachable when the product never had a base plan, which is the sole condition Google Play permits deletion under.
What you'll need to have ready
  • packageName: The package name of the application (e.g. com.example.myapp).
  • productId: The id of the subscription product to retire.
  • basePlanId: The base plan id to inspect for offers during the pre-flight check.
  • latencyTolerance: Propagation latency tolerance for the archive update: PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE or PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT.
For your developer

Arazzo workflow android:retire-subscription-product, 4 operations: getSubscription → listSubscriptionOffers → updateSubscription → deleteSubscription. Specs on APIs.io.