blob: 807fae761187ee64c7bc27085bfc449337af793c [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
75<h1><a href="reseller_v1.html">Enterprise Apps Reseller API</a> . <a href="reseller_v1.subscriptions.html">subscriptions</a></h1>
76<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">
John Asmuth614db982014-04-24 15:46:26 -040081 <code><a href="#changePlan">changePlan(customerId, subscriptionId, body)</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">
84 <code><a href="#changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body)</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">
87 <code><a href="#changeSeats">changeSeats(customerId, subscriptionId, body)</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">
90 <code><a href="#delete">delete(customerId, subscriptionId, deletionType)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Cancel or transfer a subscription to direct.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
93 <code><a href="#get">get(customerId, subscriptionId)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040094<p class="firstline">Get a specific subscription.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<p class="toc_element">
96 <code><a href="#insert">insert(customerId, body, customerAuthToken=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040097<p class="firstline">Create or transfer a subscription.</p>
John Asmuth614db982014-04-24 15:46:26 -040098<p class="toc_element">
99 <code><a href="#list">list(customerAuthToken=None, pageToken=None, maxResults=None, customerNamePrefix=None, customerId=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100<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 -0400101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
105 <code><a href="#startPaidService">startPaidService(customerId, subscriptionId)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400106<p class="firstline">Immediately move a 30-day free trial subscription to a paid service subscription.</p>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700107<p class="toc_element">
108 <code><a href="#suspend">suspend(customerId, subscriptionId)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400109<p class="firstline">Suspends an active subscription.</p>
John Asmuth614db982014-04-24 15:46:26 -0400110<h3>Method Details</h3>
111<div class="method">
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700112 <code class="details" id="activate">activate(customerId, subscriptionId)</code>
113 <pre>Activates a subscription previously suspended by the reseller
114
115Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400116 customerId: string, Either the customer's primary domain name or the customer'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)
117 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 -0700118
119Returns:
120 An object of the form:
121
122 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400123 "renewalSettings": { # 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.
124 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
125 "renewalType": "A String", # 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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700126 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400127 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700128 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400129 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
130 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
131 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
132 # - true — The plan is in trial.
133 # - false — The plan is not in trial.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700134 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400135 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
136 "resourceUiUrl": "A String", # URL to customer'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.
137 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
139 "numberOfSeats": 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.
140 "maximumNumberOfSeats": 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'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.
141 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field's value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: listForProductAndSku
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700142 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400143 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
144 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700145 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400146 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
147 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
148 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000149 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400150 "status": "A String", # This is an optional property.
151 "plan": { # 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"s payment plans, see the API concepts.
152 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
153 #
154 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 # - 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 -0400156 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
157 # - FLEXIBLE — The flexible plan
158 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
160 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400161 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
162 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700163 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400164 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
165 # - true — The subscription's plan is an annual commitment plan.
166 # - false — The plan is not an annual commitment plan.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700167 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400168 "purchaseOrderId": "A String", # 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.
169 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
170 #
171 # Possible options include:
172 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700173 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
174 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
175 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
176 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
177 "A String",
178 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400179 "subscriptionId": "A String", # 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.
180 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
181 "customerId": "A String", # 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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700182 }</pre>
183</div>
184
185<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400186 <code class="details" id="changePlan">changePlan(customerId, subscriptionId, body)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400187 <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 -0400188
189Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400190 customerId: string, Either the customer's primary domain name or the customer'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)
191 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 -0400192 body: object, The request body. (required)
193 The object takes the form of:
194
195{ # JSON template for the ChangePlan rpc request.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400196 "planName": "A String", # The planName property is required. This is the name of the subscription's payment plan. For more information about the Google payment plans, see API concepts.
197 #
198 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 # - 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 -0400200 # - ANNUAL_YEARLY_PAY - The annual commitment plan with yearly payments
201 # - FLEXIBLE - The flexible plan
202 # - TRIAL - The 30-day free trial plan
203 "dealCode": "A String", # 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.
204 "kind": "subscriptions#changePlanRequest", # Identifies the resource as a subscription change plan request. Value: subscriptions#changePlanRequest
205 "seats": { # JSON template for subscription seats. # This is a required property. The seats property is the number of user seat licenses.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700206 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
207 "numberOfSeats": 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.
208 "maximumNumberOfSeats": 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'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.
209 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400210 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400211 "purchaseOrderId": "A String", # 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 -0400212 }
213
214
215Returns:
216 An object of the form:
217
218 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400219 "renewalSettings": { # 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.
220 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
221 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400222 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400223 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700224 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400225 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
226 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
227 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
228 # - true — The plan is in trial.
229 # - false — The plan is not in trial.
John Asmuth614db982014-04-24 15:46:26 -0400230 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400231 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
232 "resourceUiUrl": "A String", # URL to customer'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.
233 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700234 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
235 "numberOfSeats": 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.
236 "maximumNumberOfSeats": 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'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.
237 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400238 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400239 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
240 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700241 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400242 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
243 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
244 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000245 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400246 "status": "A String", # This is an optional property.
247 "plan": { # 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"s payment plans, see the API concepts.
248 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
249 #
250 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700251 # - 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 -0400252 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
253 # - FLEXIBLE — The flexible plan
254 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
256 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400257 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
258 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
John Asmuth614db982014-04-24 15:46:26 -0400259 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400260 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
261 # - true — The subscription's plan is an annual commitment plan.
262 # - false — The plan is not an annual commitment plan.
John Asmuth614db982014-04-24 15:46:26 -0400263 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400264 "purchaseOrderId": "A String", # 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.
265 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
266 #
267 # Possible options include:
268 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700269 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
270 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
271 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
272 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
273 "A String",
274 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400275 "subscriptionId": "A String", # 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.
276 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
277 "customerId": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400278 }</pre>
279</div>
280
281<div class="method">
282 <code class="details" id="changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400283 <pre>Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only.
John Asmuth614db982014-04-24 15:46:26 -0400284
285Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400286 customerId: string, Either the customer's primary domain name or the customer'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)
287 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 -0400288 body: object, The request body. (required)
289 The object takes the form of:
290
291{ # JSON template for a subscription renewal settings.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400292 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
293 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400294}
295
296
297Returns:
298 An object of the form:
299
300 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400301 "renewalSettings": { # 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.
302 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
303 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400304 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400305 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700306 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400307 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
308 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
309 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
310 # - true — The plan is in trial.
311 # - false — The plan is not in trial.
John Asmuth614db982014-04-24 15:46:26 -0400312 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400313 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
314 "resourceUiUrl": "A String", # URL to customer'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.
315 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
317 "numberOfSeats": 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.
318 "maximumNumberOfSeats": 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'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.
319 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400320 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400321 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
322 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700323 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400324 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
325 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
326 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000327 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400328 "status": "A String", # This is an optional property.
329 "plan": { # 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"s payment plans, see the API concepts.
330 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
331 #
332 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700333 # - 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 -0400334 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
335 # - FLEXIBLE — The flexible plan
336 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700337 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
338 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400339 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
340 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
John Asmuth614db982014-04-24 15:46:26 -0400341 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400342 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
343 # - true — The subscription's plan is an annual commitment plan.
344 # - false — The plan is not an annual commitment plan.
John Asmuth614db982014-04-24 15:46:26 -0400345 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400346 "purchaseOrderId": "A String", # 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.
347 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
348 #
349 # Possible options include:
350 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700351 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
352 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
353 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
354 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
355 "A String",
356 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400357 "subscriptionId": "A String", # 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.
358 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
359 "customerId": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400360 }</pre>
361</div>
362
363<div class="method">
364 <code class="details" id="changeSeats">changeSeats(customerId, subscriptionId, body)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400365 <pre>Update a subscription's user license settings.
John Asmuth614db982014-04-24 15:46:26 -0400366
367Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400368 customerId: string, Either the customer's primary domain name or the customer'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)
369 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 -0400370 body: object, The request body. (required)
371 The object takes the form of:
372
373{ # JSON template for subscription seats.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
375 "numberOfSeats": 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.
376 "maximumNumberOfSeats": 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'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.
377 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400378}
379
380
381Returns:
382 An object of the form:
383
384 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400385 "renewalSettings": { # 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.
386 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
387 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400388 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400389 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700390 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400391 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
392 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
393 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
394 # - true — The plan is in trial.
395 # - false — The plan is not in trial.
John Asmuth614db982014-04-24 15:46:26 -0400396 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400397 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
398 "resourceUiUrl": "A String", # URL to customer'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.
399 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
401 "numberOfSeats": 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.
402 "maximumNumberOfSeats": 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'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.
403 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400404 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400405 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
406 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700407 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400408 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
409 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
410 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000411 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400412 "status": "A String", # This is an optional property.
413 "plan": { # 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"s payment plans, see the API concepts.
414 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
415 #
416 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 # - 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 -0400418 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
419 # - FLEXIBLE — The flexible plan
420 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700421 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
422 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400423 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
424 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
John Asmuth614db982014-04-24 15:46:26 -0400425 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400426 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
427 # - true — The subscription's plan is an annual commitment plan.
428 # - false — The plan is not an annual commitment plan.
John Asmuth614db982014-04-24 15:46:26 -0400429 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400430 "purchaseOrderId": "A String", # 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.
431 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
432 #
433 # Possible options include:
434 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700435 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
436 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
437 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
438 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
439 "A String",
440 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400441 "subscriptionId": "A String", # 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.
442 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
443 "customerId": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400444 }</pre>
445</div>
446
447<div class="method">
448 <code class="details" id="delete">delete(customerId, subscriptionId, deletionType)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449 <pre>Cancel or transfer a subscription to direct.
John Asmuth614db982014-04-24 15:46:26 -0400450
451Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400452 customerId: string, Either the customer's primary domain name or the customer'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)
453 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)
454 deletionType: string, The deletionType query string enables the cancellation, downgrade, or suspension of a subscription. (required)
John Asmuth614db982014-04-24 15:46:26 -0400455 Allowed values
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400456 cancel - Cancels the subscription immediately. This does not apply to a G Suite subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400457 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 -0400458</pre>
459</div>
460
461<div class="method">
462 <code class="details" id="get">get(customerId, subscriptionId)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400463 <pre>Get a specific subscription.
John Asmuth614db982014-04-24 15:46:26 -0400464
465Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400466 customerId: string, Either the customer's primary domain name or the customer'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)
467 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 -0400468
469Returns:
470 An object of the form:
471
472 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400473 "renewalSettings": { # 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.
474 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
475 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400476 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400477 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700478 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400479 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
480 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
481 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
482 # - true — The plan is in trial.
483 # - false — The plan is not in trial.
John Asmuth614db982014-04-24 15:46:26 -0400484 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400485 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
486 "resourceUiUrl": "A String", # URL to customer'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.
487 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700488 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
489 "numberOfSeats": 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.
490 "maximumNumberOfSeats": 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'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.
491 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400492 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400493 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
494 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700495 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400496 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
497 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
498 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000499 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400500 "status": "A String", # This is an optional property.
501 "plan": { # 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"s payment plans, see the API concepts.
502 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
503 #
504 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700505 # - 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 -0400506 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
507 # - FLEXIBLE — The flexible plan
508 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700509 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
510 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400511 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
512 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
John Asmuth614db982014-04-24 15:46:26 -0400513 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400514 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
515 # - true — The subscription's plan is an annual commitment plan.
516 # - false — The plan is not an annual commitment plan.
John Asmuth614db982014-04-24 15:46:26 -0400517 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400518 "purchaseOrderId": "A String", # 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.
519 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
520 #
521 # Possible options include:
522 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700523 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
524 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
525 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
526 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
527 "A String",
528 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400529 "subscriptionId": "A String", # 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.
530 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
531 "customerId": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400532 }</pre>
533</div>
534
535<div class="method">
536 <code class="details" id="insert">insert(customerId, body, customerAuthToken=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400537 <pre>Create or transfer a subscription.
John Asmuth614db982014-04-24 15:46:26 -0400538
539Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400540 customerId: string, Either the customer's primary domain name or the customer'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)
John Asmuth614db982014-04-24 15:46:26 -0400541 body: object, The request body. (required)
542 The object takes the form of:
543
544{ # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400545 "renewalSettings": { # 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.
546 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
547 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400548 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400549 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700550 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400551 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
552 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
553 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
554 # - true — The plan is in trial.
555 # - false — The plan is not in trial.
John Asmuth614db982014-04-24 15:46:26 -0400556 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400557 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
558 "resourceUiUrl": "A String", # URL to customer'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.
559 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700560 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
561 "numberOfSeats": 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.
562 "maximumNumberOfSeats": 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'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.
563 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400564 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400565 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
566 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700567 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400568 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
569 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
570 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000571 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400572 "status": "A String", # This is an optional property.
573 "plan": { # 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"s payment plans, see the API concepts.
574 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
575 #
576 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577 # - 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 -0400578 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
579 # - FLEXIBLE — The flexible plan
580 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700581 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
582 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400583 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
584 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
John Asmuth614db982014-04-24 15:46:26 -0400585 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400586 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
587 # - true — The subscription's plan is an annual commitment plan.
588 # - false — The plan is not an annual commitment plan.
John Asmuth614db982014-04-24 15:46:26 -0400589 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400590 "purchaseOrderId": "A String", # 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.
591 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
592 #
593 # Possible options include:
594 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700595 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
596 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
597 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
598 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
599 "A String",
600 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400601 "subscriptionId": "A String", # 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.
602 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
603 "customerId": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400604 }
605
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400606 customerAuthToken: string, The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer'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.
John Asmuth614db982014-04-24 15:46:26 -0400607
608Returns:
609 An object of the form:
610
611 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400612 "renewalSettings": { # 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.
613 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
614 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400615 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400616 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700617 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400618 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
619 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
620 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
621 # - true — The plan is in trial.
622 # - false — The plan is not in trial.
John Asmuth614db982014-04-24 15:46:26 -0400623 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400624 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
625 "resourceUiUrl": "A String", # URL to customer'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.
626 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
628 "numberOfSeats": 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.
629 "maximumNumberOfSeats": 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'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.
630 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400631 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400632 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
633 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700634 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400635 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
636 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
637 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000638 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400639 "status": "A String", # This is an optional property.
640 "plan": { # 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"s payment plans, see the API concepts.
641 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
642 #
643 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700644 # - 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 -0400645 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
646 # - FLEXIBLE — The flexible plan
647 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700648 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
649 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400650 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
651 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
John Asmuth614db982014-04-24 15:46:26 -0400652 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400653 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
654 # - true — The subscription's plan is an annual commitment plan.
655 # - false — The plan is not an annual commitment plan.
John Asmuth614db982014-04-24 15:46:26 -0400656 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400657 "purchaseOrderId": "A String", # 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.
658 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
659 #
660 # Possible options include:
661 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700662 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
663 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
664 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
665 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
666 "A String",
667 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400668 "subscriptionId": "A String", # 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.
669 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
670 "customerId": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400671 }</pre>
672</div>
673
674<div class="method">
675 <code class="details" id="list">list(customerAuthToken=None, pageToken=None, maxResults=None, customerNamePrefix=None, customerId=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400676 <pre>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.
John Asmuth614db982014-04-24 15:46:26 -0400677
678Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400679 customerAuthToken: string, The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer'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.
John Asmuth614db982014-04-24 15:46:26 -0400680 pageToken: string, Token to specify next page in the list
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400681 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.
682 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:
683- exa -- Returns all customer names that start with 'exa' which could include exam.com, example20.com, and example.com. A name prefix is similar to using a regular expression's asterisk, exa*.
684- example -- Returns example20.com and example.com.
685 customerId: string, Either the customer's primary domain name or the customer'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 -0400686
687Returns:
688 An object of the form:
689
690 { # JSON template for a subscription list.
691 "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400692 "kind": "reseller#subscriptions", # Identifies the resource as a collection of subscriptions. Value: reseller#subscriptions
John Asmuth614db982014-04-24 15:46:26 -0400693 "subscriptions": [ # The subscriptions in this page of results.
694 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400695 "renewalSettings": { # 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.
696 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
697 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400698 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400699 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700700 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400701 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
702 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
703 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
704 # - true — The plan is in trial.
705 # - false — The plan is not in trial.
John Asmuth614db982014-04-24 15:46:26 -0400706 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400707 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
708 "resourceUiUrl": "A String", # URL to customer'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.
709 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700710 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
711 "numberOfSeats": 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.
712 "maximumNumberOfSeats": 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'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.
713 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400714 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400715 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
716 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700717 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400718 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
719 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
720 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000721 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400722 "status": "A String", # This is an optional property.
723 "plan": { # 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"s payment plans, see the API concepts.
724 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
725 #
726 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700727 # - 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 -0400728 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
729 # - FLEXIBLE — The flexible plan
730 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700731 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
732 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400733 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
734 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
John Asmuth614db982014-04-24 15:46:26 -0400735 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400736 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
737 # - true — The subscription's plan is an annual commitment plan.
738 # - false — The plan is not an annual commitment plan.
John Asmuth614db982014-04-24 15:46:26 -0400739 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400740 "purchaseOrderId": "A String", # 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.
741 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
742 #
743 # Possible options include:
744 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700745 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
746 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
747 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
748 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
749 "A String",
750 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400751 "subscriptionId": "A String", # 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.
752 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
753 "customerId": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400754 },
755 ],
756 }</pre>
757</div>
758
759<div class="method">
760 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
761 <pre>Retrieves the next page of results.
762
763Args:
764 previous_request: The request for the previous page. (required)
765 previous_response: The response from the request for the previous page. (required)
766
767Returns:
768 A request object that you can call 'execute()' on to request the next
769 page. Returns None if there are no more items in the collection.
770 </pre>
771</div>
772
773<div class="method">
774 <code class="details" id="startPaidService">startPaidService(customerId, subscriptionId)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400775 <pre>Immediately move a 30-day free trial subscription to a paid service subscription.
John Asmuth614db982014-04-24 15:46:26 -0400776
777Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400778 customerId: string, Either the customer's primary domain name or the customer'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)
779 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 -0400780
781Returns:
782 An object of the form:
783
784 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400785 "renewalSettings": { # 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.
786 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
787 "renewalType": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400788 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400789 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700790 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400791 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
792 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
793 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
794 # - true — The plan is in trial.
795 # - false — The plan is not in trial.
John Asmuth614db982014-04-24 15:46:26 -0400796 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400797 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
798 "resourceUiUrl": "A String", # URL to customer'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.
799 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700800 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
801 "numberOfSeats": 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.
802 "maximumNumberOfSeats": 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'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.
803 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field's value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: listForProductAndSku
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700804 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400805 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
806 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700807 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400808 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
809 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
810 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000811 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400812 "status": "A String", # This is an optional property.
813 "plan": { # 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"s payment plans, see the API concepts.
814 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
815 #
816 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700817 # - 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 -0400818 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
819 # - FLEXIBLE — The flexible plan
820 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700821 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
822 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400823 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
824 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700825 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400826 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
827 # - true — The subscription's plan is an annual commitment plan.
828 # - false — The plan is not an annual commitment plan.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700829 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400830 "purchaseOrderId": "A String", # 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.
831 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
832 #
833 # Possible options include:
834 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700835 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
836 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
837 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
838 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
839 "A String",
840 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400841 "subscriptionId": "A String", # 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.
842 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
843 "customerId": "A String", # 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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700844 }</pre>
845</div>
846
847<div class="method">
848 <code class="details" id="suspend">suspend(customerId, subscriptionId)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400849 <pre>Suspends an active subscription.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700850
851Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400852 customerId: string, Either the customer's primary domain name or the customer'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)
853 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 -0700854
855Returns:
856 An object of the form:
857
858 { # JSON template for a subscription.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400859 "renewalSettings": { # 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.
860 "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting. Value: subscriptions#renewalSettings
861 "renewalType": "A String", # 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.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700862 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400863 "dealCode": "A String", # 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700864 "customerDomain": "A String", # Primary domain name of the customer
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400865 "trialSettings": { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
866 "trialEndTime": "A String", # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
867 "isInTrial": True or False, # Determines if a subscription's plan is in a 30-day free trial or not:
868 # - true — The plan is in trial.
869 # - false — The plan is not in trial.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700870 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400871 "skuId": "A String", # A required property. The skuId is a unique system identifier for a product'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.
872 "resourceUiUrl": "A String", # URL to customer'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.
873 "seats": { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700874 "kind": "subscriptions#seats", # Identifies the resource as a subscription seat setting. Value: subscriptions#seats
875 "numberOfSeats": 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.
876 "maximumNumberOfSeats": 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'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.
877 "licensedNumberOfSeats": 42, # Read-only field containing the current number of users that are assigned a license for the product defined in skuId. This field'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 -0400878 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400879 "creationTime": "A String", # The creationTime property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
880 "kind": "reseller#subscription", # Identifies the resource as a Subscription. Value: reseller#subscription
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700881 "skuName": "A String", # Read-only external display name for a product's SKU assigned to a customer in the subscription. SKU names are subject to change at Google's discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400882 "transferInfo": { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
883 "transferabilityExpirationTime": "A String", # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
884 "minimumTransferableSeats": 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.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000885 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400886 "status": "A String", # This is an optional property.
887 "plan": { # 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"s payment plans, see the API concepts.
888 "planName": "A String", # The planName property is required. This is the name of the subscription's plan. For more information about the Google payment plans, see the API concepts.
889 #
890 # Possible values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700891 # - 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 -0400892 # - ANNUAL_YEARLY_PAY — The annual commitment plan with yearly payments
893 # - FLEXIBLE — The flexible plan
894 # - 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700895 # - FREE — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
896 "commitmentInterval": { # In this version of the API, annual commitment plan's interval is one year. Note: When billingMethod value is OFFLINE, the subscription property object plan.commitmentInterval is omitted in all API responses.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400897 "endTime": "A String", # An annual commitment plan's interval's endTime in milliseconds using the UNIX Epoch format. See an example Epoch converter.
898 "startTime": "A String", # An annual commitment plan's interval's startTime in milliseconds using UNIX Epoch format. See an example Epoch converter.
John Asmuth614db982014-04-24 15:46:26 -0400899 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400900 "isCommitmentPlan": True or False, # The isCommitmentPlan property's boolean value identifies the plan as an annual commitment plan:
901 # - true — The subscription's plan is an annual commitment plan.
902 # - false — The plan is not an annual commitment plan.
John Asmuth614db982014-04-24 15:46:26 -0400903 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400904 "purchaseOrderId": "A String", # 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.
905 "suspensionReasons": [ # 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's STATUS is SUSPENDED until all pending suspensions are removed.
906 #
907 # Possible options include:
908 # - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the G Suite Resold Terms of Services.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700909 # - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service was cancelled at the end of their term.
910 # - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
911 # - TRIAL_ENDED - The customer's trial expired without a plan selected.
912 # - OTHER - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
913 "A String",
914 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400915 "subscriptionId": "A String", # 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.
916 "billingMethod": "A String", # Read-only field that returns the current billing method for a subscription.
917 "customerId": "A String", # 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.
John Asmuth614db982014-04-24 15:46:26 -0400918 }</pre>
919</div>
920
921</body></html>