Method: customers.insert
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Đặt hàng tài khoản của khách hàng mới.
Trước khi đặt hàng một tài khoản khách hàng mới, hãy xác định xem tài khoản khách hàng đó đã tồn tại hay chưa bằng cách sử dụng customers.get
Nếu tài khoản khách hàng tồn tại dưới dạng tài khoản Google trực tiếp hoặc tài khoản khách hàng được bán lại từ một đại lý khác, hãy sử dụng customerAuthToken\
như mô tả trong phần đặt tài khoản được bán lại cho khách hàng hiện tại. Để biết thêm thông tin về cách đặt tài khoản khách hàng mới, hãy xem bài viết đặt tài khoản khách hàng mới.
Sau khi tạo tài khoản khách hàng mới, bạn phải cấp quyền quản trị cho một người dùng. Quản trị viên của khách hàng phải đăng nhập vào Bảng điều khiển dành cho quản trị viên và ký thoả thuận Đại lý của G Suite để kích hoạt tài khoản. Đại lý không được thay mặt khách hàng ký thoả thuận G Suite qua thoả thuận Đại lý. Để biết thêm thông tin, hãy xem bài viết đặt tài khoản khách hàng mới.
Yêu cầu HTTP
POST https://reseller.googleapis.com/apps/reseller/v1/customers
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số truy vấn
Thông số |
customerAuthToken |
string
Chuỗi truy vấn customerAuthToken là bắt buộc khi tạo tài khoản được bán lại để chuyển gói thuê bao của khách hàng trực tiếp hoặc chuyển gói thuê bao của khách hàng đại lý khác sang tài khoản quản lý đại lý của bạn. Đây là mã thông báo xác thực thập lục phân cần thiết để hoàn tất quá trình chuyển gói thuê bao. Để biết thêm thông tin, hãy xem trung tâm trợ giúp dành cho quản trị viên.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của Customer
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể Customer
mới tạo.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/apps.order
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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)."]]