blob: b6221166ede9b0d32ceafd876aaa3721759268ad [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070075<h1><a href="reseller_v1.html">Workspace Reseller API</a> . <a href="reseller_v1.subscriptions.html">subscriptions</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Craig Citro0e5b9bf2014-10-15 10:26:14 -070078 <code><a href="#activate">activate(customerId, subscriptionId)</a></code></p>
79<p class="firstline">Activates a subscription previously suspended by the reseller</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#changePlan">changePlan(customerId, subscriptionId, body=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040082<p class="firstline">Update 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.</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040085<p class="firstline">Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only.</p>
John Asmuth614db982014-04-24 15:46:26 -040086<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#changeSeats">changeSeats(customerId, subscriptionId, body=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040088<p class="firstline">Update a subscription's user license settings.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#close">close()</a></code></p>
91<p class="firstline">Close httplib2 connections.</p>
92<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040093 <code><a href="#delete">delete(customerId, subscriptionId, deletionType)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070094<p class="firstline">Cancel, suspend, or transfer a subscription to direct.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<p class="toc_element">
96 <code><a href="#get">get(customerId, subscriptionId)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040097<p class="firstline">Get a specific subscription.</p>
John Asmuth614db982014-04-24 15:46:26 -040098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#insert">insert(customerId, body=None, customerAuthToken=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100<p class="firstline">Create or transfer a subscription.</p>
John Asmuth614db982014-04-24 15:46:26 -0400101<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800102 <code><a href="#list">list(pageToken=None, customerAuthToken=None, maxResults=None, customerNamePrefix=None, customerId=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400103<p class="firstline">List 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.</p>
John Asmuth614db982014-04-24 15:46:26 -0400104<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)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400109<p class="firstline">Immediately move a 30-day free trial subscription to a paid service subscription.</p>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700110<p class="toc_element">
111 <code><a href="#suspend">suspend(customerId, subscriptionId)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400112<p class="firstline">Suspends an active subscription.</p>
John Asmuth614db982014-04-24 15:46:26 -0400113<h3>Method Details</h3>
114<div class="method">
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700115 <code class="details" id="activate">activate(customerId, subscriptionId)</code>
116 <pre>Activates a subscription previously suspended by the reseller
117
118Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400120 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)
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700121
122Returns:
123 An object of the form:
124
125 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800126 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800127 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &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.
129 #
130 # Possible options include:
131 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
132 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
133 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
134 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
135 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
136 &quot;A String&quot;,
137 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800138 &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.
139 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
140 # - true — The plan is in trial.
141 # - false — The plan is not in trial.
142 &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.
143 },
144 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
145 &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.
146 &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.
147 },
148 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
149 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
150 &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.
151 &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: G Suite subscriptions automatically assign a license to every user.
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
153 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
154 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800155 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800156 &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.
157 &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.
158 &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.
159 &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.
160 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
161 },
162 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
163 &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.
164 &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.
165 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
166 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
167 &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.
168 &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.
169 &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.
170 &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.
171 &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.
172 },
173 &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.
174 #
175 # Possible values are:
176 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
177 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
178 # - FLEXIBLE — The flexible plan
179 # - 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.
180 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
181 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
182 # - true — The subscription&#x27;s plan is an annual commitment plan.
183 # - false — The plan is not an annual commitment plan.
184 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 }</pre>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700186</div>
187
188<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700189 <code class="details" id="changePlan">changePlan(customerId, subscriptionId, body=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400190 <pre>Update 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.
John Asmuth614db982014-04-24 15:46:26 -0400191
192Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400194 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700195 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400196 The object takes the form of:
197
198{ # JSON template for the ChangePlan rpc request.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800199 &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.
200 &quot;kind&quot;: &quot;subscriptions#changePlanRequest&quot;, # Identifies the resource as a subscription change plan request. Value: subscriptions#changePlanRequest
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 &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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400202 #
203 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700204 # - ANNUAL_MONTHLY_PAY - The annual commitment plan with monthly payments Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400205 # - ANNUAL_YEARLY_PAY - The annual commitment plan with yearly payments
206 # - FLEXIBLE - The flexible plan
207 # - TRIAL - The 30-day free trial plan
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800208 &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.
209 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The seats property is the number of user seat licenses.
210 &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.
211 &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: G Suite subscriptions automatically assign a license to every user.
212 &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
213 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
214 },
John Asmuth614db982014-04-24 15:46:26 -0400215 }
216
217
218Returns:
219 An object of the form:
220
221 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800222 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800223 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 &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.
225 #
226 # Possible options include:
227 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
228 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
229 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
230 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
231 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
232 &quot;A String&quot;,
233 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800234 &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.
235 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
236 # - true — The plan is in trial.
237 # - false — The plan is not in trial.
238 &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.
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;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.
242 &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.
243 },
244 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
245 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
246 &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.
247 &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: G Suite subscriptions automatically assign a license to every user.
248 &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
249 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
250 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800251 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800252 &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.
253 &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.
254 &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.
255 &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.
256 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
257 },
258 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
259 &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.
260 &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.
261 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
262 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
263 &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.
264 &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.
265 &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.
266 &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.
267 &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.
268 },
269 &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.
270 #
271 # Possible values are:
272 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
273 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
274 # - FLEXIBLE — The flexible plan
275 # - 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.
276 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
277 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
278 # - true — The subscription&#x27;s plan is an annual commitment plan.
279 # - false — The plan is not an annual commitment plan.
280 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400282</div>
283
284<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700285 <code class="details" id="changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 <pre>Update a user license&#x27;s renewal settings. This is applicable for accounts with annual commitment plans only.
John Asmuth614db982014-04-24 15:46:26 -0400287
288Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400290 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700291 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400292 The object takes the form of:
293
294{ # JSON template for a subscription renewal settings.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800295 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800296 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
John Asmuth614db982014-04-24 15:46:26 -0400297}
298
299
300Returns:
301 An object of the form:
302
303 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800304 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800305 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &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.
307 #
308 # Possible options include:
309 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
310 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
311 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
312 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
313 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
314 &quot;A String&quot;,
315 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800316 &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.
317 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
318 # - true — The plan is in trial.
319 # - false — The plan is not in trial.
320 &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.
321 },
322 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
323 &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.
324 &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.
325 },
326 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
327 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
328 &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.
329 &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: G Suite subscriptions automatically assign a license to every user.
330 &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
331 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
332 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800333 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800334 &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.
335 &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.
336 &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.
337 &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.
338 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
339 },
340 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
341 &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.
342 &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.
343 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
344 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
345 &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.
346 &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.
347 &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.
348 &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.
349 &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.
350 },
351 &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.
352 #
353 # Possible values are:
354 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
355 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
356 # - FLEXIBLE — The flexible plan
357 # - 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.
358 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
359 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
360 # - true — The subscription&#x27;s plan is an annual commitment plan.
361 # - false — The plan is not an annual commitment plan.
362 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400364</div>
365
366<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700367 <code class="details" id="changeSeats">changeSeats(customerId, subscriptionId, body=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 <pre>Update a subscription&#x27;s user license settings.
John Asmuth614db982014-04-24 15:46:26 -0400369
370Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400372 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700373 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400374 The object takes the form of:
375
376{ # JSON template for subscription seats.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700377 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800378 &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: G Suite subscriptions automatically assign a license to every user.
379 &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
380 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
John Asmuth614db982014-04-24 15:46:26 -0400381}
382
383
384Returns:
385 An object of the form:
386
387 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800388 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800389 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 &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.
391 #
392 # Possible options include:
393 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
394 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
395 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
396 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
397 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
398 &quot;A String&quot;,
399 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800400 &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.
401 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
402 # - true — The plan is in trial.
403 # - false — The plan is not in trial.
404 &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.
405 },
406 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
407 &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.
408 &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.
409 },
410 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
411 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
412 &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.
413 &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: G Suite subscriptions automatically assign a license to every user.
414 &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
415 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
416 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800417 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800418 &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.
419 &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.
420 &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.
421 &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.
422 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
423 },
424 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
425 &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.
426 &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.
427 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
428 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
429 &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.
430 &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.
431 &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.
432 &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.
433 &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.
434 },
435 &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.
436 #
437 # Possible values are:
438 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
439 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
440 # - FLEXIBLE — The flexible plan
441 # - 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.
442 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
443 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
444 # - true — The subscription&#x27;s plan is an annual commitment plan.
445 # - false — The plan is not an annual commitment plan.
446 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400448</div>
449
450<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700451 <code class="details" id="close">close()</code>
452 <pre>Close httplib2 connections.</pre>
453</div>
454
455<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400456 <code class="details" id="delete">delete(customerId, subscriptionId, deletionType)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700457 <pre>Cancel, suspend, or transfer a subscription to direct.
John Asmuth614db982014-04-24 15:46:26 -0400458
459Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400461 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)
462 deletionType: string, The deletionType query string enables the cancellation, downgrade, or suspension of a subscription. (required)
John Asmuth614db982014-04-24 15:46:26 -0400463 Allowed values
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400464 cancel - Cancels the subscription immediately. This does not apply to a G Suite subscription.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700465 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.
John Asmuth614db982014-04-24 15:46:26 -0400466</pre>
467</div>
468
469<div class="method">
470 <code class="details" id="get">get(customerId, subscriptionId)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400471 <pre>Get a specific subscription.
John Asmuth614db982014-04-24 15:46:26 -0400472
473Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700474 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400475 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)
John Asmuth614db982014-04-24 15:46:26 -0400476
477Returns:
478 An object of the form:
479
480 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800481 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800482 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 &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.
484 #
485 # Possible options include:
486 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
487 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
488 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
489 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
490 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
491 &quot;A String&quot;,
492 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800493 &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.
494 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
495 # - true — The plan is in trial.
496 # - false — The plan is not in trial.
497 &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.
498 },
499 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
500 &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.
501 &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.
502 },
503 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
504 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
505 &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.
506 &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: G Suite subscriptions automatically assign a license to every user.
507 &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
508 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
509 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800510 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800511 &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.
512 &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.
513 &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.
514 &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.
515 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
516 },
517 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
518 &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.
519 &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.
520 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
521 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
522 &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.
523 &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.
524 &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.
525 &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.
526 &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.
527 },
528 &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.
529 #
530 # Possible values are:
531 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
532 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
533 # - FLEXIBLE — The flexible plan
534 # - 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.
535 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
536 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
537 # - true — The subscription&#x27;s plan is an annual commitment plan.
538 # - false — The plan is not an annual commitment plan.
539 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400541</div>
542
543<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700544 <code class="details" id="insert">insert(customerId, body=None, customerAuthToken=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400545 <pre>Create or transfer a subscription.
John Asmuth614db982014-04-24 15:46:26 -0400546
547Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700548 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700549 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400550 The object takes the form of:
551
552{ # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800553 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800554 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700555 &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.
556 #
557 # Possible options include:
558 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
559 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
560 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
561 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
562 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
563 &quot;A String&quot;,
564 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800565 &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.
566 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
567 # - true — The plan is in trial.
568 # - false — The plan is not in trial.
569 &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.
570 },
571 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
572 &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.
573 &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.
574 },
575 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
576 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
577 &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.
578 &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: G Suite subscriptions automatically assign a license to every user.
579 &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
580 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
581 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800582 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800583 &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.
584 &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.
585 &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.
586 &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.
587 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
588 },
589 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
590 &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.
591 &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.
592 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
593 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
594 &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.
595 &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.
596 &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.
597 &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.
598 &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.
599 },
600 &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.
601 #
602 # Possible values are:
603 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
604 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
605 # - FLEXIBLE — The flexible plan
606 # - 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.
607 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
608 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
609 # - true — The subscription&#x27;s plan is an annual commitment plan.
610 # - false — The plan is not an annual commitment plan.
611 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700612}
613
614 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.
615
616Returns:
617 An object of the form:
618
619 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800620 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800621 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 &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.
623 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400624 # Possible options include:
625 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700627 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700629 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700631 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800632 &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.
633 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
634 # - true — The plan is in trial.
635 # - false — The plan is not in trial.
636 &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.
637 },
638 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
639 &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.
640 &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.
641 },
642 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
643 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
644 &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.
645 &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: G Suite subscriptions automatically assign a license to every user.
646 &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
647 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
648 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800649 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800650 &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.
651 &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.
652 &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.
653 &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.
654 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
655 },
656 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
657 &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.
658 &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.
659 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
660 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
661 &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.
662 &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.
663 &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.
664 &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.
665 &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.
666 },
667 &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.
668 #
669 # Possible values are:
670 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
671 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
672 # - FLEXIBLE — The flexible plan
673 # - 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.
674 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
675 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
676 # - true — The subscription&#x27;s plan is an annual commitment plan.
677 # - false — The plan is not an annual commitment plan.
678 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400680</div>
681
682<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800683 <code class="details" id="list">list(pageToken=None, customerAuthToken=None, maxResults=None, customerNamePrefix=None, customerId=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 <pre>List 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.
John Asmuth614db982014-04-24 15:46:26 -0400685
686Args:
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800687 pageToken: string, Token to specify next page in the list
688 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.
689 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400690 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:
Bu Sun Kim65020912020-05-20 12:08:20 -0700691- 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*.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400692- example -- Returns example20.com and example.com.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800693 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.
John Asmuth614db982014-04-24 15:46:26 -0400694
695Returns:
696 An object of the form:
697
698 { # JSON template for a subscription list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 &quot;subscriptions&quot;: [ # The subscriptions in this page of results.
John Asmuth614db982014-04-24 15:46:26 -0400700 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800701 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800702 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &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.
704 #
705 # Possible options include:
706 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
707 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
708 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
709 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
710 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
711 &quot;A String&quot;,
712 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800713 &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.
714 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
715 # - true — The plan is in trial.
716 # - false — The plan is not in trial.
717 &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.
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;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.
721 &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.
722 },
723 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
724 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
725 &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.
726 &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: G Suite subscriptions automatically assign a license to every user.
727 &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
728 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
729 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800730 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800731 &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.
732 &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.
733 &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.
734 &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.
735 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
736 },
737 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
738 &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.
739 &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.
740 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
741 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
742 &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.
743 &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.
744 &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.
745 &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.
746 &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.
747 },
748 &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.
749 #
750 # Possible values are:
751 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
752 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
753 # - FLEXIBLE — The flexible plan
754 # - 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.
755 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
756 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
757 # - true — The subscription&#x27;s plan is an annual commitment plan.
758 # - false — The plan is not an annual commitment plan.
759 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700760 },
John Asmuth614db982014-04-24 15:46:26 -0400761 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800762 &quot;kind&quot;: &quot;reseller#subscriptions&quot;, # Identifies the resource as a collection of subscriptions. Value: reseller#subscriptions
763 &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.
John Asmuth614db982014-04-24 15:46:26 -0400764 }</pre>
765</div>
766
767<div class="method">
768 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
769 <pre>Retrieves the next page of results.
770
771Args:
772 previous_request: The request for the previous page. (required)
773 previous_response: The response from the request for the previous page. (required)
774
775Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400777 page. Returns None if there are no more items in the collection.
778 </pre>
779</div>
780
781<div class="method">
782 <code class="details" id="startPaidService">startPaidService(customerId, subscriptionId)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400783 <pre>Immediately move a 30-day free trial subscription to a paid service subscription.
John Asmuth614db982014-04-24 15:46:26 -0400784
785Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700786 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400787 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)
John Asmuth614db982014-04-24 15:46:26 -0400788
789Returns:
790 An object of the form:
791
792 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800793 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800794 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 &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.
796 #
797 # Possible options include:
798 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
799 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
800 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
801 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
802 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
803 &quot;A String&quot;,
804 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800805 &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.
806 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
807 # - true — The plan is in trial.
808 # - false — The plan is not in trial.
809 &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.
810 },
811 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
812 &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.
813 &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.
814 },
815 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
816 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
817 &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.
818 &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: G Suite subscriptions automatically assign a license to every user.
819 &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
820 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
821 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800822 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800823 &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.
824 &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.
825 &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.
826 &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.
827 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
828 },
829 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
830 &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.
831 &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.
832 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
833 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
834 &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.
835 &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.
836 &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.
837 &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.
838 &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.
839 },
840 &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.
841 #
842 # Possible values are:
843 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
844 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
845 # - FLEXIBLE — The flexible plan
846 # - 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.
847 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
848 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
849 # - true — The subscription&#x27;s plan is an annual commitment plan.
850 # - false — The plan is not an annual commitment plan.
851 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700852 }</pre>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700853</div>
854
855<div class="method">
856 <code class="details" id="suspend">suspend(customerId, subscriptionId)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400857 <pre>Suspends an active subscription.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700858
859Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400861 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)
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700862
863Returns:
864 An object of the form:
865
866 { # JSON template for a subscription.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800867 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800868 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 &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.
870 #
871 # Possible options include:
872 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
873 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
874 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
875 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
876 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
877 &quot;A String&quot;,
878 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800879 &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.
880 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
881 # - true — The plan is in trial.
882 # - false — The plan is not in trial.
883 &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.
884 },
885 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
886 &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.
887 &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.
888 },
889 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
890 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
891 &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.
892 &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: G Suite subscriptions automatically assign a license to every user.
893 &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
894 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
895 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800896 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800897 &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.
898 &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.
899 &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.
900 &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.
901 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
902 },
903 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
904 &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.
905 &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.
906 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
907 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
908 &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.
909 &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.
910 &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.
911 &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.
912 &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.
913 },
914 &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.
915 #
916 # Possible values are:
917 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
918 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
919 # - FLEXIBLE — The flexible plan
920 # - 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.
921 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
922 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
923 # - true — The subscription&#x27;s plan is an annual commitment plan.
924 # - false — The plan is not an annual commitment plan.
925 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700926 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400927</div>
928
929</body></html>