Purchases.products

For a list of methods for this resource, see the end of this page.

Resource representations

A ProductPurchase resource indicates the status of a user's inapp product purchase.

{
  "kind": "androidpublisher#productPurchase",
  "purchaseTimeMillis": long,
  "purchaseState": integer,
  "consumptionState": integer,
  "developerPayload": string,
  "orderId": string,
  "purchaseType": integer,
  "acknowledgementState": integer
}
Property name Value Description Notes
acknowledgementState integer The acknowledgement state of the inapp product. Possible values are:
  1. Yet to be acknowledged
  2. Acknowledged
consumptionState integer The consumption state of the inapp product. Possible values are:
  1. Yet to be consumed
  2. Consumed
developerPayload string A developer-specified string that contains supplemental information about an order.
kind string This kind represents an inappPurchase object in the androidpublisher service.
orderId string The order id associated with the purchase of the inapp product.
purchaseState integer The purchase state of the order. Possible values are:
  1. Purchased
  2. Canceled
purchaseTimeMillis long The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
purchaseType integer The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are:
  1. Test (i.e. purchased from a license testing account)
  2. Promo (i.e. purchased using a promo code)
  3. Rewarded (i.e. from watching a video ad instead of paying)

Methods

acknowledge
Acknowledges a purchase of an inapp item.
get
Checks the purchase and consumption status of an inapp item.