REST Resource: customers
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Kaynak: Müşteri
JSON gösterimi |
{
"id": string,
"customerDomain": string,
"kind": string,
"etag": string,
"alternateEmail": string,
"customerCreationTime": string,
"postalAddress": {
object (CustomerPostalAddress )
},
"phoneNumber": string,
"language": string
} |
Alanlar |
id |
string
Müşterinin Google Workspace hesabının benzersiz kimliği. (Salt okunur)
|
customerDomain |
string
Müşterinin birincil alan adı dizesi. Yeni müşteri oluştururken www ön ekini dahil etmeyin.
|
kind |
string
Kaynağı müşteri olarak tanımlar. Değer: admin#directory#customer
|
etag |
string
Kaynağın ETag'i.
|
alternateEmail |
string
Müşterinin ikincil iletişim e-posta adresi. Bu e-posta adresi, customerDomain ile aynı alanda olamaz.
|
customerCreationTime |
string
Müşterinin oluşturulma zamanı (salt okunur)
|
postalAddress |
object (CustomerPostalAddress )
Müşterinin posta adresi bilgileri.
|
phoneNumber |
string
Müşterinin E.164 biçimindeki iletişim telefon numarası.
|
language |
string
Müşterinin ISO 639-2 dil kodu. Desteklenen kodların listesi için Dil Kodları sayfasına bakın. Desteklenen kümenin dışındaki geçerli dil kodları API tarafından kabul edilir ancak beklenmedik davranışlara neden olabilir. Varsayılan değer: en .
|
CustomerPostalAddress
JSON gösterimi |
{
"countryCode": string,
"addressLine2": string,
"region": string,
"addressLine3": string,
"locality": string,
"postalCode": string,
"addressLine1": string,
"organizationName": string,
"contactName": string
} |
Alanlar |
countryCode |
string
Bu zorunlu bir özelliktir. countryCode bilgileri için ISO 3166 ülke kodu öğelerine bakın.
|
addressLine2 |
string
Adresin 2. adresi satırı.
|
region |
string
Bölgenin adı. Bölge değerine örnek olarak New York eyaleti için NY verilebilir.
|
addressLine3 |
string
Adresin 3. satırı.
|
locality |
string
Yerin adı. Yerleşim değeri örneği olarak San Francisco şehri verilebilir.
|
postalCode |
string
Posta kodu. Posta kodu örneği, 10009 gibi bir posta kodudur. Bu, http: //portablecontacts.net/draft-spec.html#address_element adresindeki dokümana uygundur.
|
addressLine1 |
string
Müşterinin fiziksel adresi. Adres bir ila üç satırdan oluşabilir.
|
organizationName |
string
Şirket veya şirket bölümü adı.
|
contactName |
string
Müşteri temsilcisinin adı.
|
Yöntemler |
|
Bir müşteriyi alır. |
|
Bir müşteriye yamalar uygular. |
|
Bir müşteriyi günceller. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-24 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-24 UTC."],[],[],null,["# REST Resource: customers\n\nResource: Customer\n------------------\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"customerDomain\": string, \"kind\": string, \"etag\": string, \"alternateEmail\": string, \"customerCreationTime\": string, \"postalAddress\": { object (/workspace/admin/directory/reference/rest/v1/customers#CustomerPostalAddress) }, \"phoneNumber\": string, \"language\": string } ``` |\n\n| Fields ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The unique ID for the customer's Google Workspace account. (Readonly) |\n| `customerDomain` | `string` The customer's primary domain name string. Do not include the `www` prefix when creating a new customer. |\n| `kind` | `string` Identifies the resource as a customer. Value: `admin#directory#customer` |\n| `etag` | `string` ETag of the resource. |\n| `alternateEmail` | `string` The customer's secondary contact email address. This email address cannot be on the same domain as the `customerDomain` |\n| `customerCreationTime` | `string` The customer's creation time (Readonly) |\n| `postalAddress` | `object (`[CustomerPostalAddress](/workspace/admin/directory/reference/rest/v1/customers#CustomerPostalAddress)`)` The customer's postal address information. |\n| `phoneNumber` | `string` The customer's contact phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format. |\n| `language` | `string` The customer's ISO 639-2 language code. See the [Language Codes](https://developers.google.com/workspace/admin/directory/v1/languages) page for the list of supported codes. Valid language codes outside the supported set will be accepted by the API but may lead to unexpected behavior. The default value is `en`. |\n\nCustomerPostalAddress\n---------------------\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"countryCode\": string, \"addressLine2\": string, \"region\": string, \"addressLine3\": string, \"locality\": string, \"postalCode\": string, \"addressLine1\": string, \"organizationName\": string, \"contactName\": string } ``` |\n\n| Fields ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `countryCode` | `string` This is a required property. For `countryCode` information see the [ISO 3166 country code elements](https://www.iso.org/iso/country_codes.htm). |\n| `addressLine2` | `string` Address line 2 of the address. |\n| `region` | `string` Name of the region. An example of a region value is `NY` for the state of New York. |\n| `addressLine3` | `string` Address line 3 of the address. |\n| `locality` | `string` Name of the locality. An example of a locality value is the city of `San Francisco`. |\n| `postalCode` | `string` The postal code. A postalCode example is a postal zip code such as `10009`. This is in accordance with - http: //portablecontacts.net/draft-spec.html#address_element. |\n| `addressLine1` | `string` A customer's physical address. The address can be composed of one to three lines. |\n| `organizationName` | `string` The company or company division name. |\n| `contactName` | `string` The customer contact's name. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------|-----------------------|\n| ### [get](/workspace/admin/directory/reference/rest/v1/customers/get) | Retrieves a customer. |\n| ### [patch](/workspace/admin/directory/reference/rest/v1/customers/patch) | Patches a customer. |\n| ### [update](/workspace/admin/directory/reference/rest/v1/customers/update) | Updates a customer. |"]]