Hide

Purchases.subscriptions

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

Resource representations

A SubscriptionPurchase resource indicates the status of a user's subscription purchase.

{
  "kind": "androidpublisher#subscriptionPurchase",
  "startTimeMillis": long,
  "expiryTimeMillis": long,
  "autoRenewing": boolean
}
Property name Value Description Notes
autoRenewing boolean Whether the subscription will automatically be renewed when it reaches its current expiry time.
expiryTimeMillis long Time at which the subscription will expire, in milliseconds since Epoch.
kind string This kind represents a subscriptionPurchase object in the androidpublisher service.
startTimeMillis long Time at which the subscription was granted, in milliseconds since Epoch.

Methods

cancel
Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
defer
Defers a user's subscription purchase until a specified future expiration time.
get
Checks whether a user's subscription purchase is valid and returns its expiry time.
refund
Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur.
revoke
Refunds and immediately revokes a user's subscription purchase. Access to the subscription will be terminated immediately and it will stop recurring.