REST Resource: customers
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Customer
Zapis JSON |
{
"id": string,
"customerDomain": string,
"kind": string,
"etag": string,
"alternateEmail": string,
"customerCreationTime": string,
"postalAddress": {
object (CustomerPostalAddress )
},
"phoneNumber": string,
"language": string
} |
Pola |
id |
string
Unikalny identyfikator konta Google Workspace klienta. (tylko do odczytu)
|
customerDomain |
string
ciąg znaków nazwy domeny podstawowej klienta, Podczas tworzenia nowego klienta nie dołączaj prefiksu www .
|
kind |
string
Określa zasób jako klienta. Wartość: admin#directory#customer
|
etag |
string
ETag zasobu.
|
alternateEmail |
string
Dodatkowy kontaktowy adres e-mail klienta. Ten adres e-mail nie może znajdować się w tej samej domenie co customerDomain
|
customerCreationTime |
string
Czas utworzenia klienta (tylko do odczytu)
|
postalAddress |
object (CustomerPostalAddress )
Adres pocztowy klienta.
|
phoneNumber |
string
kontaktowy numer telefonu klienta w formacie E.164,
|
language |
string
Kod języka klienta w formacie ISO 639-2. Lista obsługiwanych kodów znajduje się na stronie Kody języków. Interfejs API zaakceptuje prawidłowe kody języków spoza obsługiwanego zestawu, ale może to spowodować nieoczekiwane działanie. (wartością domyślną jest en );
|
CustomerPostalAddress
Zapis JSON |
{
"countryCode": string,
"addressLine2": string,
"region": string,
"addressLine3": string,
"locality": string,
"postalCode": string,
"addressLine1": string,
"organizationName": string,
"contactName": string
} |
Pola |
countryCode |
string
To jest wymagana usługa. Informacje o countryCode znajdziesz w elementach kodu kraju w formacie ISO 3166.
|
addressLine2 |
string
Drugi wiersz adresu.
|
region |
string
Nazwa regionu. Przykładem wartości regionu jest NY dla stanu Nowy Jork.
|
addressLine3 |
string
Adres wiersz 3.
|
locality |
string
Nazwa miejscowości. Przykładem wartości lokalizacji jest miasto San Francisco .
|
postalCode |
string
Kod pocztowy. Przykład kodu pocztowego to kod pocztowy, np. 10009 . Jest to zgodne z adresem http: //portablecontacts.net/draft-spec.html#address_element.
|
addressLine1 |
string
Adres pocztowy klienta. Adres może składać się z 1–3 wierszy.
|
organizationName |
string
Nazwa firmy lub jej działu.
|
contactName |
string
Imię i nazwisko osoby kontaktowej po stronie klienta.
|
Metody |
|
Pobiera dane klienta. |
|
Aktualizuje klienta. |
|
Aktualizuje klienta. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-24 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]