- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ChangePlanRequest
- Try it!
Updates a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments.
How a plan is updated differs depending on the plan and the products. For more information, see the description in manage subscriptions.
HTTP request
POST https://reseller.googleapis.com/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customerId |
This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. |
subscriptionId |
This is a required property. The |
Request body
The request body contains an instance of ChangePlanRequest
.
Response body
If successful, the response body contains an instance of Subscription
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/apps.order
For more information, see the Authorization guide.
ChangePlanRequest
JSON template for the subscriptions.changePlan rpc request.
JSON representation |
---|
{
"kind": string,
"planName": string,
"seats": {
object ( |
Fields | |
---|---|
kind |
Identifies the resource as a subscription change plan request. Value: |
planName |
The
|
seats |
This is a required property. The seats property is the number of user seat licenses. |
purchaseOrderId |
This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a |
dealCode |
Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in |