Android · Schema

ProductPurchase

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

AIAndroidAutomotiveGoogleMachine 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