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

ชื่อผู้ติดต่อของลูกค้า

วิธีการ

get

เรียกข้อมูลลูกค้า

patch

แพตช์ลูกค้า

update

อัปเดตลูกค้า