Android · Schema

ProductPurchase

Represents an in-app product purchase. Contains the purchase state, consumption status, and order information.

Artificial IntelligenceAndroidAutomotiveGoogleMachine-LearningMobile DevelopmentSDKTVWearables

Properties

Name Type Description
kind string Resource type identifier.
purchaseTimeMillis string Time the product was purchased (milliseconds since Epoch).
purchaseState integer The purchase state of the order. 0 = Purchased, 1 = Canceled, 2 = Pending.
consumptionState integer The consumption state of the in-app product. 0 = Yet to be consumed, 1 = Consumed.
developerPayload string Developer-specified string for additional transaction information.
orderId string The order ID associated with the purchase.
purchaseType integer The type of purchase. 0 = Test (sandbox), 1 = Promo, 2 = Rewarded.
acknowledgementState integer The acknowledgement state of the in-app product. 0 = Yet to be acknowledged, 1 = Acknowledged.
purchaseToken string The purchase token generated at the time of purchase.
productId string The in-app product SKU.
quantity integer The quantity associated with the purchase.
obfuscatedExternalAccountId string An obfuscated version of the ID uniquely associated with the user's account in your app.
obfuscatedExternalProfileId string An obfuscated version of the ID uniquely associated with the user's profile in your app.
regionCode string ISO 3166-1 alpha-2 billing region code of the user.
refundableQuantity integer The quantity eligible for refund.
View JSON Schema on GitHub

JSON Schema

android-productpurchase-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ProductPurchase",
  "title": "ProductPurchase",
  "type": "object",
  "description": "Represents an in-app product purchase. Contains the purchase state, consumption status, and order information.",
  "properties": {
    "kind": {
      "type": "string",
      "description": "Resource type identifier.",
      "const": "androidpublisher#productPurchase",
      "example": "example_value"
    },
    "purchaseTimeMillis": {
      "type": "string",
      "format": "int64",
      "description": "Time the product was purchased (milliseconds since Epoch).",
      "example": "example_value"
    },
    "purchaseState": {
      "type": "integer",
      "description": "The purchase state of the order. 0 = Purchased, 1 = Canceled, 2 = Pending.",
      "enum": [
        0,
        1,
        2
      ],
      "example": 0
    },
    "consumptionState": {
      "type": "integer",
      "description": "The consumption state of the in-app product. 0 = Yet to be consumed, 1 = Consumed.",
      "enum": [
        0,
        1
      ],
      "example": 0
    },
    "developerPayload": {
      "type": "string",
      "description": "Developer-specified string for additional transaction information.",
      "deprecated": true,
      "example": "example_value"
    },
    "orderId": {
      "type": "string",
      "description": "The order ID associated with the purchase.",
      "example": "500123"
    },
    "purchaseType": {
      "type": "integer",
      "description": "The type of purchase. 0 = Test (sandbox), 1 = Promo, 2 = Rewarded.",
      "enum": [
        0,
        1,
        2
      ],
      "example": 0
    },
    "acknowledgementState": {
      "type": "integer",
      "description": "The acknowledgement state of the in-app product. 0 = Yet to be acknowledged, 1 = Acknowledged.",
      "enum": [
        0,
        1
      ],
      "example": 0
    },
    "purchaseToken": {
      "type": "string",
      "description": "The purchase token generated at the time of purchase.",
      "example": "example_value"
    },
    "productId": {
      "type": "string",
      "description": "The in-app product SKU.",
      "example": "500123"
    },
    "quantity": {
      "type": "integer",
      "description": "The quantity associated with the purchase.",
      "example": 10
    },
    "obfuscatedExternalAccountId": {
      "type": "string",
      "description": "An obfuscated version of the ID uniquely associated with the user's account in your app.",
      "example": "500123"
    },
    "obfuscatedExternalProfileId": {
      "type": "string",
      "description": "An obfuscated version of the ID uniquely associated with the user's profile in your app.",
      "example": "500123"
    },
    "regionCode": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 billing region code of the user.",
      "example": "example_value"
    },
    "refundableQuantity": {
      "type": "integer",
      "description": "The quantity eligible for refund.",
      "example": 10
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/android-productpurchase"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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