REST Resource: customers
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Resource: Pelanggan
Representasi JSON |
{
"id": string,
"customerDomain": string,
"kind": string,
"etag": string,
"alternateEmail": string,
"customerCreationTime": string,
"postalAddress": {
object (CustomerPostalAddress )
},
"phoneNumber": string,
"language": string
} |
Kolom |
id |
string
ID unik untuk akun Google Workspace pelanggan. (Hanya baca)
|
customerDomain |
string
String nama domain primer pelanggan. Jangan sertakan awalan www saat membuat pelanggan baru.
|
kind |
string
Mengidentifikasi resource sebagai pelanggan. Nilai: admin#directory#customer
|
etag |
string
ETag resource.
|
alternateEmail |
string
Alamat email kontak kedua pelanggan. Alamat email ini tidak boleh berada di domain yang sama dengan customerDomain
|
customerCreationTime |
string
Waktu pembuatan pelanggan (Hanya baca)
|
postalAddress |
object (CustomerPostalAddress )
Informasi alamat pos pelanggan.
|
phoneNumber |
string
Nomor telepon kontak pelanggan dalam format E.164.
|
language |
string
Kode bahasa ISO 639-2 pelanggan. Lihat halaman Kode Bahasa untuk mengetahui daftar kode yang didukung. Kode bahasa yang valid di luar kumpulan yang didukung akan diterima oleh API, tetapi dapat menyebabkan perilaku yang tidak terduga. Nilai defaultnya adalah en .
|
CustomerPostalAddress
Representasi JSON |
{
"countryCode": string,
"addressLine2": string,
"region": string,
"addressLine3": string,
"locality": string,
"postalCode": string,
"addressLine1": string,
"organizationName": string,
"contactName": string
} |
Kolom |
countryCode |
string
Ini adalah properti yang wajib ada. Untuk informasi countryCode , lihat elemen kode negara ISO 3166.
|
addressLine2 |
string
Baris alamat 2.
|
region |
string
Nama wilayah. Contoh nilai region adalah NY untuk negara bagian New York.
|
addressLine3 |
string
Baris alamat 3.
|
locality |
string
Nama lokalitas. Contoh nilai lokalitas adalah kota San Francisco .
|
postalCode |
string
Kode pos. Contoh postalCode adalah kode pos seperti 10009 . Hal ini sesuai dengan - http: //portablecontacts.net/draft-spec.html#address_element.
|
addressLine1 |
string
Alamat fisik pelanggan. Alamat dapat terdiri dari satu hingga tiga baris.
|
organizationName |
string
Nama perusahaan atau divisi perusahaan.
|
contactName |
string
Nama kontak pelanggan.
|
Metode |
|
Mengambil pelanggan. |
|
Menerapkan patch pada pelanggan. |
|
Memperbarui pelanggan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-24 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]