v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13136338403.5 KB
inappproducts

Patches an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See this article for more information.

patch/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}

Path parameters

packageNamestring required

Package name of the app.

skustring required

Unique identifier for the in-app product.

Query parameters

autoConvertMissingPricesboolean

If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false.

latencyTolerance'PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED' | 'PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE' | 'PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT'

Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.

Request body

status'statusUnspecified' | 'active' | 'inactive'

The status of the product, e.g. whether it's active.

gracePeriodstring

Grace period of the subscription, specified in ISO 8601 format. Allows developers to give their subscribers a grace period when the payment for the new recurrence period is declined. Acceptable values are P0D (zero days), P3D (three days), P7D (seven days), P14D (14 days), and P30D (30 days).

skustring

Stock-keeping-unit (SKU) of the product, unique within an app.

defaultLanguagestring

Default language of the localized data, as defined by BCP-47. e.g. "en-US".

pricesobject

Prices per buyer region. None of these can be zero, as in-app products are never free. Map key is region code, as defined by ISO 3166-2.

trialPeriodstring

Trial period, specified in ISO 8601 format. Acceptable values are anything between P7D (seven days) and P999D (999 days).

purchaseType'purchaseTypeUnspecified' | 'managedUser' | 'subscription'

The type of the product, e.g. a recurring subscription.

packageNamestring

Package name of the parent app.

subscriptionPeriodstring

Subscription period, specified in ISO 8601 format. Acceptable values are P1W (one week), P1M (one month), P3M (three months), P6M (six months), and P1Y (one year).

listingsobject

List of localized title and description data. Map key is the language of the localized data, as defined by BCP-47, e.g. "en-US".

Response

Successful response