Method: monetization.subscriptions.create

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

HTTP request

POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
packageName

string

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

Query parameters

Parameters
productId

string

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

regionsVersion

object (RegionsVersion)

Required. The version of the available regions being used for the subscription.

Request body

The request body contains an instance of Subscription.

Response body

If successful, the response body contains a newly created instance of Subscription.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidpublisher