blob: fd4d83ae943be550fd8e65d0cd2594925634ea48 [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.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700164 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800165 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
166 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
167 },
168 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800169 &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 -0800170 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
171 },
172}</pre>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700173</div>
174
175<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800176 <code class="details" id="changePlan">changePlan(customerId, subscriptionId, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800177 <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 -0400178
179Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800180 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)
181 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700182 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400183 The object takes the form of:
184
185{ # JSON template for the ChangePlan rpc request.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800186 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `changePlan` request in order to receive discounted rate. This property is optional. If a deal code has already been added to a subscription, this property may be left empty and the existing discounted rate will still apply (if not empty, only provide the deal code that is already present on the subscription). If a deal code has never been added to a subscription and this property is left blank, regular pricing will apply.
187 &quot;kind&quot;: &quot;subscriptions#changePlanRequest&quot;, # Identifies the resource as a subscription change plan request. Value: `subscriptions#changePlanRequest`
188 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s payment plan. For more information about the Google payment plans, see API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` - The annual commitment plan with monthly payments *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` - The annual commitment plan with yearly payments - `FLEXIBLE` - The flexible plan - `TRIAL` - The 30-day free trial plan
189 &quot;purchaseOrderId&quot;: &quot;A String&quot;, # This is an optional property. This purchase order (PO) information is for resellers to use for their company tracking usage. If a `purchaseOrderId` value is given it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800190 &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 -0800191 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
192 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
193 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
194 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800195 },
196}
John Asmuth614db982014-04-24 15:46:26 -0400197
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800198 x__xgafv: string, V1 error format.
199 Allowed values
200 1 - v1 error format
201 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400202
203Returns:
204 An object of the form:
205
206 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800207 &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 -0800208 &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 -0800209 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
210 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800211 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
212 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
213 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
214 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
215 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
216 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800217 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800218 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
219 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800220 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800221 &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 -0800222 &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 -0800223 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
224 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800225 },
226 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
227 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800228 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
229 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
230 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
231 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800232 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800233 &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 -0800234 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
235 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800236 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
237 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800238 &quot;A String&quot;,
239 ],
240 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700241 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800242 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
243 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
244 },
245 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800246 &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 -0800247 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
248 },
249}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400250</div>
251
252<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800253 <code class="details" id="changeRenewalSettings">changeRenewalSettings(customerId, subscriptionId, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800254 <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 -0400255
256Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800257 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)
258 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700259 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400260 The object takes the form of:
261
262{ # JSON template for a subscription renewal settings.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800263 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
264 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
John Asmuth614db982014-04-24 15:46:26 -0400265}
266
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800267 x__xgafv: string, V1 error format.
268 Allowed values
269 1 - v1 error format
270 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400271
272Returns:
273 An object of the form:
274
275 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800276 &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 -0800277 &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 -0800278 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
279 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800280 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
281 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
282 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
283 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
284 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
285 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800286 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800287 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
288 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800289 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800290 &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 -0800291 &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 -0800292 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
293 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800294 },
295 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
296 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800297 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
298 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
299 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
300 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800301 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800302 &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 -0800303 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
304 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800305 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
306 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800307 &quot;A String&quot;,
308 ],
309 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700310 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800311 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
312 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
313 },
314 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800315 &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 -0800316 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
317 },
318}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400319</div>
320
321<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800322 <code class="details" id="changeSeats">changeSeats(customerId, subscriptionId, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800323 <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 -0400324
325Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800326 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)
327 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700328 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400329 The object takes the form of:
330
331{ # JSON template for subscription seats.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800332 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
333 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
334 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
335 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
John Asmuth614db982014-04-24 15:46:26 -0400336}
337
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800338 x__xgafv: string, V1 error format.
339 Allowed values
340 1 - v1 error format
341 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400342
343Returns:
344 An object of the form:
345
346 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800347 &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 -0800348 &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 -0800349 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
350 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800351 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
352 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
353 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
354 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
355 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
356 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800357 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800358 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
359 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800360 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800361 &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 -0800362 &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 -0800363 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
364 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800365 },
366 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
367 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800368 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
369 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
370 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
371 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800372 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800373 &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 -0800374 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
375 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800376 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
377 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800378 &quot;A String&quot;,
379 ],
380 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700381 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800382 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
383 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
384 },
385 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800386 &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 -0800387 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
388 },
389}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400390</div>
391
392<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700393 <code class="details" id="close">close()</code>
394 <pre>Close httplib2 connections.</pre>
395</div>
396
397<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800398 <code class="details" id="delete">delete(customerId, subscriptionId, deletionType, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700399 <pre>Cancel, suspend, or transfer a subscription to direct.
John Asmuth614db982014-04-24 15:46:26 -0400400
401Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800402 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)
403 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
404 deletionType: string, The `deletionType` query string enables the cancellation, downgrade, or suspension of a subscription. (required)
John Asmuth614db982014-04-24 15:46:26 -0400405 Allowed values
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800406 deletion_type_undefined -
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400407 cancel - Cancels the subscription immediately. This does not apply to a G Suite subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800408 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 -0800409 x__xgafv: string, V1 error format.
410 Allowed values
411 1 - v1 error format
412 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400413</pre>
414</div>
415
416<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800417 <code class="details" id="get">get(customerId, subscriptionId, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800418 <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 -0400419
420Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800421 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)
422 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800423 x__xgafv: string, V1 error format.
424 Allowed values
425 1 - v1 error format
426 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400427
428Returns:
429 An object of the form:
430
431 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800432 &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 -0800433 &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 -0800434 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
435 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800436 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
437 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
438 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
439 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
440 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
441 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800442 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800443 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
444 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800445 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800446 &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 -0800447 &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 -0800448 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
449 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800450 },
451 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
452 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800453 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
454 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
455 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
456 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800457 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800458 &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 -0800459 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
460 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800461 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
462 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800463 &quot;A String&quot;,
464 ],
465 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700466 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800467 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
468 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
469 },
470 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800471 &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 -0800472 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
473 },
474}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400475</div>
476
477<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800478 <code class="details" id="insert">insert(customerId, body=None, customerAuthToken=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800479 <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 -0400480
481Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800482 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 -0700483 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400484 The object takes the form of:
485
486{ # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800487 &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 -0800488 &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 -0800489 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800490 &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 -0800491 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
492 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
493 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
494 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
495 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
496 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800497 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800498 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
499 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800500 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800501 &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 -0800502 &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 -0800503 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
504 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800505 },
506 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
507 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800508 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
509 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
510 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
511 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800512 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800513 &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 -0800514 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
515 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800516 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
517 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800518 &quot;A String&quot;,
519 ],
520 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700521 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800522 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
523 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
524 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800525 &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 -0800526 &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 -0800527 &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 -0800528 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700529}
530
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800531 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 -0800532 x__xgafv: string, V1 error format.
533 Allowed values
534 1 - v1 error format
535 2 - v2 error format
Bu Sun Kim65020912020-05-20 12:08:20 -0700536
537Returns:
538 An object of the form:
539
540 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800541 &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 -0800542 &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 -0800543 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
544 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800545 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
546 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
547 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
548 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
549 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
550 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800551 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800552 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
553 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800554 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800555 &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 -0800556 &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 -0800557 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
558 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800559 },
560 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
561 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800562 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
563 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
564 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
565 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800566 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800567 &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 -0800568 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
569 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800570 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
571 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800572 &quot;A String&quot;,
573 ],
574 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700575 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800576 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
577 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
578 },
579 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800580 &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 -0800581 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
582 },
583}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400584</div>
585
586<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800587 <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 -0800588 <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 -0400589
590Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800591 customerAuthToken: string, The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer&#x27;s subscription or transfers another reseller customer&#x27;s subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.
592 customerId: string, 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.
593 customerNamePrefix: string, When retrieving all of your subscriptions and filtering for specific customers, you can enter a prefix for a customer name. Using an example customer group that includes `exam.com`, `example20.com` and `example.com`: - `exa` -- Returns all customer names that start with &#x27;exa&#x27; which could include `exam.com`, `example20.com`, and `example.com`. A name prefix is similar to using a regular expression&#x27;s asterisk, exa*. - `example` -- Returns `example20.com` and `example.com`.
594 maxResults: integer, When retrieving a large list, the `maxResults` is the maximum number of results per page. The `nextPageToken` value takes you to the next page. The default is 20.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800595 pageToken: string, Token to specify next page in the list
596 x__xgafv: string, V1 error format.
597 Allowed values
598 1 - v1 error format
599 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400600
601Returns:
602 An object of the form:
603
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800604 { # 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 -0800605 &quot;kind&quot;: &quot;reseller#subscriptions&quot;, # Identifies the resource as a collection of subscriptions. Value: reseller#subscriptions
606 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
607 &quot;subscriptions&quot;: [ # The subscriptions in this page of results.
608 { # JSON template for a subscription.
609 &quot;billingMethod&quot;: &quot;A String&quot;, # Read-only field that returns the current billing method for a subscription.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800610 &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 -0800611 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
612 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800613 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
614 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
615 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
616 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
617 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
618 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800619 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800620 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
621 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800623 &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 -0800624 &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 -0800625 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
626 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800627 },
628 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
629 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800630 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
631 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
632 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
633 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800634 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800635 &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 -0800636 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
637 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800638 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
639 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800640 &quot;A String&quot;,
641 ],
642 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700643 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800644 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
645 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
646 },
647 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800648 &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 -0800649 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
650 },
651 },
652 ],
653}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400654</div>
655
656<div class="method">
657 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
658 <pre>Retrieves the next page of results.
659
660Args:
661 previous_request: The request for the previous page. (required)
662 previous_response: The response from the request for the previous page. (required)
663
664Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400666 page. Returns None if there are no more items in the collection.
667 </pre>
668</div>
669
670<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800671 <code class="details" id="startPaidService">startPaidService(customerId, subscriptionId, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800672 <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 -0400673
674Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800675 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)
676 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800677 x__xgafv: string, V1 error format.
678 Allowed values
679 1 - v1 error format
680 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400681
682Returns:
683 An object of the form:
684
685 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800686 &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 -0800687 &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 -0800688 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
689 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800690 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
691 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
692 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
693 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
694 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
695 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800696 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800697 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
698 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800699 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800700 &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 -0800701 &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 -0800702 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
703 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800704 },
705 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
706 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800707 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
708 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
709 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
710 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800711 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800712 &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 -0800713 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
714 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800715 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
716 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800717 &quot;A String&quot;,
718 ],
719 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700720 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800721 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
722 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
723 },
724 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800725 &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 -0800726 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
727 },
728}</pre>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700729</div>
730
731<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800732 <code class="details" id="suspend">suspend(customerId, subscriptionId, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800733 <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 -0700734
735Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800736 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)
737 subscriptionId: string, This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the `subscriptionId` can be found using the retrieve all reseller subscriptions method. (required)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800738 x__xgafv: string, V1 error format.
739 Allowed values
740 1 - v1 error format
741 2 - v2 error format
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700742
743Returns:
744 An object of the form:
745
746 { # JSON template for a subscription.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800747 &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 -0800748 &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 -0800749 &quot;customerDomain&quot;: &quot;A String&quot;, # Primary domain name of the customer
750 &quot;customerId&quot;: &quot;A String&quot;, # This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800751 &quot;dealCode&quot;: &quot;A String&quot;, # Google-issued code (100 char max) for discounted pricing on subscription plans. Deal code must be included in `insert` requests in order to receive discounted rate. This property is optional, regular pricing applies if left empty.
752 &quot;kind&quot;: &quot;reseller#subscription&quot;, # Identifies the resource as a Subscription. Value: `reseller#subscription`
753 &quot;plan&quot;: { # The `plan` property is required. In this version of the API, the G Suite plans are the flexible plan, annual commitment plan, and the 30-day free trial plan. For more information about the API&quot;s payment plans, see the API concepts.
754 &quot;commitmentInterval&quot;: { # In this version of the API, annual commitment plan&#x27;s interval is one year. *Note: *When `billingMethod` value is `OFFLINE`, the subscription property object `plan.commitmentInterval` is omitted in all API responses.
755 &quot;endTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `endTime` in milliseconds using the UNIX Epoch format. See an example Epoch converter.
756 &quot;startTime&quot;: &quot;A String&quot;, # An annual commitment plan&#x27;s interval&#x27;s `startTime` in milliseconds using UNIX Epoch format. See an example Epoch converter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800757 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800758 &quot;isCommitmentPlan&quot;: True or False, # The `isCommitmentPlan` property&#x27;s boolean value identifies the plan as an annual commitment plan: - `true` — The subscription&#x27;s plan is an annual commitment plan. - `false` — The plan is not an annual commitment plan.
759 &quot;planName&quot;: &quot;A String&quot;, # The `planName` property is required. This is the name of the subscription&#x27;s plan. For more information about the Google payment plans, see the API concepts. Possible values are: - `ANNUAL_MONTHLY_PAY` — The annual commitment plan with monthly payments. *Caution: *`ANNUAL_MONTHLY_PAY` is returned as `ANNUAL` in all API responses. - `ANNUAL_YEARLY_PAY` — The annual commitment plan with yearly payments - `FLEXIBLE` — The flexible plan - `TRIAL` — The 30-day free trial plan. A subscription in trial will be suspended after the 30th free day if no payment plan is assigned. Calling `changePlan` will assign a payment plan to a trial but will not activate the plan. A trial will automatically begin its assigned payment plan after its 30th free day or immediately after calling `startPaidService`. - `FREE` — The free plan is exclusive to the Cloud Identity SKU and does not incur any billing.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800760 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800761 &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 -0800762 &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 -0800763 &quot;kind&quot;: &quot;subscriptions#renewalSettings&quot;, # Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`
764 &quot;renewalType&quot;: &quot;A String&quot;, # Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800765 },
766 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Subscriptions page in the Admin console. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task using the Subscriptions page in the Admin console.
767 &quot;seats&quot;: { # JSON template for subscription seats. # This is a required property. The number and limit of user seat licenses in the plan.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800768 &quot;kind&quot;: &quot;subscriptions#seats&quot;, # Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`
769 &quot;licensedNumberOfSeats&quot;: 42, # Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field&#x27;s value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).
770 &quot;maximumNumberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be increased up to the maximum limit defined in the reseller&#x27;s contract. The minimum quantity is the current number of users in the customer account. *Note: *G Suite subscriptions automatically assign a license to every user.
771 &quot;numberOfSeats&quot;: 42, # This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscription. The reseller can add more licenses, but once set, the `numberOfSeats` cannot be reduced until renewal. The reseller is invoiced based on the `numberOfSeats` value regardless of how many of these user licenses are assigned. *Note: *G Suite subscriptions automatically assign a license to every user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800772 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800773 &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 -0800774 &quot;skuName&quot;: &quot;A String&quot;, # Read-only external display name for a product&#x27;s SKU assigned to a customer in the subscription. SKU names are subject to change at Google&#x27;s discretion. For products and SKUs available in this version of the API, see Product and SKU IDs.
775 &quot;status&quot;: &quot;A String&quot;, # This is an optional property.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800776 &quot;subscriptionId&quot;: &quot;A String&quot;, # The `subscriptionId` is the subscription identifier and is unique for each customer. This is a required property. Since a `subscriptionId` changes when a subscription is updated, we recommend not using this ID as a key for persistent data. Use the `subscriptionId` as described in retrieve all reseller subscriptions.
777 &quot;suspensionReasons&quot;: [ # Read-only field containing an enumerable of all the current suspension reasons for a subscription. It is possible for a subscription to have many concurrent, overlapping suspension reasons. A subscription&#x27;s `STATUS` is `SUSPENDED` until all pending suspensions are removed. Possible options include: - `PENDING_TOS_ACCEPTANCE` - The customer has not logged in and accepted the G Suite Resold Terms of Services. - `RENEWAL_WITH_TYPE_CANCEL` - The customer&#x27;s commitment ended and their service was cancelled at the end of their term. - `RESELLER_INITIATED` - A manual suspension invoked by a Reseller. - `TRIAL_ENDED` - The customer&#x27;s trial expired without a plan selected. - `OTHER` - The customer is suspended for an internal Google reason (e.g. abuse or otherwise).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800778 &quot;A String&quot;,
779 ],
780 &quot;transferInfo&quot;: { # Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700781 &quot;currentLegacySkuId&quot;: &quot;A String&quot;, # Sku id of the current resold subscription. This is populated only when customer has subscription with legacy sku and the subscription resource is populated with recommeded sku for transfer in.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800782 &quot;minimumTransferableSeats&quot;: 42, # When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats.
783 &quot;transferabilityExpirationTime&quot;: &quot;A String&quot;, # The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format.
784 },
785 &quot;trialSettings&quot;: { # The G Suite annual commitment and flexible payment plans can be in a 30-day free trial. For more information, see the API concepts.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800786 &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 -0800787 &quot;trialEndTime&quot;: &quot;A String&quot;, # Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example Epoch converter.
788 },
789}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400790</div>
791
792</body></html>