Method: customers.insert
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
为新客户订购账号。
在订购新的客户账号之前,请使用 customers.get
确定客户账号是否已存在
如果客户账号是 Google 直接客户账号或其他转销商转销的客户账号,请按照为现有客户订购转销账号中的说明使用 customerAuthToken\
。如需详细了解如何订购新的客户账号,请参阅订购新的客户账号。
创建新客户账号后,您必须将某个用户配置为管理员。客户的管理员必须登录管理控制台,然后签署“通过转销商购买 G Suite”协议,才能激活账号。转销商不得代表客户签署 G Suite 转销商协议。如需了解详情,请参阅订购新的客户账号。
HTTP 请求
POST https://reseller.googleapis.com/apps/reseller/v1/customers
网址采用 gRPC 转码语法。
查询参数
参数 |
customerAuthToken |
string
创建转销账号时,必须提供 customerAuthToken 查询字符串,以便将直销客户的订阅转移到您的转销商账号,或将其他转销商客户的订阅转移到您的转销商账号。这是完成订阅转移所需的十六进制身份验证令牌。如需了解详情,请访问管理员帮助中心。
|
请求正文
请求正文包含一个 Customer
实例。
响应正文
如果成功,响应正文将包含一个新创建的 Customer
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/apps.order
如需了解详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],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)."]]