Google Play Android Developer API
  1. monetization
Google Play Android Developer API
  • internalappsharingartifacts
    • /androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk
      POST
    • /androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle
      POST
  • applications
    • /androidpublisher/v3/applications/{packageName}/deviceTierConfigs
      GET
    • /androidpublisher/v3/applications/{packageName}/deviceTierConfigs
      POST
    • /androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}
      GET
  • edits
    • /androidpublisher/v3/applications/{packageName}/edits
      POST
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}
      DELETE
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/apks
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/apks
      POST
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted
      POST
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}
      POST
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
      PATCH
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
      POST
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
      PUT
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles
      POST
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/details
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/details
      PATCH
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/details
      PUT
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings
      DELETE
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}
      DELETE
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}
      PATCH
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}
      PUT
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}
      DELETE
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}
      POST
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}
      DELETE
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}
      PATCH
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}
      PUT
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}
      GET
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}
      PATCH
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}
      PUT
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}:commit
      POST
    • /androidpublisher/v3/applications/{packageName}/edits/{editId}:validate
      POST
  • generatedapks
    • /androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}
    • /androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download
  • inappproducts
    • /androidpublisher/v3/applications/{packageName}/inappproducts
    • /androidpublisher/v3/applications/{packageName}/inappproducts
    • /androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
    • /androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
    • /androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
    • /androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
  • orders
    • /androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund
  • monetization
    • /androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices
      POST
    • /androidpublisher/v3/applications/{packageName}/subscriptions
      GET
    • /androidpublisher/v3/applications/{packageName}/subscriptions
      POST
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
      DELETE
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
      GET
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
      PATCH
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}
      DELETE
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers
      GET
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers
      POST
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}
      DELETE
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}
      GET
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}
      PATCH
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate
      POST
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate
      POST
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate
      POST
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate
      POST
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices
      POST
    • /androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive
      POST
  • purchases
    • /androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}
    • /androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge
    • /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}
    • /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge
    • /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel
    • /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer
    • /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund
    • /androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke
    • /androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}
    • /androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases
  • reviews
    • /androidpublisher/v3/applications/{packageName}/reviews
    • /androidpublisher/v3/applications/{packageName}/reviews/{reviewId}
    • /androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply
  • systemapks
    • /androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants
    • /androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants
    • /androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}
    • /androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download
  • users
    • /androidpublisher/v3/{name}
    • /androidpublisher/v3/{name}
    • /androidpublisher/v3/{parent}/users
    • /androidpublisher/v3/{parent}/users
  • grants
    • /androidpublisher/v3/{parent}/grants
  1. monetization

/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}

PATCH
/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
monetization
Updates an existing subscription.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://androidpublisher.googleapis.com//androidpublisher/v3/applications//subscriptions/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "basePlans": [
        {
            "autoRenewingBasePlanType": {
                "billingPeriodDuration": "string",
                "gracePeriodDuration": "string",
                "legacyCompatible": true,
                "prorationMode": "SUBSCRIPTION_PRORATION_MODE_UNSPECIFIED",
                "resubscribeState": "RESUBSCRIBE_STATE_UNSPECIFIED"
            },
            "basePlanId": "string",
            "offerTags": [
                {
                    "tag": "string"
                }
            ],
            "otherRegionsConfig": {
                "eurPrice": {
                    "currencyCode": "string",
                    "nanos": 0,
                    "units": "string"
                },
                "newSubscriberAvailability": true,
                "usdPrice": {
                    "currencyCode": "string",
                    "nanos": 0,
                    "units": "string"
                }
            },
            "prepaidBasePlanType": {
                "billingPeriodDuration": "string",
                "timeExtension": "TIME_EXTENSION_UNSPECIFIED"
            },
            "regionalConfigs": [
                {
                    "newSubscriberAvailability": true,
                    "price": {
                        "currencyCode": "string",
                        "nanos": 0,
                        "units": "string"
                    },
                    "regionCode": "string"
                }
            ]
        }
    ],
    "listings": [
        {
            "benefits": [
                "string"
            ],
            "description": "string",
            "languageCode": "string",
            "title": "string"
        }
    ],
    "packageName": "string",
    "productId": "string",
    "taxAndComplianceSettings": {
        "eeaWithdrawalRightType": "WITHDRAWAL_RIGHT_TYPE_UNSPECIFIED",
        "taxRateInfoByRegionCode": {
            "property1": {
                "eligibleForStreamingServiceTaxRate": true,
                "taxTier": "TAX_TIER_UNSPECIFIED"
            },
            "property2": {
                "eligibleForStreamingServiceTaxRate": true,
                "taxTier": "TAX_TIER_UNSPECIFIED"
            }
        }
    }
}'
Response Response Example
{
    "archived": true,
    "basePlans": [
        {
            "autoRenewingBasePlanType": {
                "billingPeriodDuration": "string",
                "gracePeriodDuration": "string",
                "legacyCompatible": true,
                "prorationMode": "SUBSCRIPTION_PRORATION_MODE_UNSPECIFIED",
                "resubscribeState": "RESUBSCRIBE_STATE_UNSPECIFIED"
            },
            "basePlanId": "string",
            "offerTags": [
                {
                    "tag": "string"
                }
            ],
            "otherRegionsConfig": {
                "eurPrice": {
                    "currencyCode": "string",
                    "nanos": 0,
                    "units": "string"
                },
                "newSubscriberAvailability": true,
                "usdPrice": {
                    "currencyCode": "string",
                    "nanos": 0,
                    "units": "string"
                }
            },
            "prepaidBasePlanType": {
                "billingPeriodDuration": "string",
                "timeExtension": "TIME_EXTENSION_UNSPECIFIED"
            },
            "regionalConfigs": [
                {
                    "newSubscriberAvailability": true,
                    "price": {
                        "currencyCode": "string",
                        "nanos": 0,
                        "units": "string"
                    },
                    "regionCode": "string"
                }
            ],
            "state": "STATE_UNSPECIFIED"
        }
    ],
    "listings": [
        {
            "benefits": [
                "string"
            ],
            "description": "string",
            "languageCode": "string",
            "title": "string"
        }
    ],
    "packageName": "string",
    "productId": "string",
    "taxAndComplianceSettings": {
        "eeaWithdrawalRightType": "WITHDRAWAL_RIGHT_TYPE_UNSPECIFIED",
        "taxRateInfoByRegionCode": {
            "property1": {
                "eligibleForStreamingServiceTaxRate": true,
                "taxTier": "TAX_TIER_UNSPECIFIED"
            },
            "property2": {
                "eligibleForStreamingServiceTaxRate": true,
                "taxTier": "TAX_TIER_UNSPECIFIED"
            }
        }
    }
}

Request

Path Params
packageName
string 
required
Immutable. Package name of the parent app.
productId
string 
required
Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
Query Params
regionsVersion.version
string 
optional
Required. A string representing version of the available regions being used for the specified resource. The current version is 2022/01.
updateMask
string 
optional
Required. The list of fields to be updated.
Body Params application/json
A single subscription for an app.
basePlans
array[object (BasePlan) {6}] 
optional
The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
autoRenewingBasePlanType
object (AutoRenewingBasePlanType) 
optional
Set when the base plan automatically renews at a regular interval.
basePlanId
string 
optional
Required. Immutable. The unique identifier of this base plan. Must be unique within the subscription, and conform with RFC-1034. That is, this ID can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 63 characters.
offerTags
array[object (OfferTag) {1}] 
optional
List of up to 20 custom tags specified for this base plan, and returned to the app through the billing library. Subscription offers for this base plan will also receive these offer tags in the billing library.
otherRegionsConfig
object (OtherRegionsBasePlanConfig) 
optional
Pricing information for any new locations Play may launch in the future. If omitted, the BasePlan will not be automatically available any new locations Play may launch in the future.
prepaidBasePlanType
object (PrepaidBasePlanType) 
optional
Set when the base plan does not automatically renew at the end of the billing period.
regionalConfigs
array[object (RegionalBasePlanConfig) {3}] 
optional
Region-specific information for this base plan.
listings
array[object (SubscriptionListing) {4}] 
optional
Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app.
benefits
array[string]
optional
A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the language of this listing. Plain text. Ordered list of at most four benefits.
description
string 
optional
The description of this subscription in the language of this listing. Maximum length - 80 characters. Plain text.
languageCode
string 
optional
Required. The language of this listing, as defined by BCP-47, e.g. "en-US".
title
string 
optional
Required. The title of this subscription in the language of this listing. Plain text.
packageName
string 
optional
Immutable. Package name of the parent app.
productId
string 
optional
Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
taxAndComplianceSettings
object (SubscriptionTaxAndComplianceSettings) 
optional
Details about taxes and legal compliance.
eeaWithdrawalRightType
enum<string> 
optional
Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the Help Center article for more information.
Allowed values:
WITHDRAWAL_RIGHT_TYPE_UNSPECIFIEDWITHDRAWAL_RIGHT_DIGITAL_CONTENTWITHDRAWAL_RIGHT_SERVICE
taxRateInfoByRegionCode
object 
optional
A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR".
Examples

Responses

🟢200Successful response
application/json
Body
A single subscription for an app.
archived
boolean 
read-onlyoptional
Output only. Whether this subscription is archived. Archived subscriptions are not available to any subscriber any longer, cannot be updated, and are not returned in list requests unless the show archived flag is passed in.
basePlans
array[object (BasePlan) {7}] 
optional
The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
autoRenewingBasePlanType
object (AutoRenewingBasePlanType) 
optional
Set when the base plan automatically renews at a regular interval.
basePlanId
string 
optional
Required. Immutable. The unique identifier of this base plan. Must be unique within the subscription, and conform with RFC-1034. That is, this ID can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 63 characters.
offerTags
array[object (OfferTag) {1}] 
optional
List of up to 20 custom tags specified for this base plan, and returned to the app through the billing library. Subscription offers for this base plan will also receive these offer tags in the billing library.
otherRegionsConfig
object (OtherRegionsBasePlanConfig) 
optional
Pricing information for any new locations Play may launch in the future. If omitted, the BasePlan will not be automatically available any new locations Play may launch in the future.
prepaidBasePlanType
object (PrepaidBasePlanType) 
optional
Set when the base plan does not automatically renew at the end of the billing period.
regionalConfigs
array[object (RegionalBasePlanConfig) {3}] 
optional
Region-specific information for this base plan.
state
enum<string> 
read-onlyoptional
Output only. The state of the base plan, i.e. whether it's active. Draft and inactive base plans can be activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.
Allowed values:
STATE_UNSPECIFIEDDRAFTACTIVEINACTIVE
listings
array[object (SubscriptionListing) {4}] 
optional
Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app.
benefits
array[string]
optional
A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the language of this listing. Plain text. Ordered list of at most four benefits.
description
string 
optional
The description of this subscription in the language of this listing. Maximum length - 80 characters. Plain text.
languageCode
string 
optional
Required. The language of this listing, as defined by BCP-47, e.g. "en-US".
title
string 
optional
Required. The title of this subscription in the language of this listing. Plain text.
packageName
string 
optional
Immutable. Package name of the parent app.
productId
string 
optional
Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
taxAndComplianceSettings
object (SubscriptionTaxAndComplianceSettings) 
optional
Details about taxes and legal compliance.
eeaWithdrawalRightType
enum<string> 
optional
Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the Help Center article for more information.
Allowed values:
WITHDRAWAL_RIGHT_TYPE_UNSPECIFIEDWITHDRAWAL_RIGHT_DIGITAL_CONTENTWITHDRAWAL_RIGHT_SERVICE
taxRateInfoByRegionCode
object 
optional
A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's "CLDR".
Modified at 2022-09-11 20:51:56
Previous
/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
Next
/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}
Built with