blob: 85b8c6ca60b43fd6cc24ea4bb086427f8f663dd5 [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.customers.html">customers</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080081 <code><a href="#get">get(customerId, x__xgafv=None)</a></code></p>
yoshi-code-bota36e3b12021-07-27 00:20:26 -070082<p class="firstline">Gets a customer account. Use this operation to see a customer account already in your reseller management, or to see the minimal account information for an existing customer that you do not manage. For more information about the API response for existing customers, see [retrieving a customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#get_customer).</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="#insert">insert(body=None, customerAuthToken=None, x__xgafv=None)</a></code></p>
yoshi-code-bota36e3b12021-07-27 00:20:26 -070085<p class="firstline">Orders a new customer's account. Before ordering a new customer account, establish whether the customer account already exists using the [`customers.get`](/admin-sdk/reseller/v1/reference/customers/get) If the customer account exists as a direct Google account or as a resold customer account from another reseller, use the `customerAuthToken\` as described in [order a resold account for an existing customer](/admin-sdk/reseller/v1/how-tos/manage_customers#create_existing_customer). For more information about ordering a new customer account, see [order a new customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#create_customer). After creating a new customer account, you must provision a user as an administrator. The customer's administrator is required to sign in to the Admin console and sign the G Suite via Reseller agreement to activate the account. Resellers are prohibited from signing the G Suite via Reseller agreement on the customer's behalf. For more information, see [order a new customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#tos).</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="#patch">patch(customerId, body=None, x__xgafv=None)</a></code></p>
yoshi-code-bota36e3b12021-07-27 00:20:26 -070088<p class="firstline">Updates a customer account's settings. This method supports patch semantics. You cannot update `customerType` via the Reseller API, but a `"team"` customer can verify their domain and become `customerType = "domain"`. For more information, see [Verify your domain to unlock Essentials features](https://support.google.com/a/answer/9122284).</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080090 <code><a href="#update">update(customerId, body=None, x__xgafv=None)</a></code></p>
yoshi-code-bota36e3b12021-07-27 00:20:26 -070091<p class="firstline">Updates a customer account's settings. You cannot update `customerType` via the Reseller API, but a `"team"` customer can verify their domain and become `customerType = "domain"`. For more information, see [update a customer's settings](/admin-sdk/reseller/v1/how-tos/manage_customers#update_customer).</p>
John Asmuth614db982014-04-24 15:46:26 -040092<h3>Method Details</h3>
93<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094 <code class="details" id="close">close()</code>
95 <pre>Close httplib2 connections.</pre>
96</div>
97
98<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080099 <code class="details" id="get">get(customerId, x__xgafv=None)</code>
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700100 <pre>Gets a customer account. Use this operation to see a customer account already in your reseller management, or to see the minimal account information for an existing customer that you do not manage. For more information about the API response for existing customers, see [retrieving a customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#get_customer).
John Asmuth614db982014-04-24 15:46:26 -0400101
102Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800103 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)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800104 x__xgafv: string, V1 error format.
105 Allowed values
106 1 - v1 error format
107 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400108
109Returns:
110 An object of the form:
111
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800112 { # When a Google customer&#x27;s account is registered with a reseller, the customer&#x27;s subscriptions for Google services are managed by this reseller. A customer is described by a primary domain name and a physical address.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700113 &quot;alternateEmail&quot;: &quot;A String&quot;, # Like the &quot;Customer email&quot; in the reseller tools, this email is the secondary contact used if something happens to the customer&#x27;s service such as service outage or a security issue. This property is required when creating a new &quot;domain&quot; customer and should not use the same domain as `customerDomain`. The `alternateEmail` field is not necessary to create a &quot;team&quot; customer.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800114 &quot;customerDomain&quot;: &quot;A String&quot;, # The customer&#x27;s primary domain name string. `customerDomain` is required when creating a new customer. Do not include the `www` prefix in the domain when adding a customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800115 &quot;customerDomainVerified&quot;: True or False, # Whether the customer&#x27;s primary domain has been verified.
116 &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-bota36e3b12021-07-27 00:20:26 -0700117 &quot;customerType&quot;: &quot;A String&quot;, # Identifies the type of the customer. Acceptable values include: * `domain`: Implies a domain-verified customer (default). * `team`: Implies an email-verified customer. For more information, see [managed teams](https://support.google.com/a/users/answer/9939479).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800118 &quot;kind&quot;: &quot;reseller#customer&quot;, # Identifies the resource as a customer. Value: `reseller#customer`
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800119 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer contact phone number. Must start with &quot;+&quot; followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, &quot;123&quot;. This field is silently ignored if invalid.
120 &quot;postalAddress&quot;: { # JSON template for address of a customer. # A customer&#x27;s address information. Each field has a limit of 255 charcters.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800121 &quot;addressLine1&quot;: &quot;A String&quot;, # A customer&#x27;s physical address. An address can be composed of one to three lines. The `addressline2` and `addressLine3` are optional.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 &quot;addressLine2&quot;: &quot;A String&quot;, # Line 2 of the address.
123 &quot;addressLine3&quot;: &quot;A String&quot;, # Line 3 of the address.
124 &quot;contactName&quot;: &quot;A String&quot;, # The customer contact&#x27;s name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800125 &quot;countryCode&quot;: &quot;A String&quot;, # For `countryCode` information, see the ISO 3166 country code elements. Verify that country is approved for resale of Google products. This property is required when creating a new customer.
126 &quot;kind&quot;: &quot;customers#address&quot;, # Identifies the resource as a customer address. Value: `customers#address`
127 &quot;locality&quot;: &quot;A String&quot;, # An example of a `locality` value is the city of `San Francisco`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800128 &quot;organizationName&quot;: &quot;A String&quot;, # The company or company division name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800129 &quot;postalCode&quot;: &quot;A String&quot;, # A `postalCode` example is a postal zip code such as `94043`. This property is required when creating a new customer.
130 &quot;region&quot;: &quot;A String&quot;, # An example of a `region` value is `CA` for the state of California.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800131 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700132 &quot;primaryAdmin&quot;: { # JSON template for primary admin in case of TEAM customers # The first admin details of the customer, present in case of TEAM customer.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700133 &quot;primaryEmail&quot;: &quot;A String&quot;, # The business email of the primary administrator of the customer. The email verification link is sent to this email address at the time of customer creation. Primary administrators have access to the customer&#x27;s Admin Console, including the ability to invite and evict users and manage the administrative needs of the customer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700134 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800135 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console.
136}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400137</div>
138
139<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800140 <code class="details" id="insert">insert(body=None, customerAuthToken=None, x__xgafv=None)</code>
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700141 <pre>Orders a new customer&#x27;s account. Before ordering a new customer account, establish whether the customer account already exists using the [`customers.get`](/admin-sdk/reseller/v1/reference/customers/get) If the customer account exists as a direct Google account or as a resold customer account from another reseller, use the `customerAuthToken\` as described in [order a resold account for an existing customer](/admin-sdk/reseller/v1/how-tos/manage_customers#create_existing_customer). For more information about ordering a new customer account, see [order a new customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#create_customer). After creating a new customer account, you must provision a user as an administrator. The customer&#x27;s administrator is required to sign in to the Admin console and sign the G Suite via Reseller agreement to activate the account. Resellers are prohibited from signing the G Suite via Reseller agreement on the customer&#x27;s behalf. For more information, see [order a new customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#tos).
John Asmuth614db982014-04-24 15:46:26 -0400142
143Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400145 The object takes the form of:
146
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800147{ # When a Google customer&#x27;s account is registered with a reseller, the customer&#x27;s subscriptions for Google services are managed by this reseller. A customer is described by a primary domain name and a physical address.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700148 &quot;alternateEmail&quot;: &quot;A String&quot;, # Like the &quot;Customer email&quot; in the reseller tools, this email is the secondary contact used if something happens to the customer&#x27;s service such as service outage or a security issue. This property is required when creating a new &quot;domain&quot; customer and should not use the same domain as `customerDomain`. The `alternateEmail` field is not necessary to create a &quot;team&quot; customer.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800149 &quot;customerDomain&quot;: &quot;A String&quot;, # The customer&#x27;s primary domain name string. `customerDomain` is required when creating a new customer. Do not include the `www` prefix in the domain when adding a customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800150 &quot;customerDomainVerified&quot;: True or False, # Whether the customer&#x27;s primary domain has been verified.
151 &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-bota36e3b12021-07-27 00:20:26 -0700152 &quot;customerType&quot;: &quot;A String&quot;, # Identifies the type of the customer. Acceptable values include: * `domain`: Implies a domain-verified customer (default). * `team`: Implies an email-verified customer. For more information, see [managed teams](https://support.google.com/a/users/answer/9939479).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800153 &quot;kind&quot;: &quot;reseller#customer&quot;, # Identifies the resource as a customer. Value: `reseller#customer`
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800154 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer contact phone number. Must start with &quot;+&quot; followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, &quot;123&quot;. This field is silently ignored if invalid.
155 &quot;postalAddress&quot;: { # JSON template for address of a customer. # A customer&#x27;s address information. Each field has a limit of 255 charcters.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800156 &quot;addressLine1&quot;: &quot;A String&quot;, # A customer&#x27;s physical address. An address can be composed of one to three lines. The `addressline2` and `addressLine3` are optional.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800157 &quot;addressLine2&quot;: &quot;A String&quot;, # Line 2 of the address.
158 &quot;addressLine3&quot;: &quot;A String&quot;, # Line 3 of the address.
159 &quot;contactName&quot;: &quot;A String&quot;, # The customer contact&#x27;s name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800160 &quot;countryCode&quot;: &quot;A String&quot;, # For `countryCode` information, see the ISO 3166 country code elements. Verify that country is approved for resale of Google products. This property is required when creating a new customer.
161 &quot;kind&quot;: &quot;customers#address&quot;, # Identifies the resource as a customer address. Value: `customers#address`
162 &quot;locality&quot;: &quot;A String&quot;, # An example of a `locality` value is the city of `San Francisco`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800163 &quot;organizationName&quot;: &quot;A String&quot;, # The company or company division name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800164 &quot;postalCode&quot;: &quot;A String&quot;, # A `postalCode` example is a postal zip code such as `94043`. This property is required when creating a new customer.
165 &quot;region&quot;: &quot;A String&quot;, # An example of a `region` value is `CA` for the state of California.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800166 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700167 &quot;primaryAdmin&quot;: { # JSON template for primary admin in case of TEAM customers # The first admin details of the customer, present in case of TEAM customer.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700168 &quot;primaryEmail&quot;: &quot;A String&quot;, # The business email of the primary administrator of the customer. The email verification link is sent to this email address at the time of customer creation. Primary administrators have access to the customer&#x27;s Admin Console, including the ability to invite and evict users and manage the administrative needs of the customer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700169 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800170 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console.
171}
John Asmuth614db982014-04-24 15:46:26 -0400172
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800173 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 -0800174 x__xgafv: string, V1 error format.
175 Allowed values
176 1 - v1 error format
177 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400178
179Returns:
180 An object of the form:
181
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800182 { # When a Google customer&#x27;s account is registered with a reseller, the customer&#x27;s subscriptions for Google services are managed by this reseller. A customer is described by a primary domain name and a physical address.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700183 &quot;alternateEmail&quot;: &quot;A String&quot;, # Like the &quot;Customer email&quot; in the reseller tools, this email is the secondary contact used if something happens to the customer&#x27;s service such as service outage or a security issue. This property is required when creating a new &quot;domain&quot; customer and should not use the same domain as `customerDomain`. The `alternateEmail` field is not necessary to create a &quot;team&quot; customer.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800184 &quot;customerDomain&quot;: &quot;A String&quot;, # The customer&#x27;s primary domain name string. `customerDomain` is required when creating a new customer. Do not include the `www` prefix in the domain when adding a customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800185 &quot;customerDomainVerified&quot;: True or False, # Whether the customer&#x27;s primary domain has been verified.
186 &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-bota36e3b12021-07-27 00:20:26 -0700187 &quot;customerType&quot;: &quot;A String&quot;, # Identifies the type of the customer. Acceptable values include: * `domain`: Implies a domain-verified customer (default). * `team`: Implies an email-verified customer. For more information, see [managed teams](https://support.google.com/a/users/answer/9939479).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800188 &quot;kind&quot;: &quot;reseller#customer&quot;, # Identifies the resource as a customer. Value: `reseller#customer`
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800189 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer contact phone number. Must start with &quot;+&quot; followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, &quot;123&quot;. This field is silently ignored if invalid.
190 &quot;postalAddress&quot;: { # JSON template for address of a customer. # A customer&#x27;s address information. Each field has a limit of 255 charcters.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800191 &quot;addressLine1&quot;: &quot;A String&quot;, # A customer&#x27;s physical address. An address can be composed of one to three lines. The `addressline2` and `addressLine3` are optional.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800192 &quot;addressLine2&quot;: &quot;A String&quot;, # Line 2 of the address.
193 &quot;addressLine3&quot;: &quot;A String&quot;, # Line 3 of the address.
194 &quot;contactName&quot;: &quot;A String&quot;, # The customer contact&#x27;s name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800195 &quot;countryCode&quot;: &quot;A String&quot;, # For `countryCode` information, see the ISO 3166 country code elements. Verify that country is approved for resale of Google products. This property is required when creating a new customer.
196 &quot;kind&quot;: &quot;customers#address&quot;, # Identifies the resource as a customer address. Value: `customers#address`
197 &quot;locality&quot;: &quot;A String&quot;, # An example of a `locality` value is the city of `San Francisco`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800198 &quot;organizationName&quot;: &quot;A String&quot;, # The company or company division name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800199 &quot;postalCode&quot;: &quot;A String&quot;, # A `postalCode` example is a postal zip code such as `94043`. This property is required when creating a new customer.
200 &quot;region&quot;: &quot;A String&quot;, # An example of a `region` value is `CA` for the state of California.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800201 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700202 &quot;primaryAdmin&quot;: { # JSON template for primary admin in case of TEAM customers # The first admin details of the customer, present in case of TEAM customer.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700203 &quot;primaryEmail&quot;: &quot;A String&quot;, # The business email of the primary administrator of the customer. The email verification link is sent to this email address at the time of customer creation. Primary administrators have access to the customer&#x27;s Admin Console, including the ability to invite and evict users and manage the administrative needs of the customer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700204 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800205 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console.
206}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400207</div>
208
209<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800210 <code class="details" id="patch">patch(customerId, body=None, x__xgafv=None)</code>
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700211 <pre>Updates a customer account&#x27;s settings. This method supports patch semantics. You cannot update `customerType` via the Reseller API, but a `&quot;team&quot;` customer can verify their domain and become `customerType = &quot;domain&quot;`. For more information, see [Verify your domain to unlock Essentials features](https://support.google.com/a/answer/9122284).
John Asmuth614db982014-04-24 15:46:26 -0400212
213Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800214 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 -0700215 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400216 The object takes the form of:
217
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800218{ # When a Google customer&#x27;s account is registered with a reseller, the customer&#x27;s subscriptions for Google services are managed by this reseller. A customer is described by a primary domain name and a physical address.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700219 &quot;alternateEmail&quot;: &quot;A String&quot;, # Like the &quot;Customer email&quot; in the reseller tools, this email is the secondary contact used if something happens to the customer&#x27;s service such as service outage or a security issue. This property is required when creating a new &quot;domain&quot; customer and should not use the same domain as `customerDomain`. The `alternateEmail` field is not necessary to create a &quot;team&quot; customer.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800220 &quot;customerDomain&quot;: &quot;A String&quot;, # The customer&#x27;s primary domain name string. `customerDomain` is required when creating a new customer. Do not include the `www` prefix in the domain when adding a customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800221 &quot;customerDomainVerified&quot;: True or False, # Whether the customer&#x27;s primary domain has been verified.
222 &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-bota36e3b12021-07-27 00:20:26 -0700223 &quot;customerType&quot;: &quot;A String&quot;, # Identifies the type of the customer. Acceptable values include: * `domain`: Implies a domain-verified customer (default). * `team`: Implies an email-verified customer. For more information, see [managed teams](https://support.google.com/a/users/answer/9939479).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800224 &quot;kind&quot;: &quot;reseller#customer&quot;, # Identifies the resource as a customer. Value: `reseller#customer`
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800225 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer contact phone number. Must start with &quot;+&quot; followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, &quot;123&quot;. This field is silently ignored if invalid.
226 &quot;postalAddress&quot;: { # JSON template for address of a customer. # A customer&#x27;s address information. Each field has a limit of 255 charcters.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800227 &quot;addressLine1&quot;: &quot;A String&quot;, # A customer&#x27;s physical address. An address can be composed of one to three lines. The `addressline2` and `addressLine3` are optional.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800228 &quot;addressLine2&quot;: &quot;A String&quot;, # Line 2 of the address.
229 &quot;addressLine3&quot;: &quot;A String&quot;, # Line 3 of the address.
230 &quot;contactName&quot;: &quot;A String&quot;, # The customer contact&#x27;s name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800231 &quot;countryCode&quot;: &quot;A String&quot;, # For `countryCode` information, see the ISO 3166 country code elements. Verify that country is approved for resale of Google products. This property is required when creating a new customer.
232 &quot;kind&quot;: &quot;customers#address&quot;, # Identifies the resource as a customer address. Value: `customers#address`
233 &quot;locality&quot;: &quot;A String&quot;, # An example of a `locality` value is the city of `San Francisco`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800234 &quot;organizationName&quot;: &quot;A String&quot;, # The company or company division name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800235 &quot;postalCode&quot;: &quot;A String&quot;, # A `postalCode` example is a postal zip code such as `94043`. This property is required when creating a new customer.
236 &quot;region&quot;: &quot;A String&quot;, # An example of a `region` value is `CA` for the state of California.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800237 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700238 &quot;primaryAdmin&quot;: { # JSON template for primary admin in case of TEAM customers # The first admin details of the customer, present in case of TEAM customer.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700239 &quot;primaryEmail&quot;: &quot;A String&quot;, # The business email of the primary administrator of the customer. The email verification link is sent to this email address at the time of customer creation. Primary administrators have access to the customer&#x27;s Admin Console, including the ability to invite and evict users and manage the administrative needs of the customer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700240 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800241 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console.
242}
John Asmuth614db982014-04-24 15:46:26 -0400243
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800244 x__xgafv: string, V1 error format.
245 Allowed values
246 1 - v1 error format
247 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400248
249Returns:
250 An object of the form:
251
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800252 { # When a Google customer&#x27;s account is registered with a reseller, the customer&#x27;s subscriptions for Google services are managed by this reseller. A customer is described by a primary domain name and a physical address.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700253 &quot;alternateEmail&quot;: &quot;A String&quot;, # Like the &quot;Customer email&quot; in the reseller tools, this email is the secondary contact used if something happens to the customer&#x27;s service such as service outage or a security issue. This property is required when creating a new &quot;domain&quot; customer and should not use the same domain as `customerDomain`. The `alternateEmail` field is not necessary to create a &quot;team&quot; customer.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800254 &quot;customerDomain&quot;: &quot;A String&quot;, # The customer&#x27;s primary domain name string. `customerDomain` is required when creating a new customer. Do not include the `www` prefix in the domain when adding a customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800255 &quot;customerDomainVerified&quot;: True or False, # Whether the customer&#x27;s primary domain has been verified.
256 &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-bota36e3b12021-07-27 00:20:26 -0700257 &quot;customerType&quot;: &quot;A String&quot;, # Identifies the type of the customer. Acceptable values include: * `domain`: Implies a domain-verified customer (default). * `team`: Implies an email-verified customer. For more information, see [managed teams](https://support.google.com/a/users/answer/9939479).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800258 &quot;kind&quot;: &quot;reseller#customer&quot;, # Identifies the resource as a customer. Value: `reseller#customer`
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800259 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer contact phone number. Must start with &quot;+&quot; followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, &quot;123&quot;. This field is silently ignored if invalid.
260 &quot;postalAddress&quot;: { # JSON template for address of a customer. # A customer&#x27;s address information. Each field has a limit of 255 charcters.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800261 &quot;addressLine1&quot;: &quot;A String&quot;, # A customer&#x27;s physical address. An address can be composed of one to three lines. The `addressline2` and `addressLine3` are optional.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800262 &quot;addressLine2&quot;: &quot;A String&quot;, # Line 2 of the address.
263 &quot;addressLine3&quot;: &quot;A String&quot;, # Line 3 of the address.
264 &quot;contactName&quot;: &quot;A String&quot;, # The customer contact&#x27;s name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800265 &quot;countryCode&quot;: &quot;A String&quot;, # For `countryCode` information, see the ISO 3166 country code elements. Verify that country is approved for resale of Google products. This property is required when creating a new customer.
266 &quot;kind&quot;: &quot;customers#address&quot;, # Identifies the resource as a customer address. Value: `customers#address`
267 &quot;locality&quot;: &quot;A String&quot;, # An example of a `locality` value is the city of `San Francisco`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800268 &quot;organizationName&quot;: &quot;A String&quot;, # The company or company division name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800269 &quot;postalCode&quot;: &quot;A String&quot;, # A `postalCode` example is a postal zip code such as `94043`. This property is required when creating a new customer.
270 &quot;region&quot;: &quot;A String&quot;, # An example of a `region` value is `CA` for the state of California.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800271 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700272 &quot;primaryAdmin&quot;: { # JSON template for primary admin in case of TEAM customers # The first admin details of the customer, present in case of TEAM customer.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700273 &quot;primaryEmail&quot;: &quot;A String&quot;, # The business email of the primary administrator of the customer. The email verification link is sent to this email address at the time of customer creation. Primary administrators have access to the customer&#x27;s Admin Console, including the ability to invite and evict users and manage the administrative needs of the customer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700274 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800275 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console.
276}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400277</div>
278
279<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800280 <code class="details" id="update">update(customerId, body=None, x__xgafv=None)</code>
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700281 <pre>Updates a customer account&#x27;s settings. You cannot update `customerType` via the Reseller API, but a `&quot;team&quot;` customer can verify their domain and become `customerType = &quot;domain&quot;`. For more information, see [update a customer&#x27;s settings](/admin-sdk/reseller/v1/how-tos/manage_customers#update_customer).
John Asmuth614db982014-04-24 15:46:26 -0400282
283Args:
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800284 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 -0700285 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400286 The object takes the form of:
287
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800288{ # When a Google customer&#x27;s account is registered with a reseller, the customer&#x27;s subscriptions for Google services are managed by this reseller. A customer is described by a primary domain name and a physical address.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700289 &quot;alternateEmail&quot;: &quot;A String&quot;, # Like the &quot;Customer email&quot; in the reseller tools, this email is the secondary contact used if something happens to the customer&#x27;s service such as service outage or a security issue. This property is required when creating a new &quot;domain&quot; customer and should not use the same domain as `customerDomain`. The `alternateEmail` field is not necessary to create a &quot;team&quot; customer.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800290 &quot;customerDomain&quot;: &quot;A String&quot;, # The customer&#x27;s primary domain name string. `customerDomain` is required when creating a new customer. Do not include the `www` prefix in the domain when adding a customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800291 &quot;customerDomainVerified&quot;: True or False, # Whether the customer&#x27;s primary domain has been verified.
292 &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-bota36e3b12021-07-27 00:20:26 -0700293 &quot;customerType&quot;: &quot;A String&quot;, # Identifies the type of the customer. Acceptable values include: * `domain`: Implies a domain-verified customer (default). * `team`: Implies an email-verified customer. For more information, see [managed teams](https://support.google.com/a/users/answer/9939479).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800294 &quot;kind&quot;: &quot;reseller#customer&quot;, # Identifies the resource as a customer. Value: `reseller#customer`
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800295 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer contact phone number. Must start with &quot;+&quot; followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, &quot;123&quot;. This field is silently ignored if invalid.
296 &quot;postalAddress&quot;: { # JSON template for address of a customer. # A customer&#x27;s address information. Each field has a limit of 255 charcters.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800297 &quot;addressLine1&quot;: &quot;A String&quot;, # A customer&#x27;s physical address. An address can be composed of one to three lines. The `addressline2` and `addressLine3` are optional.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800298 &quot;addressLine2&quot;: &quot;A String&quot;, # Line 2 of the address.
299 &quot;addressLine3&quot;: &quot;A String&quot;, # Line 3 of the address.
300 &quot;contactName&quot;: &quot;A String&quot;, # The customer contact&#x27;s name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800301 &quot;countryCode&quot;: &quot;A String&quot;, # For `countryCode` information, see the ISO 3166 country code elements. Verify that country is approved for resale of Google products. This property is required when creating a new customer.
302 &quot;kind&quot;: &quot;customers#address&quot;, # Identifies the resource as a customer address. Value: `customers#address`
303 &quot;locality&quot;: &quot;A String&quot;, # An example of a `locality` value is the city of `San Francisco`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800304 &quot;organizationName&quot;: &quot;A String&quot;, # The company or company division name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800305 &quot;postalCode&quot;: &quot;A String&quot;, # A `postalCode` example is a postal zip code such as `94043`. This property is required when creating a new customer.
306 &quot;region&quot;: &quot;A String&quot;, # An example of a `region` value is `CA` for the state of California.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800307 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700308 &quot;primaryAdmin&quot;: { # JSON template for primary admin in case of TEAM customers # The first admin details of the customer, present in case of TEAM customer.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700309 &quot;primaryEmail&quot;: &quot;A String&quot;, # The business email of the primary administrator of the customer. The email verification link is sent to this email address at the time of customer creation. Primary administrators have access to the customer&#x27;s Admin Console, including the ability to invite and evict users and manage the administrative needs of the customer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700310 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800311 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console.
312}
John Asmuth614db982014-04-24 15:46:26 -0400313
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800314 x__xgafv: string, V1 error format.
315 Allowed values
316 1 - v1 error format
317 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400318
319Returns:
320 An object of the form:
321
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800322 { # When a Google customer&#x27;s account is registered with a reseller, the customer&#x27;s subscriptions for Google services are managed by this reseller. A customer is described by a primary domain name and a physical address.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700323 &quot;alternateEmail&quot;: &quot;A String&quot;, # Like the &quot;Customer email&quot; in the reseller tools, this email is the secondary contact used if something happens to the customer&#x27;s service such as service outage or a security issue. This property is required when creating a new &quot;domain&quot; customer and should not use the same domain as `customerDomain`. The `alternateEmail` field is not necessary to create a &quot;team&quot; customer.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800324 &quot;customerDomain&quot;: &quot;A String&quot;, # The customer&#x27;s primary domain name string. `customerDomain` is required when creating a new customer. Do not include the `www` prefix in the domain when adding a customer.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800325 &quot;customerDomainVerified&quot;: True or False, # Whether the customer&#x27;s primary domain has been verified.
326 &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-bota36e3b12021-07-27 00:20:26 -0700327 &quot;customerType&quot;: &quot;A String&quot;, # Identifies the type of the customer. Acceptable values include: * `domain`: Implies a domain-verified customer (default). * `team`: Implies an email-verified customer. For more information, see [managed teams](https://support.google.com/a/users/answer/9939479).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800328 &quot;kind&quot;: &quot;reseller#customer&quot;, # Identifies the resource as a customer. Value: `reseller#customer`
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800329 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer contact phone number. Must start with &quot;+&quot; followed by the country code. The rest of the number can be contiguous numbers or respect the phone local format conventions, but it must be a real phone number and not, for example, &quot;123&quot;. This field is silently ignored if invalid.
330 &quot;postalAddress&quot;: { # JSON template for address of a customer. # A customer&#x27;s address information. Each field has a limit of 255 charcters.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800331 &quot;addressLine1&quot;: &quot;A String&quot;, # A customer&#x27;s physical address. An address can be composed of one to three lines. The `addressline2` and `addressLine3` are optional.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800332 &quot;addressLine2&quot;: &quot;A String&quot;, # Line 2 of the address.
333 &quot;addressLine3&quot;: &quot;A String&quot;, # Line 3 of the address.
334 &quot;contactName&quot;: &quot;A String&quot;, # The customer contact&#x27;s name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800335 &quot;countryCode&quot;: &quot;A String&quot;, # For `countryCode` information, see the ISO 3166 country code elements. Verify that country is approved for resale of Google products. This property is required when creating a new customer.
336 &quot;kind&quot;: &quot;customers#address&quot;, # Identifies the resource as a customer address. Value: `customers#address`
337 &quot;locality&quot;: &quot;A String&quot;, # An example of a `locality` value is the city of `San Francisco`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800338 &quot;organizationName&quot;: &quot;A String&quot;, # The company or company division name. This is required.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800339 &quot;postalCode&quot;: &quot;A String&quot;, # A `postalCode` example is a postal zip code such as `94043`. This property is required when creating a new customer.
340 &quot;region&quot;: &quot;A String&quot;, # An example of a `region` value is `CA` for the state of California.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800341 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700342 &quot;primaryAdmin&quot;: { # JSON template for primary admin in case of TEAM customers # The first admin details of the customer, present in case of TEAM customer.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700343 &quot;primaryEmail&quot;: &quot;A String&quot;, # The business email of the primary administrator of the customer. The email verification link is sent to this email address at the time of customer creation. Primary administrators have access to the customer&#x27;s Admin Console, including the ability to invite and evict users and manage the administrative needs of the customer.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700344 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800345 &quot;resourceUiUrl&quot;: &quot;A String&quot;, # URL to customer&#x27;s Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console.
346}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400347</div>
348
349</body></html>