REST Resource: customers
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: ลูกค้า
การแสดง JSON |
{
"id": string,
"customerDomain": string,
"kind": string,
"etag": string,
"alternateEmail": string,
"customerCreationTime": string,
"postalAddress": {
object (CustomerPostalAddress )
},
"phoneNumber": string,
"language": string
} |
ช่อง |
id |
string
รหัสที่ไม่ซ้ำกันสำหรับบัญชี Google Workspace ของลูกค้า (อ่านอย่างเดียว)
|
customerDomain |
string
สตริงชื่อโดเมนหลักของลูกค้า ไม่ต้องใส่คำนำหน้า www เมื่อสร้างลูกค้าใหม่
|
kind |
string
ระบุทรัพยากรว่าเป็นลูกค้า ค่า: admin#directory#customer
|
etag |
string
ETag ของทรัพยากร
|
alternateEmail |
string
อีเมลสำรองสำหรับติดต่อของลูกค้า อีเมลนี้ต้องไม่อยู่ในโดเมนเดียวกับ customerDomain
|
customerCreationTime |
string
เวลาสร้างของลูกค้า (อ่านอย่างเดียว)
|
postalAddress |
object (CustomerPostalAddress )
ข้อมูลที่อยู่ไปรษณีย์ของลูกค้า
|
phoneNumber |
string
หมายเลขโทรศัพท์สำหรับติดต่อของลูกค้าในรูปแบบ E.164
|
language |
string
รหัสภาษา ISO 639-2 ของลูกค้า ดูรายการรหัสที่รองรับได้ในหน้ารหัสภาษา API จะยอมรับรหัสภาษาที่ถูกต้องซึ่งอยู่นอกชุดที่รองรับ แต่อาจทําให้ระบบทํางานในลักษณะที่ไม่คาดคิด ค่าเริ่มต้นคือ en
|
CustomerPostalAddress
การแสดง JSON |
{
"countryCode": string,
"addressLine2": string,
"region": string,
"addressLine3": string,
"locality": string,
"postalCode": string,
"addressLine1": string,
"organizationName": string,
"contactName": string
} |
ช่อง |
countryCode |
string
พร็อพเพอร์ตี้นี้เป็นพร็อพเพอร์ตี้ที่ต้องระบุ ดูข้อมูล countryCode ได้ที่องค์ประกอบรหัสประเทศ ISO 3166
|
addressLine2 |
string
ที่อยู่บรรทัดที่ 2
|
region |
string
ชื่อของภูมิภาค ตัวอย่างค่าภูมิภาคคือ NY สำหรับรัฐนิวยอร์ก
|
addressLine3 |
string
ที่อยู่บรรทัดที่ 3 ของที่อยู่
|
locality |
string
ชื่อของสถานที่ ตัวอย่างค่าสถานที่ตั้งคือเมือง San Francisco
|
postalCode |
string
รหัสไปรษณีย์ ตัวอย่างรหัสไปรษณีย์คือรหัสไปรษณีย์ เช่น 10009 ซึ่งเป็นไปตาม - http: //portablecontacts.net/draft-spec.html#address_element
|
addressLine1 |
string
ที่อยู่จริงของลูกค้า ที่อยู่ประกอบด้วย 1-3 บรรทัด
|
organizationName |
string
ชื่อบริษัทหรือแผนกของบริษัท
|
contactName |
string
ชื่อผู้ติดต่อของลูกค้า
|
เมธอด |
|
ดึงข้อมูลลูกค้า |
|
แพตช์ลูกค้า |
|
อัปเดตลูกค้า |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-24 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]