The latestOrderId field in SubscriptionPurchaseV2 is deprecated. The following is the JSON
representation of the SubscriptionPurchaseV2 object.
| JSON representation |
|---|
{ "kind": string, "regionCode": string, "lineItems": [ { object ( |
| Fields | |
|---|---|
kind |
This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service. |
regionCode |
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted. |
lineItems[] |
Item-level info for a subscription purchase. The items in the same purchase should be either all with AutoRenewingPlan or all with PrepaidPlan. |
startTime |
Time at which the subscription was granted. Not set for pending subscriptions (subscription was created but awaiting payment during signup). Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
subscriptionState |
The current state of the subscription. |
latestOrderId |
Deprecated: Use lineItems.latest_successful_order_id instead. The 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. |
linkedPurchaseToken |
The 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. |
pausedStateContext |
Additional context around paused subscriptions. Only present if the subscription currently has subscriptionState SUBSCRIPTION_STATE_PAUSED. |
canceledStateContext |
Additional context around canceled subscriptions. Only present if the subscription currently has subscriptionState SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED. |
testPurchase |
Only present if this subscription purchase is a test purchase. |
acknowledgementState |
The acknowledgement state of the subscription. |
externalAccountIdentifiers |
User account identifier in the third-party service. |
subscribeWithGoogleInfo |
User profile associated with purchases made with 'Subscribe with Google'. |
etag |
Entity tag representing the current state of the subscription. The developer will provide this etag for subscription actions. This etag is always present for auto-renewing and prepaid subscriptions. |
outOfAppPurchaseContext |
Additional context for out of app purchases. This information is only present for re-subscription purchases (subscription purchases made after the previous subscription of the same product has expired) made through the Google Play subscriptions center. This field will be removed after you acknowledge the subscription. |