Google Play Developer Purchases API

The Purchases API from Google Play Developer — 12 operation(s) for purchases.

GitHub OpenAPI

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge Acknowledge an in-app purchase · Acknowledge products #
Ask an LLM
“How do I acknowledge an in-app purchase so I can deliver the product?”
“Can I attach a developer payload when acknowledging an in-app purchase?”
Tell an agent
Acknowledge in-app purchase {token} for {productId} in {packageName}.
Acknowledge in-app purchase {token} of {productId} in {packageName} with payload {developerPayload}.
POST /androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume Consume an in-app purchase · Consume products #
Ask an LLM
“How do I consume an in-app purchase so it can be bought again?”
“Can I consume an in-app purchase by its token?”
Tell an agent destructive · confirm first
Consume in-app purchase {token} for {productId} in {packageName}.
Mark in-app purchase {token} of {productId} in {packageName} as consumed.
GET /androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token} Check an in-app purchase's status · Get products #
Ask an LLM
“Has a given in-app purchase been consumed?”
“How do I check the purchase and consumption status of an in-app item?”
Tell an agent
Check in-app purchase {token} for {productId} in {packageName}.
Show whether in-app purchase {token} of {productId} in {packageName} has been consumed.
GET /androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases List refunded or charged-back purchases · List voidedpurchases #
Ask an LLM
“Which in-app purchases were refunded or charged back?”
“Can I list voided purchases for a time range?”
Tell an agent
List voided purchases for {packageName}.
List voided purchases for {packageName} between {startTime} and {endTime}.
GET /androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token} Check an in-app purchase (v2) · Getproductpurchasev2 productsv2 #
Ask an LLM
“How do I check an in-app purchase with the v2 endpoint?”
“Can I look up an in-app purchase by its token in the v2 API?”
Tell an agent
Check in-app purchase {token} for {packageName} with the v2 endpoint.
Get the v2 purchase status of {token} in {packageName}.
POST /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge Acknowledge a subscription purchase · Acknowledge subscriptions #
Ask an LLM
“How do I acknowledge a subscription purchase so I can grant access?”
“Can I attach a developer payload when acknowledging a subscription?”
Tell an agent
Acknowledge subscription purchase {token} for {subscriptionId} in {packageName}.
Acknowledge subscription {token} of {subscriptionId} in {packageName} with payload {developerPayload}.
POST /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer Defer a subscription purchase (legacy) · Defer subscriptions #
Ask an LLM
“Can I defer a subscription purchase until a future date with the legacy endpoint?”
“Is the older subscription defer endpoint deprecated?”
Tell an agent
Defer subscription purchase {token} for {subscriptionId} in {packageName} to {deferralInfo}.
Use the legacy defer endpoint to push subscription {token} of {subscriptionId} in {packageName} to {deferralInfo}.
POST /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel Cancel a subscription purchase (legacy) · Cancel subscriptions #
Ask an LLM
“Can I cancel a subscription purchase with the legacy endpoint?”
“Is the older subscription cancel endpoint deprecated?”
Tell an agent destructive · confirm first
Cancel subscription purchase {token} for {subscriptionId} in {packageName} with the legacy endpoint.
Use the legacy cancel endpoint to end subscription {token} of {subscriptionId} in {packageName}.
GET /androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token} Get a subscription purchase (v2) · Get subscriptionsv2 #
Ask an LLM
“How do I get metadata about a subscription purchase with the v2 endpoint?”
“Can I look up a subscription by its token in the v2 API?”
Tell an agent
Get subscription {token} for {packageName} with the v2 endpoint.
Show v2 subscription metadata for {token} in {packageName}.
POST /androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke Revoke a subscription purchase · Revoke subscriptionsv2 #
Ask an LLM
“How do I revoke a subscription purchase for a user?”
“Can I revoke a subscription with a revocation context?”
Tell an agent destructive · confirm first
Revoke subscription {token} for {packageName}.
Revoke subscription {token} in {packageName} with context {revocationContext}.
POST /androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:defer Deferring a subscription renewal · Defer subscriptionsv2 #
Ask an LLM
“How do I defer a subscription renewal to a future date?”
“Can I defer a subscription with a deferral context?”
Tell an agent
Deferring subscription {token} for {packageName}.
Deferring subscription {token} in {packageName} with deferral context {deferralContext}.
POST /androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel Cancel a subscription purchase · Cancel subscriptionsv2 #
Ask an LLM
“How do I cancel a subscription purchase for a user?”
“Can I cancel a subscription with a cancellation context?”
Tell an agent destructive · confirm first
Cancel subscription {token} for {packageName}.
Cancel subscription {token} in {packageName} with context {cancellationContext}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-play:google-play-purchases-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-play-purchases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play Android Developer Purchases API
  version: v3
  description: Generated from Google's published Discovery document for Google Play Android Developer API (androidpublisher v3, revision 20261111). 12 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://androidpublisher.googleapis.com
tags:


# --- truncated at 32 KB (69 KB total) ---
# Full source: https://artifacts.apis.io/google-play/openapi/google-play-purchases-api-openapi.yml