blob: 0cb71ffc67da877698256a05ae36c2c0c25b27bd [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
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080075<h1><a href="reseller_v1.html">Google Workspace Reseller API</a> . <a href="reseller_v1.subscriptions.html">subscriptions</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080078 <code><a href="#activate">activate(customerId, subscriptionId, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080079<p class="firstline">Activates a subscription previously suspended by the reseller. If you did not suspend the customer subscription and it is suspended for any other reason, such as for abuse or a pending ToS acceptance, this call will not reactivate the customer subscription.</p>
Craig Citro0e5b9bf2014-10-15 10:26:14 -070080<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080081 <code><a href="#changePlan">changePlan(customerId, subscriptionId, body=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080082<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. How a plan is updated differs depending on the plan and the products. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan).</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080084 <code><a href="#changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080085<p class="firstline">Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_renewal).</p>
John Asmuth614db982014-04-24 15:46:26 -040086<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080087 <code><a href="#changeSeats">changeSeats(customerId, subscriptionId, body=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080088<p class="firstline">Update a subscription's user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see [Manage Subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat).</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#close">close()</a></code></p>
91<p class="firstline">Close httplib2 connections.</p>
92<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080093 <code><a href="#delete">delete(customerId, subscriptionId, deletionType, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070094<p class="firstline">Cancel, suspend, or transfer a subscription to direct.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080096 <code><a href="#get">get(customerId, subscriptionId, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080097<p class="firstline">Get a specific subscription. The `subscriptionId` can be found using the [Retrieve all reseller subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) method. For more information about retrieving a specific subscription, see the information descrived in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_subscription).</p>
John Asmuth614db982014-04-24 15:46:26 -040098<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080099 <code><a href="#insert">insert(customerId, body=None, customerAuthToken=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800100<p class="firstline">Create or transfer a subscription. Create a subscription for a customer's account that you ordered using the [Order a new customer account](/admin-sdk/reseller/v1/reference/customers/insert.html) method. For more information about creating a subscription for different payment plans, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#create_subscription).\ If you did not order the customer's account using the customer insert method, use the customer's `customerAuthToken` when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the [batch operation](/admin-sdk/reseller/v1/how-tos/batch.html) to transfer all of these subscriptions. For more information, see how to [transfer subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription).</p>
John Asmuth614db982014-04-24 15:46:26 -0400101<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800102 <code><a href="#list">list(customerAuthToken=None, customerId=None, customerNamePrefix=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800103<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. Optionally, this method can filter the response by a `customerNamePrefix`. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions).</p>
John Asmuth614db982014-04-24 15:46:26 -0400104<p class="toc_element">
105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800108 <code><a href="#startPaidService">startPaidService(customerId, subscriptionId, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800109<p class="firstline">Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#paid_service).</p>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700110<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800111 <code><a href="#suspend">suspend(customerId, subscriptionId, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800112<p class="firstline">Suspends an active subscription. You can use this method to suspend a paid subscription that is currently in the `ACTIVE` state. * For `FLEXIBLE` subscriptions, billing is paused. * For `ANNUAL_MONTHLY_PAY` or `ANNUAL_YEARLY_PAY` subscriptions: * Suspending the subscription does not change the renewal date that was originally committed to. * A suspended subscription does not renew. If you activate the subscription after the original renewal date, a new annual subscription will be created, starting on the day of activation. We strongly encourage you to suspend subscriptions only for short periods of time as suspensions over 60 days may result in the subscription being cancelled.</p>
John Asmuth614db982014-04-24 15:46:26 -0400113<h3>Method Details</h3>
114<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800115 <code class="details" id="activate">activate(customerId, subscriptionId, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800116 <pre>Activates a subscription previously suspended by the reseller. If you did not suspend the customer subscription and it is suspended for any other reason, such as for abuse or a pending ToS acceptance, this call will not reactivate the customer subscription.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700117
118Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800119 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
120 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800121 x__xgafv: string, V1 error format.
122 Allowed values
123 1 - v1 error format
124 2 - v2 error format
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700125
126Returns:
127 An object of the form:
128
129 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800130 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800131 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800132 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
133 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800134 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
135 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
136 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
137 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
138 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
139 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800140 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800141 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
142 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800143 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800144 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800145 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800146 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
147 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800148 },
149 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
150 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800151 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
152 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
153 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
154 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800155 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800156 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800157 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
158 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800159 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
160 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161 &quot;A String&quot;,
162 ],
163 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
164 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
165 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
166 },
167 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800168 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800169 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
170 },
171}</pre>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700172</div>
173
174<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800175 <code class="details" id="changePlan">changePlan(customerId, subscriptionId, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800176 <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. How a plan is updated differs depending on the plan and the products. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan).
John Asmuth614db982014-04-24 15:46:26 -0400177
178Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800179 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
180 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700181 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400182 The object takes the form of:
183
184{ # JSON template for the ChangePlan rpc request.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800185 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `changePlan` request in order to receive discounted rate. This property is optional. If a deal code has already been added to a subscription, this property may be left empty and the existing discounted rate will still apply (if not empty, only provide the deal code that is already present on the subscription). If a deal code has never been added to a subscription and this property is left blank, regular pricing will apply.
186 &quot;kind&quot;: &quot;subscriptions#changePlanRequest&quot;, # Identifies the resource as a subscription change plan request. Value: `subscriptions#changePlanRequest`
187 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s payment plan. For more information about the Google payment plans, see API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` - The annual commitment plan with monthly payments *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` - The annual commitment plan with yearly payments - `FLEXIBLE` - The flexible plan - `TRIAL` - The 30-day free trial plan
188 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800189 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The seats property is the number of user seat licenses.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800190 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
191 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
192 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
193 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800194 },
195}
John Asmuth614db982014-04-24 15:46:26 -0400196
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800197 x__xgafv: string, V1 error format.
198 Allowed values
199 1 - v1 error format
200 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400201
202Returns:
203 An object of the form:
204
205 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800206 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800207 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800208 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
209 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800210 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
211 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
212 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
213 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
214 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
215 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800216 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800217 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
218 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800219 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800220 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800221 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800222 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
223 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800224 },
225 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
226 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800227 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
228 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
229 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
230 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800231 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800232 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800233 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
234 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800235 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
236 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800237 &quot;A String&quot;,
238 ],
239 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
240 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
241 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
242 },
243 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800244 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800245 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
246 },
247}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400248</div>
249
250<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800251 <code class="details" id="changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800252 <pre>Update a user license&#x27;s renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_renewal).
John Asmuth614db982014-04-24 15:46:26 -0400253
254Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800255 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
256 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700257 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400258 The object takes the form of:
259
260{ # JSON template for a subscription renewal settings.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800261 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
262 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
John Asmuth614db982014-04-24 15:46:26 -0400263}
264
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800265 x__xgafv: string, V1 error format.
266 Allowed values
267 1 - v1 error format
268 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400269
270Returns:
271 An object of the form:
272
273 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800274 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800275 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800276 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
277 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800278 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
279 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
280 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
281 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
282 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
283 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800284 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800285 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
286 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800287 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800288 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800289 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800290 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
291 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800292 },
293 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
294 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800295 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
296 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
297 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
298 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800299 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800300 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800301 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
302 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800303 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
304 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800305 &quot;A String&quot;,
306 ],
307 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
308 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
309 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
310 },
311 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800312 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800313 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
314 },
315}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400316</div>
317
318<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800319 <code class="details" id="changeSeats">changeSeats(customerId, subscriptionId, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800320 <pre>Update a subscription&#x27;s user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see [Manage Subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat).
John Asmuth614db982014-04-24 15:46:26 -0400321
322Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800323 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
324 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700325 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400326 The object takes the form of:
327
328{ # JSON template for subscription seats.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800329 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
330 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
331 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
332 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
John Asmuth614db982014-04-24 15:46:26 -0400333}
334
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800335 x__xgafv: string, V1 error format.
336 Allowed values
337 1 - v1 error format
338 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400339
340Returns:
341 An object of the form:
342
343 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800344 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800345 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800346 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
347 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800348 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
349 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
350 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
351 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
352 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
353 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800354 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800355 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
356 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800357 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800358 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800359 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800360 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
361 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800362 },
363 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
364 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800365 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
366 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
367 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
368 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800369 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800370 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800371 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
372 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800373 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
374 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800375 &quot;A String&quot;,
376 ],
377 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
378 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
379 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
380 },
381 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800382 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800383 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
384 },
385}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400386</div>
387
388<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700389 <code class="details" id="close">close()</code>
390 <pre>Close httplib2 connections.</pre>
391</div>
392
393<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800394 <code class="details" id="delete">delete(customerId, subscriptionId, deletionType, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700395 <pre>Cancel, suspend, or transfer a subscription to direct.
John Asmuth614db982014-04-24 15:46:26 -0400396
397Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800398 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
399 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)
400 deletionType: string, The `deletionType` query string enables the cancellation, downgrade, or suspension of a subscription. (required)
John Asmuth614db982014-04-24 15:46:26 -0400401 Allowed values
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800402 deletion_type_undefined -
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400403 cancel - Cancels the subscription immediately. This does not apply to a G Suite subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800404 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800405 x__xgafv: string, V1 error format.
406 Allowed values
407 1 - v1 error format
408 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400409</pre>
410</div>
411
412<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800413 <code class="details" id="get">get(customerId, subscriptionId, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800414 <pre>Get a specific subscription. The `subscriptionId` can be found using the [Retrieve all reseller subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) method. For more information about retrieving a specific subscription, see the information descrived in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_subscription).
John Asmuth614db982014-04-24 15:46:26 -0400415
416Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800417 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
418 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)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800419 x__xgafv: string, V1 error format.
420 Allowed values
421 1 - v1 error format
422 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400423
424Returns:
425 An object of the form:
426
427 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800428 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800429 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800430 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
431 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800432 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
433 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
434 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
435 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
436 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
437 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800438 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800439 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
440 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800441 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800442 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800443 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800444 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
445 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800446 },
447 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
448 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800449 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
450 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
451 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
452 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800453 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800454 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800455 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
456 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800457 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
458 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800459 &quot;A String&quot;,
460 ],
461 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
462 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
463 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
464 },
465 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800466 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800467 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
468 },
469}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400470</div>
471
472<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800473 <code class="details" id="insert">insert(customerId, body=None, customerAuthToken=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800474 <pre>Create or transfer a subscription. Create a subscription for a customer&#x27;s account that you ordered using the [Order a new customer account](/admin-sdk/reseller/v1/reference/customers/insert.html) method. For more information about creating a subscription for different payment plans, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#create_subscription).\ If you did not order the customer&#x27;s account using the customer insert method, use the customer&#x27;s `customerAuthToken` when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the [batch operation](/admin-sdk/reseller/v1/how-tos/batch.html) to transfer all of these subscriptions. For more information, see how to [transfer subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription).
John Asmuth614db982014-04-24 15:46:26 -0400475
476Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800477 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700478 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400479 The object takes the form of:
480
481{ # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800482 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800483 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800484 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800485 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800486 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
487 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
488 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
489 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
490 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
491 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800492 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800493 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
494 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800495 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800496 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800497 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800498 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
499 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800500 },
501 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
502 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800503 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
504 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
505 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
506 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800507 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800508 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800509 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
510 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800511 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
512 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800513 &quot;A String&quot;,
514 ],
515 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
516 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
517 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
518 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800519 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800520 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800521 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800522 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700523}
524
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800525 customerAuthToken: string, The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer&#x27;s subscription or transfers another reseller customer&#x27;s subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800526 x__xgafv: string, V1 error format.
527 Allowed values
528 1 - v1 error format
529 2 - v2 error format
Bu Sun Kim65020912020-05-20 12:08:20 -0700530
531Returns:
532 An object of the form:
533
534 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800535 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800536 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800537 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
538 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800539 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
540 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
541 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
542 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
543 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
544 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800545 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800546 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
547 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800548 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800549 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800550 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800551 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
552 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800553 },
554 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
555 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800556 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
557 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
558 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
559 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800560 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800561 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800562 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
563 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800564 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
565 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800566 &quot;A String&quot;,
567 ],
568 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
569 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
570 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
571 },
572 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800573 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800574 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
575 },
576}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400577</div>
578
579<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800580 <code class="details" id="list">list(customerAuthToken=None, customerId=None, customerNamePrefix=None, maxResults=None, pageToken=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800581 <pre>List of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer&#x27;s subscriptions, or all of a customer&#x27;s transferable subscriptions. Optionally, this method can filter the response by a `customerNamePrefix`. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions).
John Asmuth614db982014-04-24 15:46:26 -0400582
583Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800584 customerAuthToken: string, The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer&#x27;s subscription or transfers another reseller customer&#x27;s subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.
585 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates.
586 customerNamePrefix: string, When retrieving all of your subscriptions and filtering for specific customers, you can enter a prefix for a customer name. Using an example customer group that includes `exam.com`, `example20.com` and `example.com`: - `exa` -- Returns all customer names that start with &#x27;exa&#x27; which could include `exam.com`, `example20.com`, and `example.com`. A name prefix is similar to using a regular expression&#x27;s asterisk, exa*. - `example` -- Returns `example20.com` and `example.com`.
587 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800588 pageToken: string, Token to specify next page in the list
589 x__xgafv: string, V1 error format.
590 Allowed values
591 1 - v1 error format
592 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400593
594Returns:
595 An object of the form:
596
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800597 { # A subscription manages the relationship of a Google customer&#x27;s payment plan with a product&#x27;s SKU, user licenses, 30-day free trial status, and renewal options. A primary role of a reseller is to manage the Google customer&#x27;s subscriptions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800598 &quot;kind&quot;: &quot;reseller#subscriptions&quot;, # Identifies the resource as a collection of subscriptions. Value: reseller#subscriptions
599 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
600 &quot;subscriptions&quot;: [ # The subscriptions in this page of results.
601 { # JSON template for a subscription.
602 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800603 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800604 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
605 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800606 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
607 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
608 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
609 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
610 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
611 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800612 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800613 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
614 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800616 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800617 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800618 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
619 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800620 },
621 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
622 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800623 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
624 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
625 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
626 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800627 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800628 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800629 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
630 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800631 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
632 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800633 &quot;A String&quot;,
634 ],
635 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
636 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
637 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
638 },
639 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800640 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800641 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
642 },
643 },
644 ],
645}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400646</div>
647
648<div class="method">
649 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
650 <pre>Retrieves the next page of results.
651
652Args:
653 previous_request: The request for the previous page. (required)
654 previous_response: The response from the request for the previous page. (required)
655
656Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700657 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400658 page. Returns None if there are no more items in the collection.
659 </pre>
660</div>
661
662<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800663 <code class="details" id="startPaidService">startPaidService(customerId, subscriptionId, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800664 <pre>Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#paid_service).
John Asmuth614db982014-04-24 15:46:26 -0400665
666Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800667 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
668 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)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800669 x__xgafv: string, V1 error format.
670 Allowed values
671 1 - v1 error format
672 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400673
674Returns:
675 An object of the form:
676
677 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800678 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800679 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800680 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
681 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800682 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
683 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
684 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
685 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
686 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
687 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800688 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800689 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
690 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800691 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800692 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800693 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800694 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
695 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800696 },
697 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
698 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800699 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
700 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
701 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
702 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800703 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800704 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800705 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
706 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800707 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
708 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800709 &quot;A String&quot;,
710 ],
711 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
712 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
713 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
714 },
715 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800716 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800717 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
718 },
719}</pre>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700720</div>
721
722<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800723 <code class="details" id="suspend">suspend(customerId, subscriptionId, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800724 <pre>Suspends an active subscription. You can use this method to suspend a paid subscription that is currently in the `ACTIVE` state. * For `FLEXIBLE` subscriptions, billing is paused. * For `ANNUAL_MONTHLY_PAY` or `ANNUAL_YEARLY_PAY` subscriptions: * Suspending the subscription does not change the renewal date that was originally committed to. * A suspended subscription does not renew. If you activate the subscription after the original renewal date, a new annual subscription will be created, starting on the day of activation. We strongly encourage you to suspend subscriptions only for short periods of time as suspensions over 60 days may result in the subscription being cancelled.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700725
726Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800727 customerId: string, Either the customer&#x27;s primary domain name or the customer&#x27;s unique identifier. If using the domain name, we do not recommend using a `customerId` as a key for persistent data. If the domain name for a `customerId` is changed, the Google system automatically updates. (required)
728 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)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800729 x__xgafv: string, V1 error format.
730 Allowed values
731 1 - v1 error format
732 2 - v2 error format
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700733
734Returns:
735 An object of the form:
736
737 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800738 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800739 &quot;creationTime&quot;: &quot;A String&quot;, # The `creationTime` property is the date when subscription was created. It is in milliseconds using the Epoch format. See an example Epoch converter.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800740 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
741 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800742 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
743 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
744 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
745 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
746 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
747 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800748 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800749 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
750 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800751 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800752 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800753 &quot;renewalSettings&quot;: { # JSON template for a subscription renewal settings. # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800754 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
755 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800756 },
757 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
758 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800759 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
760 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
761 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
762 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800763 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800764 &quot;skuId&quot;: &quot;A String&quot;, # A required property. The `skuId` is a unique system identifier for a product&#x27;s SKU assigned to a customer in the subscription. For products and SKUs available in this version of the API, see Product and SKU IDs.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800765 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
766 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800767 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
768 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800769 &quot;A String&quot;,
770 ],
771 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
772 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
773 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
774 },
775 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800776 &quot;isInTrial&quot;: True or False, # Determines if a subscription&#x27;s plan is in a 30-day free trial or not: - `true` — The plan is in trial. - `false` — The plan is not in trial.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800777 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
778 },
779}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400780</div>
781
782</body></html>