Validate a Google Play subscription using purchases.subscriptionsv2.get

domain: google-play-developer-api · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate the service account with the androidpublisher OAuth scope as described for one-time products
  2. Receive the purchaseToken from the client after a subscription purchase or renewal
  3. GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}
  4. Inspect the SubscriptionPurchaseV2 response: check lineItems[].expiryTime for the current period end, and subscriptionState (SUBSCRIPTION_STATE_ACTIVE, SUBSCRIPTION_STATE_IN_GRACE_PERIOD, etc.) to determine access
  5. Store the purchaseToken durably and re-query on each session to detect cancellations, pauses, or billing issues in real time

Known gotchas

Related routes

Validate a Google Play in-app product purchase server-side using purchases.products.get
google-play-developer-api · 5 steps · unrated
Integrate Play Integrity API standard request flow for Android server-side verification
developer.android.com · 6 steps · unrated
Redeem Google Play in-app purchases via PlayFab Economy v2 RedeemGooglePlayInventoryItems
playfab · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans