Skip to main content

subscriptionsv2

Overview

Namesubscriptionsv2
TypeResource
Idgoogledevelopers.androidpublisher.subscriptionsv2

Fields

NameDatatypeDescription
externalAccountIdentifiersobjectUser account identifier in the third-party service.
kindstringThis kind represents a SubscriptionPurchaseV2 object in the androidpublisher service.
subscribeWithGoogleInfoobjectInformation associated with purchases made with 'Subscribe with Google'.
lineItemsarrayItem-level info for a subscription purchase. The items in the same purchase should be either all with AutoRenewingPlan or all with PrepaidPlan.
latestOrderIdstringThe order id of the latest order associated with the purchase of the subscription. For autoRenewing subscription, this is the order id of signup order if it is not renewed yet, or the last recurring order id (success, pending, or declined order). For prepaid subscription, this is the order id associated with the queried purchase token.
subscriptionStatestringThe current state of the subscription.
testPurchaseobjectWhether this subscription purchase is a test purchase.
canceledStateContextobjectInformation specific to a subscription in canceled state.
regionCodestringISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted.
linkedPurchaseTokenstringThe purchase token of the old subscription if this subscription is one of the following: Re-signup of a canceled but non-lapsed subscription Upgrade/downgrade from a previous subscription. Convert from prepaid to auto renewing subscription. Convert from an auto renewing subscription to prepaid. * Topup a prepaid subscription.
startTimestringTime at which the subscription was granted. Not set for pending subscriptions (subscription was created but awaiting payment during signup).
acknowledgementStatestringThe acknowledgement state of the subscription.
pausedStateContextobjectInformation specific to a subscription in paused state.

Methods

NameAccessible byRequired Params
purchases_subscriptionsv2_getSELECTpackageName, token