BestPaid guides · Android · Google Play Billing

Google Play subscriptions API v1 get, refund and revoke shut down August 31, 2027: move to subscriptionsv2 and orders.refund

Google deprecated purchases.subscriptions.get, refund and revoke in the Google Play Developer API on May 21, 2025 and shuts them down on August 31, 2027. Servers that validate Play subscription tokens or refund and revoke with them must move to purchases.subscriptionsv2 and orders.refund.

Sources: Google's Play Developer API deprecations page (last updated November 13, 2026), the API reference for purchases.subscriptionsv2, orders.refund and purchases.subscriptions.acknowledge, the subscription lifecycle guide, the Real-time developer notifications (RTDN) reference, the testing guide and the May 2022 subscription changes guide. Checked on November 21, 2026. This page is our own summary; follow the vendor's documentation for every detail.

What shuts down and when

Deprecated (what it did)Google's replacement
subscriptions.get: status and expiry for a tokensubscriptionsv2.get, without the subscription ID
subscriptions.refund: refund, while the subscription stays valid and keeps renewingsubscriptionsv2.get for each item's latestSuccessfulOrderId, then orders.refund
subscriptions.revoke: refund and end access at oncesubscriptionsv2.revoke with a revocationContext
The latestOrderId field of SubscriptionPurchaseV2lineItems[].latestSuccessfulOrderId
subscriptionId in subscription RTDNsNone
RTDN type SUBSCRIPTION_PRICE_CHANGE_CONFIRMED (8)SUBSCRIPTION_PRICE_CHANGE_UPDATED (19)

Google says you may request an extension until November 1, 2027 by submitting a support ticket through Play Console > Help; as of November 21, 2026, it sets no deadline for asking. Client libraries released after July 1, 2026 no longer include these features and APIs; existing ones keep access until the shutdown.

As of November 21, 2026, Google's reference keeps only acknowledge, cancel and defer under purchases.subscriptions. Of these, cancel and defer (replaced by subscriptionsv2.cancel and subscriptionsv2.defer) were deprecated on May 19, 2026 together with the Orders API field Order.lineItems.subscriptionDetails.offer_phase (replaced by offer_phase_details); they shut down on August 31, 2028, extendable to November 1, 2028. Keep acknowledge: it is not deprecated, and subscriptionsv2 has no acknowledge method.

Who is affected

If a hosted platform calls Google for you, that part is its job. The Play Billing Library in the app has its own deadlines (see our Play Billing Library guide).

1. Find the calls

# v1 calls (Java, Python, Node.js, .NET, raw HTTP)
grep -rniE 'subscriptions(\(\))?\.(get|refund|revoke)|purchases/subscriptions/' .

# v1 fields, deprecated RTDN pieces
grep -rniE 'expiryTimeMillis|paymentState|developerPayload|latestOrderId|subscriptionId|PRICE_CHANGE_CONFIRMED' .

monetization.subscriptions hits are the API for managing subscription products, not part of this shutdown. acknowledge still takes a subscriptionId, which its reference says has not been required since May 21, 2025 and is not recommended for subscriptions with add-ons; where you pass it, use lineItems[].productId. A current client library turns missed calls into build errors in Java, C# or TypeScript: a good final check.

2. Replace the calls

subscriptionsv2.get needs only the package name and token, works for subscriptions bought before Google's May 2022 changes too, and uses the same androidpublisher OAuth scope. With Google's Python client:

from googleapiclient.discovery import build
publisher = build("androidpublisher", "v3", credentials=creds)

# Was: subscriptions().get(packageName, subscriptionId, token)
sub = publisher.purchases().subscriptionsv2().get(
    packageName=pkg, token=token).execute()
for item in sub.get("lineItems", []):
    print(sub["subscriptionState"], item["productId"],
          item.get("expiryTime"), item.get("latestSuccessfulOrderId"))

# Was: subscriptions().refund(...)
publisher.orders().refund(packageName=pkg, orderId=order_id).execute()

# Was: subscriptions().revoke(...): now with a refund type
publisher.purchases().subscriptionsv2().revoke(
    packageName=pkg, token=token,
    body={"revocationContext": {"etag": sub["etag"],
                                "proratedRefund": {}}}).execute()

subscriptionsv2.revoke requires one refund type: fullRefund (the latest charge on each item), proratedRefund (the time left) or itemBasedRefund with a productId (one item of a subscription with add-ons). With the optional etag, it proceeds only if the state still matches. orders.refund with revoke=true also ends access at once and stops a recurring subscription's future payments. Google says orders older than 3 years can't be refunded.

3. Map the fields

Google's mapping for recurring subscriptions:

v1 SubscriptionPurchasev2 SubscriptionPurchaseV2
countryCoderegionCode
orderIdlineItems.latestSuccessfulOrderId; a pending order ID is under renewalDeclined.pendingOrderId in inGracePeriodStateContext or onHoldStateContext
startTimeMillisstartTime
expiryTimeMillislineItems.expiryTime, one per item
autoResumeTimeMillispausedStateContext.autoResumeTime
autoRenewinglineItems.autoRenewingPlan.autoRenewEnabled
priceCurrencyCode, priceAmountMicroslineItems.autoRenewingPlan.recurringPrice
introductoryPriceInfolineItems.offerPhase.introductoryPrice
paymentStateNone. Pending: SUBSCRIPTION_STATE_PENDING, SUBSCRIPTION_STATE_IN_GRACE_PERIOD, SUBSCRIPTION_STATE_ON_HOLD. Received: SUBSCRIPTION_STATE_ACTIVE. Free trial: lineItems.offerPhase.freeTrial. Deferred upgrade or downgrade: lineItems.deferredItemReplacement
developerPayloadNone (deprecated)
cancelReason, userCancellationTimeMillis, cancelSurveyResultcanceledStateContext
purchaseTypetestPurchase for tests, signupPromotion for promotions
promotionType, promotionCodesignupPromotion, on each line item
priceChangelineItems.autoRenewingPlan.priceChangeDetails
profileName, emailAddress, givenName, familyName, profileIdsubscribeWithGoogleInfo
externalAccountId, obfuscatedExternalAccountId, obfuscatedExternalProfileIdexternalAccountIdentifiers
linkedPurchaseToken, acknowledgementStateSame names

Types change too: times are RFC 3339 strings, not milliseconds; recurringPrice is a Money object (currencyCode, units, nanos) that, Google notes, ignores discounts and excludes taxes; acknowledgementState is an enum such as ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED, not 0 or 1, although Google's table says "no change". That table also misspells priceCurrencyCode and obfuscatedExternalProfileId.

Google's pages conflict (both last updated November 13, 2026): the May 2022 guide still maps orderId to latestOrderId and a deferred change to SUBSCRIPTION_STATE_PENDING, and says you can keep using cancel, defer, refund and revoke as before; the deprecations page contradicts all three, and we follow it.

On access, Google's lifecycle guide says: grant it on SUBSCRIPTION_STATE_ACTIVE; keep it in SUBSCRIPTION_STATE_IN_GRACE_PERIOD and, after SUBSCRIPTION_STATE_CANCELED, until expiryTime; give none while paused or on hold, or once SUBSCRIPTION_STATE_EXPIRED, which is also what a revoked subscription shows. Instead of developerPayload, match users through externalAccountIdentifiers, filled when the app passed an obfuscated account ID at purchase.

4. Real-time developer notifications

5. Test

Order of work

  1. List call sites and stored v1 fields, including support tools, jobs and reports.
  2. Write one adapter from SubscriptionPurchaseV2 to your entitlement record: state, plus product ID, expiry and order ID per item.
  3. Run it beside v1 on the same live tokens (old, trial, grace period, on hold, canceled, upgraded), fix mismatches, then switch validation and the RTDN handler.
  4. Move refunds to orders.refund and revokes to subscriptionsv2.revoke.
  5. Backfill stored subscriptions from v2; Google says a token works with the API until 60 days after expiration.
  6. Update the client library, delete v1 calls except acknowledge, and move cancel and defer too.
  7. If August 31, 2027 is out of reach, request the extension.
Subscription back end still on purchases.subscriptions.get? We update native, Unity, Flutter, React Native and Xamarin apps, and the purchase and push code behind them, to current SDKs and store rules at a fixed price. You keep your signing keys. It starts with a $290 check and a fixed quote within 2 business days.
See the app update offer