v1

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

Creates a new subscription. Newly added base plans will remain in draft state until activated.

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

Path parameters

packageNamestring required

Required. The parent app (package name) for which the subscription should be created. Must be equal to the package_name field on the Subscription resource.

Query parameters

productIdstring

Required. The ID to use for the subscription. For the requirements on this format, see the documentation of the product_id field on the Subscription resource.

regionsVersion.versionstring

Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in this article. Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available.

Request body

packageNamestring

Immutable. Package name of the parent app.

productIdstring

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.

archivedboolean

Output only. Deprecated: subscription archiving is not supported.

Response

Successful response