Method: customers.insert
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สั่งซื้อบัญชีของลูกค้าใหม่
ก่อนสั่งซื้อบัญชีลูกค้าใหม่ ให้ตรวจสอบว่าบัญชีลูกค้ามีอยู่แล้วหรือไม่โดยใช้ customers.get
หากบัญชีลูกค้าเป็นบัญชี Google โดยตรงหรือเป็นบัญชีลูกค้าที่ขายต่อจากตัวแทนจำหน่ายรายอื่น ให้ใช้ customerAuthToken\
ตามที่อธิบายไว้ในสั่งซื้อบัญชีที่ขายต่อสำหรับลูกค้าเดิม โปรดดูข้อมูลเพิ่มเติมเกี่ยวกับการสั่งซื้อบัญชีลูกค้าใหม่ที่หัวข้อสั่งซื้อบัญชีลูกค้าใหม่
หลังจากสร้างบัญชีลูกค้าใหม่แล้ว คุณต้องจัดสรรผู้ใช้เป็นผู้ดูแลระบบ ผู้ดูแลระบบของลูกค้าต้องลงชื่อเข้าใช้คอนโซลผู้ดูแลระบบและลงนามในข้อตกลงตัวแทนจำหน่าย G Suite เพื่อเปิดใช้งานบัญชี ตัวแทนจำหน่ายไม่ได้รับอนุญาตให้ลงนามในข้อตกลง G Suite ผ่านข้อตกลงตัวแทนจำหน่ายในนามของลูกค้า โปรดดูข้อมูลเพิ่มเติมที่หัวข้อสั่งซื้อบัญชีลูกค้าใหม่
คำขอ HTTP
POST https://reseller.googleapis.com/apps/reseller/v1/customers
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
customerAuthToken |
string
คุณต้องระบุสตริงการค้นหา customerAuthToken เมื่อสร้างบัญชีที่ขายต่อซึ่งโอนการสมัครใช้บริการของลูกค้าโดยตรง หรือโอนการสมัครใช้บริการของลูกค้าตัวแทนจำหน่ายรายอื่นไปยังการจัดการตัวแทนจำหน่ายของคุณ นี่คือโทเค็นการตรวจสอบสิทธิ์ฐาน 16 ที่จำเป็นต่อการโอนการสมัครใช้บริการให้เสร็จสมบูรณ์ ดูข้อมูลเพิ่มเติมได้ที่ศูนย์ช่วยเหลือสำหรับผู้ดูแลระบบ
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Customer
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Customer
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/apps.order
ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# Method: customers.insert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nOrders a new customer's account.\n\nBefore ordering a new customer account, establish whether the customer account already exists using the [`customers.get`](https://developers.google.com/workspace/admin/reseller/v1/reference/customers/get)\n\nIf the customer account exists as a direct Google account or as a resold customer account from another reseller, use the `customerAuthToken\\` as described in [order a resold account for an existing customer](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#create_existing_customer). For more information about ordering a new customer account, see [order a new customer account](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#create_customer).\n\nAfter creating a new customer account, you must provision a user as an administrator. The customer's administrator is required to sign in to the Admin console and sign the G Suite via Reseller agreement to activate the account. Resellers are prohibited from signing the G Suite via Reseller agreement on the customer's behalf. For more information, see [order a new customer account](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#tos).\n\n### HTTP request\n\n`POST https://reseller.googleapis.com/apps/reseller/v1/customers`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customerAuthToken` | `string` The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the [administrator help center](//support.google.com/a/bin/answer.py?answer=142336). |\n\n### Request body\n\nThe request body contains an instance of [Customer](/workspace/admin/reseller/reference/rest/v1/customers#Customer).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Customer](/workspace/admin/reseller/reference/rest/v1/customers#Customer).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/apps.order`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]