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.
| Deprecated (what it did) | Google's replacement |
|---|---|
subscriptions.get: status and expiry for a token | subscriptionsv2.get, without the subscription ID |
subscriptions.refund: refund, while the subscription stays valid and keeps renewing | subscriptionsv2.get for each item's latestSuccessfulOrderId, then orders.refund |
subscriptions.revoke: refund and end access at once | subscriptionsv2.revoke with a revocationContext |
The latestOrderId field of SubscriptionPurchaseV2 | lineItems[].latestSuccessfulOrderId |
subscriptionId in subscription RTDNs | None |
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.
purchases.subscriptions.get.expiryTimeMillis.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).
# 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.
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.
Google's mapping for recurring subscriptions:
v1 SubscriptionPurchase | v2 SubscriptionPurchaseV2 |
|---|---|
countryCode | regionCode |
orderId | lineItems.latestSuccessfulOrderId; a pending order ID is under renewalDeclined.pendingOrderId in inGracePeriodStateContext or onHoldStateContext |
startTimeMillis | startTime |
expiryTimeMillis | lineItems.expiryTime, one per item |
autoResumeTimeMillis | pausedStateContext.autoResumeTime |
autoRenewing | lineItems.autoRenewingPlan.autoRenewEnabled |
priceCurrencyCode, priceAmountMicros | lineItems.autoRenewingPlan.recurringPrice |
introductoryPriceInfo | lineItems.offerPhase.introductoryPrice |
paymentState | None. 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 |
developerPayload | None (deprecated) |
cancelReason, userCancellationTimeMillis, cancelSurveyResult | canceledStateContext |
purchaseType | testPurchase for tests, signupPromotion for promotions |
promotionType, promotionCode | signupPromotion, on each line item |
priceChange | lineItems.autoRenewingPlan.priceChangeDetails |
profileName, emailAddress, givenName, familyName, profileId | subscribeWithGoogleInfo |
externalAccountId, obfuscatedExternalAccountId, obfuscatedExternalProfileId | externalAccountIdentifiers |
linkedPurchaseToken, acknowledgementState | Same 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.
subscriptionsv2.get with its purchaseToken for the details.version, notificationType and purchaseToken; take product IDs from lineItems[].productId.SUBSCRIPTION_PRICE_CHANGE_UPDATED (type 19). Google still also sends the deprecated type 8 for subscriptions without add-ons; don't do the work twice.testPurchase.SubscriptionPurchaseV2 to your entitlement record: state, plus product ID, expiry and order ID per item.orders.refund and revokes to subscriptionsv2.revoke.acknowledge, and move cancel and defer too.