blob: e4cc9c5e0e374fe7b26fd969713d6d1de2892364 [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 Bot0bf565c2020-12-09 08:56:03 -0800102 <code><a href="#list">list(maxResults=None, customerNamePrefix=None, pageToken=None, customerAuthToken=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 Bot0bf565c2020-12-09 08:56:03 -0800126 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800127 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800128 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800129 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
130 &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.
131 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800132 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800133 &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 Botb6971b02020-11-26 17:16:03 -0800134 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800135 &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 Bot0bf565c2020-12-09 08:56:03 -0800136 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
137 },
138 &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.
139 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
140 &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.
141 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800142 },
143 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800144 &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.
145 #
146 # Possible options include:
147 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
148 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
149 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
150 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
151 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
152 &quot;A String&quot;,
153 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800154 &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.
155 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
156 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800157 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800158 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
159 &quot;subscriptionId&quot;: &quot;A String&quot;, # The subscriptionId is the subscription identifier and is unique for each customer. This is a required property. Since a subscriptionId changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the subscriptionId as described in retrieve all reseller subscriptions.
160 &quot;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.
161 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
162 # - true — The subscription&#x27;s plan is an annual commitment plan.
163 # - false — The plan is not an annual commitment plan.
164 &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.
165 #
166 # Possible values are:
167 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
168 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
169 # - FLEXIBLE — The flexible plan
170 # - 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.
171 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
172 &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.
173 &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.
174 &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.
175 },
176 },
177 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
178 &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.
179 &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.
180 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
181 # - true — The plan is in trial.
182 # - false — The plan is not in trial.
183 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800184 &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.
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 Botb6971b02020-11-26 17:16:03 -0800199 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The seats property is the number of user seat licenses.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800200 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800201 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
202 &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.
203 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800204 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &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 -0400206 #
207 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208 # - 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 -0400209 # - ANNUAL_YEARLY_PAY - The annual commitment plan with yearly payments
210 # - FLEXIBLE - The flexible plan
211 # - TRIAL - The 30-day free trial plan
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800212 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800213 &quot;kind&quot;: &quot;subscriptions#changePlanRequest&quot;, # Identifies the resource as a subscription change plan request. Value: subscriptions#changePlanRequest
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800214 &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.
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 Bot0bf565c2020-12-09 08:56:03 -0800222 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800223 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800224 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800225 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
226 &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.
227 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800228 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800229 &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 Botb6971b02020-11-26 17:16:03 -0800230 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800231 &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 Bot0bf565c2020-12-09 08:56:03 -0800232 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
233 },
234 &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.
235 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
236 &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.
237 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800238 },
239 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800240 &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.
241 #
242 # Possible options include:
243 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
244 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
245 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
246 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
247 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
248 &quot;A String&quot;,
249 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800250 &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.
251 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
252 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800253 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800254 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
255 &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.
256 &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.
257 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
258 # - true — The subscription&#x27;s plan is an annual commitment plan.
259 # - false — The plan is not an annual commitment plan.
260 &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.
261 #
262 # Possible values are:
263 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
264 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
265 # - FLEXIBLE — The flexible plan
266 # - 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.
267 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
268 &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.
269 &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.
270 &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.
271 },
272 },
273 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
274 &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.
275 &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.
276 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
277 # - true — The plan is in trial.
278 # - false — The plan is not in trial.
279 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800280 &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.
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 Botb6971b02020-11-26 17:16: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 Bot0bf565c2020-12-09 08:56:03 -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 Bot0bf565c2020-12-09 08:56:03 -0800304 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800305 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800306 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800307 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
308 &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.
309 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800310 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800311 &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 Botb6971b02020-11-26 17:16:03 -0800312 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800313 &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 Bot0bf565c2020-12-09 08:56:03 -0800314 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
315 },
316 &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.
317 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
318 &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.
319 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800320 },
321 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800322 &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.
323 #
324 # Possible options include:
325 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
326 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
327 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
328 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
329 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
330 &quot;A String&quot;,
331 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800332 &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.
333 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
334 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800335 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800336 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
337 &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.
338 &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.
339 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
340 # - true — The subscription&#x27;s plan is an annual commitment plan.
341 # - false — The plan is not an annual commitment plan.
342 &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.
343 #
344 # Possible values are:
345 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
346 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
347 # - FLEXIBLE — The flexible plan
348 # - 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.
349 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
350 &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.
351 &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.
352 &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.
353 },
354 },
355 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
356 &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.
357 &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.
358 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
359 # - true — The plan is in trial.
360 # - false — The plan is not in trial.
361 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800362 &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.
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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800377 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800378 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
379 &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.
380 &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
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 Bot0bf565c2020-12-09 08:56:03 -0800388 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800389 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800390 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800391 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
392 &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.
393 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800394 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800395 &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 Botb6971b02020-11-26 17:16:03 -0800396 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800397 &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 Bot0bf565c2020-12-09 08:56:03 -0800398 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
399 },
400 &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.
401 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
402 &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.
403 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800404 },
405 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800406 &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.
407 #
408 # Possible options include:
409 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
410 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
411 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
412 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
413 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
414 &quot;A String&quot;,
415 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800416 &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.
417 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
418 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800419 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800420 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
421 &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.
422 &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.
423 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
424 # - true — The subscription&#x27;s plan is an annual commitment plan.
425 # - false — The plan is not an annual commitment plan.
426 &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.
427 #
428 # Possible values are:
429 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
430 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
431 # - FLEXIBLE — The flexible plan
432 # - 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.
433 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
434 &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.
435 &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.
436 &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.
437 },
438 },
439 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
440 &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.
441 &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.
442 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
443 # - true — The plan is in trial.
444 # - false — The plan is not in trial.
445 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800446 &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.
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 Bot0bf565c2020-12-09 08:56:03 -0800481 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800482 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800483 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800484 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
485 &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.
486 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800487 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800488 &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 Botb6971b02020-11-26 17:16:03 -0800489 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800490 &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 Bot0bf565c2020-12-09 08:56:03 -0800491 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
492 },
493 &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.
494 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
495 &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.
496 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800497 },
498 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800499 &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.
500 #
501 # Possible options include:
502 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
503 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
504 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
505 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
506 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
507 &quot;A String&quot;,
508 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800509 &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.
510 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
511 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800512 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800513 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
514 &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.
515 &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.
516 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
517 # - true — The subscription&#x27;s plan is an annual commitment plan.
518 # - false — The plan is not an annual commitment plan.
519 &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.
520 #
521 # Possible values are:
522 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
523 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
524 # - FLEXIBLE — The flexible plan
525 # - 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.
526 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
527 &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.
528 &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.
529 &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.
530 },
531 },
532 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
533 &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.
534 &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.
535 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
536 # - true — The plan is in trial.
537 # - false — The plan is not in trial.
538 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800539 &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.
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 Bot0bf565c2020-12-09 08:56:03 -0800553 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800554 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800555 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800556 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
557 &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.
558 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800559 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800560 &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 Botb6971b02020-11-26 17:16:03 -0800561 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800562 &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 Bot0bf565c2020-12-09 08:56:03 -0800563 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
564 },
565 &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.
566 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
567 &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.
568 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800569 },
570 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800571 &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.
572 #
573 # Possible options include:
574 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
575 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
576 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
577 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
578 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
579 &quot;A String&quot;,
580 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800581 &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.
582 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
583 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800584 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800585 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
586 &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.
587 &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.
588 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
589 # - true — The subscription&#x27;s plan is an annual commitment plan.
590 # - false — The plan is not an annual commitment plan.
591 &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.
592 #
593 # Possible values are:
594 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
595 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
596 # - FLEXIBLE — The flexible plan
597 # - 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.
598 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
599 &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.
600 &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.
601 &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.
602 },
603 },
604 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
605 &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.
606 &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.
607 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
608 # - true — The plan is in trial.
609 # - false — The plan is not in trial.
610 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800611 &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.
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 Bot0bf565c2020-12-09 08:56:03 -0800620 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800621 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800622 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800623 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
624 &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.
625 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800626 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800627 &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 Botb6971b02020-11-26 17:16:03 -0800628 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800629 &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 Bot0bf565c2020-12-09 08:56:03 -0800630 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
631 },
632 &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.
633 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
634 &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.
635 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800636 },
637 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800638 &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.
639 #
640 # Possible options include:
641 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
642 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
643 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
644 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
645 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
646 &quot;A String&quot;,
647 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800648 &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.
649 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
650 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800651 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800652 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
653 &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.
654 &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.
655 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
656 # - true — The subscription&#x27;s plan is an annual commitment plan.
657 # - false — The plan is not an annual commitment plan.
658 &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.
659 #
660 # Possible values are:
661 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
662 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
663 # - FLEXIBLE — The flexible plan
664 # - 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.
665 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
666 &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.
667 &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.
668 &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.
669 },
670 },
671 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
672 &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.
673 &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.
674 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
675 # - true — The plan is in trial.
676 # - false — The plan is not in trial.
677 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800678 &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.
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 Bot0bf565c2020-12-09 08:56:03 -0800683 <code class="details" id="list">list(maxResults=None, customerNamePrefix=None, pageToken=None, customerAuthToken=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 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 -0400688 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 -0700689- 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 -0400690- example -- Returns example20.com and example.com.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800691 pageToken: string, Token to specify next page in the list
692 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.
693 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800699 &quot;kind&quot;: &quot;reseller#subscriptions&quot;, # Identifies the resource as a collection of subscriptions. Value: reseller#subscriptions
700 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 &quot;subscriptions&quot;: [ # The subscriptions in this page of results.
John Asmuth614db982014-04-24 15:46:26 -0400702 { # JSON template for a subscription.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800703 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800704 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800705 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800706 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
707 &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.
708 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: listForProductAndSku
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800709 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800710 &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 Botb6971b02020-11-26 17:16:03 -0800711 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800712 &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 Bot0bf565c2020-12-09 08:56:03 -0800713 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
714 },
715 &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.
716 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
717 &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.
718 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800719 },
720 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800721 &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.
722 #
723 # Possible options include:
724 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
725 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
726 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
727 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
728 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
729 &quot;A String&quot;,
730 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800731 &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.
732 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
733 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800734 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800735 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
736 &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.
737 &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.
738 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
739 # - true — The subscription&#x27;s plan is an annual commitment plan.
740 # - false — The plan is not an annual commitment plan.
741 &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.
742 #
743 # Possible values are:
744 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
745 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
746 # - FLEXIBLE — The flexible plan
747 # - 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.
748 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
749 &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.
750 &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.
751 &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.
752 },
753 },
754 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
755 &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.
756 &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.
757 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
758 # - true — The plan is in trial.
759 # - false — The plan is not in trial.
760 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800761 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 },
John Asmuth614db982014-04-24 15:46:26 -0400763 ],
764 }</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 Bot0bf565c2020-12-09 08:56:03 -0800793 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800794 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800795 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800796 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
797 &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.
798 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800799 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800800 &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 Botb6971b02020-11-26 17:16:03 -0800801 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800802 &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 Bot0bf565c2020-12-09 08:56:03 -0800803 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
804 },
805 &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.
806 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
807 &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.
808 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800809 },
810 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800811 &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.
812 #
813 # Possible options include:
814 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
815 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
816 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
817 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
818 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
819 &quot;A String&quot;,
820 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800821 &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.
822 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
823 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800824 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800825 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
826 &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.
827 &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.
828 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
829 # - true — The subscription&#x27;s plan is an annual commitment plan.
830 # - false — The plan is not an annual commitment plan.
831 &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.
832 #
833 # Possible values are:
834 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
835 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
836 # - FLEXIBLE — The flexible plan
837 # - 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.
838 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
839 &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.
840 &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.
841 &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.
842 },
843 },
844 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
845 &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.
846 &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.
847 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
848 # - true — The plan is in trial.
849 # - false — The plan is not in trial.
850 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800851 &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.
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 Bot0bf565c2020-12-09 08:56:03 -0800867 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800868 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800869 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800870 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
871 &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.
872 &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
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800873 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800874 &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 Botb6971b02020-11-26 17:16:03 -0800875 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800876 &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 Bot0bf565c2020-12-09 08:56:03 -0800877 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
878 },
879 &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.
880 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
881 &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.
882 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800883 },
884 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800885 &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.
886 #
887 # Possible options include:
888 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
889 # - RENEWAL_WITH_TYPE_CANCEL - The customer&#x27;s commitment ended and their service was cancelled at the end of their term.
890 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
891 # - TRIAL_ENDED - The customer&#x27;s trial expired without a plan selected.
892 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
893 &quot;A String&quot;,
894 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800895 &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.
896 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
897 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800898 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800899 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: reseller#subscription
900 &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.
901 &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.
902 &quot;isCommitmentPlan&quot;: True or False, # The isCommitmentPlan property&#x27;s boolean value identifies the plan as an annual commitment plan:
903 # - true — The subscription&#x27;s plan is an annual commitment plan.
904 # - false — The plan is not an annual commitment plan.
905 &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.
906 #
907 # Possible values are:
908 # - ANNUAL_MONTHLY_PAY — The annual commitment plan with monthly payments. Caution: ANNUAL_MONTHLY_PAY is returned as ANNUAL in all API responses.
909 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
910 # - FLEXIBLE — The flexible plan
911 # - 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.
912 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
913 &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.
914 &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.
915 &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.
916 },
917 },
918 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
919 &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.
920 &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.
921 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not:
922 # - true — The plan is in trial.
923 # - false — The plan is not in trial.
924 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800925 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700926 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400927</div>
928
929</body></html>