1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="reseller_v1.html">Google Workspace Reseller API</a> . <a href="reseller_v1.subscriptions.html">subscriptions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#activate">activate(customerId, subscriptionId, x__xgafv=None)</a></code></p>
79<p class="firstline">Activates a subscription previously suspended by the reseller. If you did not suspend the customer subscription and it is suspended for any other reason, such as for abuse or a pending ToS acceptance, this call will not reactivate the customer subscription.</p>
80<p class="toc_element">
81  <code><a href="#changePlan">changePlan(customerId, subscriptionId, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">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](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan).</p>
83<p class="toc_element">
84  <code><a href="#changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Updates a user license's renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_renewal).</p>
86<p class="toc_element">
87  <code><a href="#changeSeats">changeSeats(customerId, subscriptionId, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Updates a subscription's user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see [Manage Subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat).</p>
89<p class="toc_element">
90  <code><a href="#close">close()</a></code></p>
91<p class="firstline">Close httplib2 connections.</p>
92<p class="toc_element">
93  <code><a href="#delete">delete(customerId, subscriptionId, deletionType, x__xgafv=None)</a></code></p>
94<p class="firstline">Cancels, suspends, or transfers a subscription to direct.</p>
95<p class="toc_element">
96  <code><a href="#get">get(customerId, subscriptionId, x__xgafv=None)</a></code></p>
97<p class="firstline">Gets a specific subscription. The `subscriptionId` can be found using the [Retrieve all reseller subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) method. For more information about retrieving a specific subscription, see the information descrived in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_subscription).</p>
98<p class="toc_element">
99  <code><a href="#insert">insert(customerId, body=None, customerAuthToken=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Creates or transfer a subscription. Create a subscription for a customer's account that you ordered using the [Order a new customer account](/admin-sdk/reseller/v1/reference/customers/insert.html) method. For more information about creating a subscription for different payment plans, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#create_subscription).\ If you did not order the customer's account using the customer insert method, use the customer's `customerAuthToken` when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the [batch operation](/admin-sdk/reseller/v1/how-tos/batch.html) to transfer all of these subscriptions. For more information, see how to [transfer subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription).</p>
101<p class="toc_element">
102  <code><a href="#list">list(customerAuthToken=None, customerId=None, customerNamePrefix=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Lists of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions. Optionally, this method can filter the response by a `customerNamePrefix`. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions).</p>
104<p class="toc_element">
105  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
108  <code><a href="#startPaidService">startPaidService(customerId, subscriptionId, x__xgafv=None)</a></code></p>
109<p class="firstline">Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#paid_service).</p>
110<p class="toc_element">
111  <code><a href="#suspend">suspend(customerId, subscriptionId, x__xgafv=None)</a></code></p>
112<p class="firstline">Suspends an active subscription. You can use this method to suspend a paid subscription that is currently in the `ACTIVE` state. * For `FLEXIBLE` subscriptions, billing is paused. * For `ANNUAL_MONTHLY_PAY` or `ANNUAL_YEARLY_PAY` subscriptions: * Suspending the subscription does not change the renewal date that was originally committed to. * A suspended subscription does not renew. If you activate the subscription after the original renewal date, a new annual subscription will be created, starting on the day of activation. We strongly encourage you to suspend subscriptions only for short periods of time as suspensions over 60 days may result in the subscription being cancelled.</p>
113<h3>Method Details</h3>
114<div class="method">
115    <code class="details" id="activate">activate(customerId, subscriptionId, x__xgafv=None)</code>
116  <pre>Activates a subscription previously suspended by the reseller. If you did not suspend the customer subscription and it is suspended for any other reason, such as for abuse or a pending ToS acceptance, this call will not reactivate the customer subscription.
117
118Args:
119  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
120  subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
121  x__xgafv: string, V1 error format.
122    Allowed values
123      1 - v1 error format
124      2 - v2 error format
125
126Returns:
127  An object of the form:
128
129    { # JSON template for a subscription.
130  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
131  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
132  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
133  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
134  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
135  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
136  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
137    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
138      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
139      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
140    },
141    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
142    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
143  },
144  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
145  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
146    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
147    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
148  },
149  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
150  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
151    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
152    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
153    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
154    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
155  },
156  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
157  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
158  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
159  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
160  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
161    &quot;A String&quot;,
162  ],
163  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
164    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
165    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
166    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
167  },
168  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
169    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
170    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
171  },
172}</pre>
173</div>
174
175<div class="method">
176    <code class="details" id="changePlan">changePlan(customerId, subscriptionId, body=None, x__xgafv=None)</code>
177  <pre>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](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan).
178
179Args:
180  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
181  subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
182  body: object, The request body.
183    The object takes the form of:
184
185{ # JSON template for the ChangePlan rpc request.
186  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `changePlan` request in order to receive discounted rate. This property is optional. If a deal code has already been added to a subscription, this property may be left empty and the existing discounted rate will still apply (if not empty, only provide the deal code that is already present on the subscription). If a deal code has never been added to a subscription and this property is left blank, regular pricing will apply.
187  &quot;kind&quot;: &quot;subscriptions#changePlanRequest&quot;, # Identifies the resource as a subscription change plan request. Value: `subscriptions#changePlanRequest`
188  &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s payment plan. For more information about the Google payment plans, see API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` - The annual commitment plan with monthly payments *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` - The annual commitment plan with yearly payments - `FLEXIBLE` - The flexible plan - `TRIAL` - The 30-day free trial plan
189  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
190  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The seats property is the number of user seat licenses.
191    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
192    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
193    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
194    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
195  },
196}
197
198  x__xgafv: string, V1 error format.
199    Allowed values
200      1 - v1 error format
201      2 - v2 error format
202
203Returns:
204  An object of the form:
205
206    { # JSON template for a subscription.
207  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
208  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
209  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
210  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
211  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
212  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
213  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
214    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
215      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
216      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
217    },
218    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
219    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
220  },
221  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
222  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
223    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
224    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
225  },
226  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
227  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
228    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
229    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
230    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
231    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
232  },
233  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
234  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
235  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
236  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
237  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
238    &quot;A String&quot;,
239  ],
240  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
241    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
242    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
243    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
244  },
245  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
246    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
247    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
248  },
249}</pre>
250</div>
251
252<div class="method">
253    <code class="details" id="changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body=None, x__xgafv=None)</code>
254  <pre>Updates a user license&#x27;s renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_renewal).
255
256Args:
257  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
258  subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
259  body: object, The request body.
260    The object takes the form of:
261
262{ # JSON template for a subscription renewal settings.
263  &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
264  &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
265}
266
267  x__xgafv: string, V1 error format.
268    Allowed values
269      1 - v1 error format
270      2 - v2 error format
271
272Returns:
273  An object of the form:
274
275    { # JSON template for a subscription.
276  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
277  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
278  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
279  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
280  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
281  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
282  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
283    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
284      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
285      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
286    },
287    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
288    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
289  },
290  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
291  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
292    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
293    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
294  },
295  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
296  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
297    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
298    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
299    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
300    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
301  },
302  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
303  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
304  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
305  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
306  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
307    &quot;A String&quot;,
308  ],
309  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
310    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
311    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
312    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
313  },
314  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
315    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
316    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
317  },
318}</pre>
319</div>
320
321<div class="method">
322    <code class="details" id="changeSeats">changeSeats(customerId, subscriptionId, body=None, x__xgafv=None)</code>
323  <pre>Updates a subscription&#x27;s user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see [Manage Subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat).
324
325Args:
326  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
327  subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
328  body: object, The request body.
329    The object takes the form of:
330
331{ # JSON template for subscription seats.
332  &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
333  &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
334  &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
335  &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
336}
337
338  x__xgafv: string, V1 error format.
339    Allowed values
340      1 - v1 error format
341      2 - v2 error format
342
343Returns:
344  An object of the form:
345
346    { # JSON template for a subscription.
347  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
348  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
349  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
350  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
351  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
352  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
353  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
354    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
355      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
356      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
357    },
358    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
359    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
360  },
361  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
362  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
363    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
364    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
365  },
366  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
367  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
368    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
369    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
370    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
371    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
372  },
373  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
374  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
375  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
376  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
377  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
378    &quot;A String&quot;,
379  ],
380  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
381    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
382    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
383    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
384  },
385  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
386    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
387    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
388  },
389}</pre>
390</div>
391
392<div class="method">
393    <code class="details" id="close">close()</code>
394  <pre>Close httplib2 connections.</pre>
395</div>
396
397<div class="method">
398    <code class="details" id="delete">delete(customerId, subscriptionId, deletionType, x__xgafv=None)</code>
399  <pre>Cancels, suspends, or transfers a subscription to direct.
400
401Args:
402  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
403  subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
404  deletionType: string, The `deletionType` query string enables the cancellation, downgrade, or suspension of a subscription. (required)
405    Allowed values
406      deletion_type_undefined -
407      cancel - Cancels the subscription immediately. This does not apply to a G Suite subscription.
408      transfer_to_direct - Transfers a subscription directly to Google. The customer is immediately transferred to a direct billing relationship with Google and is given a short amount of time with no service interruption. The customer can then choose to set up billing directly with Google by using a credit card, or they can transfer to another reseller.
409  x__xgafv: string, V1 error format.
410    Allowed values
411      1 - v1 error format
412      2 - v2 error format
413</pre>
414</div>
415
416<div class="method">
417    <code class="details" id="get">get(customerId, subscriptionId, x__xgafv=None)</code>
418  <pre>Gets a specific subscription. The `subscriptionId` can be found using the [Retrieve all reseller subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) method. For more information about retrieving a specific subscription, see the information descrived in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_subscription).
419
420Args:
421  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
422  subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
423  x__xgafv: string, V1 error format.
424    Allowed values
425      1 - v1 error format
426      2 - v2 error format
427
428Returns:
429  An object of the form:
430
431    { # JSON template for a subscription.
432  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
433  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
434  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
435  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
436  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
437  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
438  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
439    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
440      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
441      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
442    },
443    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
444    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
445  },
446  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
447  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
448    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
449    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
450  },
451  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
452  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
453    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
454    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
455    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
456    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
457  },
458  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
459  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
460  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
461  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
462  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
463    &quot;A String&quot;,
464  ],
465  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
466    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
467    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
468    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
469  },
470  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
471    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
472    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
473  },
474}</pre>
475</div>
476
477<div class="method">
478    <code class="details" id="insert">insert(customerId, body=None, customerAuthToken=None, x__xgafv=None)</code>
479  <pre>Creates or transfer a subscription. Create a subscription for a customer&#x27;s account that you ordered using the [Order a new customer account](/admin-sdk/reseller/v1/reference/customers/insert.html) method. For more information about creating a subscription for different payment plans, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#create_subscription).\ If you did not order the customer&#x27;s account using the customer insert method, use the customer&#x27;s `customerAuthToken` when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the [batch operation](/admin-sdk/reseller/v1/how-tos/batch.html) to transfer all of these subscriptions. For more information, see how to [transfer subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription).
480
481Args:
482  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
483  body: object, The request body.
484    The object takes the form of:
485
486{ # JSON template for a subscription.
487  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
488  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
489  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
490  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
491  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
492  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
493  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
494    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
495      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
496      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
497    },
498    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
499    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
500  },
501  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
502  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
503    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
504    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
505  },
506  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
507  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
508    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
509    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
510    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
511    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
512  },
513  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
514  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
515  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
516  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
517  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
518    &quot;A String&quot;,
519  ],
520  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
521    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
522    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
523    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
524  },
525  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
526    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
527    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
528  },
529}
530
531  customerAuthToken: string, The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer&#x27;s subscription or transfers another reseller customer&#x27;s subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.
532  x__xgafv: string, V1 error format.
533    Allowed values
534      1 - v1 error format
535      2 - v2 error format
536
537Returns:
538  An object of the form:
539
540    { # JSON template for a subscription.
541  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
542  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
543  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
544  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
545  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
546  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
547  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
548    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
549      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
550      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
551    },
552    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
553    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
554  },
555  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
556  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
557    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
558    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
559  },
560  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
561  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
562    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
563    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
564    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
565    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
566  },
567  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
568  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
569  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
570  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
571  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
572    &quot;A String&quot;,
573  ],
574  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
575    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
576    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
577    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
578  },
579  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
580    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
581    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
582  },
583}</pre>
584</div>
585
586<div class="method">
587    <code class="details" id="list">list(customerAuthToken=None, customerId=None, customerNamePrefix=None, maxResults=None, pageToken=None, x__xgafv=None)</code>
588  <pre>Lists of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer&#x27;s subscriptions, or all of a customer&#x27;s transferable subscriptions. Optionally, this method can filter the response by a `customerNamePrefix`. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions).
589
590Args:
591  customerAuthToken: string, The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer&#x27;s subscription or transfers another reseller customer&#x27;s subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.
592  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable.
593  customerNamePrefix: string, When retrieving all of your subscriptions and filtering for specific customers, you can enter a prefix for a customer name. Using an example customer group that includes `exam.com`, `example20.com` and `example.com`: - `exa` -- Returns all customer names that start with &#x27;exa&#x27; which could include `exam.com`, `example20.com`, and `example.com`. A name prefix is similar to using a regular expression&#x27;s asterisk, exa*. - `example` -- Returns `example20.com` and `example.com`.
594  maxResults: integer, When retrieving a large list, the `maxResults` is the maximum number of results per page. The `nextPageToken` value takes you to the next page. The default is 20.
595  pageToken: string, Token to specify next page in the list
596  x__xgafv: string, V1 error format.
597    Allowed values
598      1 - v1 error format
599      2 - v2 error format
600
601Returns:
602  An object of the form:
603
604    { # A subscription manages the relationship of a Google customer&#x27;s payment plan with a product&#x27;s SKU, user licenses, 30-day free trial status, and renewal options. A primary role of a reseller is to manage the Google customer&#x27;s subscriptions.
605  &quot;kind&quot;: &quot;reseller#subscriptions&quot;, # Identifies the resource as a collection of subscriptions. Value: reseller#subscriptions
606  &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
607  &quot;subscriptions&quot;: [ # The subscriptions in this page of results.
608    { # JSON template for a subscription.
609      &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
610      &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
611      &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
612      &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
613      &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
614      &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
615      &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
616        &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
617          &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
618          &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
619        },
620        &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
621        &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
622      },
623      &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
624      &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
625        &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
626        &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
627      },
628      &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
629      &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
630        &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
631        &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
632        &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
633        &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
634      },
635      &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
636      &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
637      &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
638      &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
639      &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
640        &quot;A String&quot;,
641      ],
642      &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
643        &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
644        &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
645        &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
646      },
647      &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
648        &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
649        &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
650      },
651    },
652  ],
653}</pre>
654</div>
655
656<div class="method">
657    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
658  <pre>Retrieves the next page of results.
659
660Args:
661  previous_request: The request for the previous page. (required)
662  previous_response: The response from the request for the previous page. (required)
663
664Returns:
665  A request object that you can call &#x27;execute()&#x27; on to request the next
666  page. Returns None if there are no more items in the collection.
667    </pre>
668</div>
669
670<div class="method">
671    <code class="details" id="startPaidService">startPaidService(customerId, subscriptionId, x__xgafv=None)</code>
672  <pre>Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#paid_service).
673
674Args:
675  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
676  subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
677  x__xgafv: string, V1 error format.
678    Allowed values
679      1 - v1 error format
680      2 - v2 error format
681
682Returns:
683  An object of the form:
684
685    { # JSON template for a subscription.
686  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
687  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
688  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
689  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
690  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
691  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
692  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
693    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
694      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
695      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
696    },
697    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
698    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
699  },
700  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
701  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
702    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
703    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
704  },
705  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
706  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
707    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
708    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
709    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
710    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
711  },
712  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
713  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
714  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
715  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
716  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
717    &quot;A String&quot;,
718  ],
719  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
720    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
721    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
722    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
723  },
724  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
725    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
726    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
727  },
728}</pre>
729</div>
730
731<div class="method">
732    <code class="details" id="suspend">suspend(customerId, subscriptionId, x__xgafv=None)</code>
733  <pre>Suspends an active subscription. You can use this method to suspend a paid subscription that is currently in the `ACTIVE` state. * For `FLEXIBLE` subscriptions, billing is paused. * For `ANNUAL_MONTHLY_PAY` or `ANNUAL_YEARLY_PAY` subscriptions: * Suspending the subscription does not change the renewal date that was originally committed to. * A suspended subscription does not renew. If you activate the subscription after the original renewal date, a new annual subscription will be created, starting on the day of activation. We strongly encourage you to suspend subscriptions only for short periods of time as suspensions over 60 days may result in the subscription being cancelled.
734
735Args:
736  customerId: string, This can be either the customer&#x27;s primary domain name or the customer&#x27;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&#x27;s unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. (required)
737  subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
738  x__xgafv: string, V1 error format.
739    Allowed values
740      1 - v1 error format
741      2 - v2 error format
742
743Returns:
744  An object of the form:
745
746    { # JSON template for a subscription.
747  &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
748  &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
749  &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
750  &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
751  &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
752  &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
753  &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
754    &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
755      &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
756      &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
757    },
758    &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
759    &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
760  },
761  &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
762  &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
763    &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
764    &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
765  },
766  &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
767  &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
768    &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
769    &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
770    &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
771    &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *Google Workspace subscriptions automatically assign a license to every user.
772  },
773  &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
774  &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
775  &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
776  &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
777  &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
778    &quot;A String&quot;,
779  ],
780  &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
781    &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # The `skuId` of the current resold subscription. This is populated only when the customer has a subscription with a legacy SKU and the subscription resource is populated with the `skuId` of the SKU recommended for the transfer.
782    &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
783    &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
784  },
785  &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
786    &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
787    &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
788  },
789}</pre>
790</div>
791
792</body></html>