Method: customers.insert
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הזמנת חשבון של לקוח חדש.
לפני שמזמינים חשבון לקוח חדש, צריך לבדוק אם חשבון הלקוח כבר קיים באמצעות customers.get
אם חשבון הלקוח קיים כחשבון Google ישיר או כחשבון לקוח שנמכר מפיץ אחר, צריך להשתמש ב-customerAuthToken\
כפי שמתואר במאמר הזמנת חשבון שנמכר מלקוח קיים. מידע נוסף על הזמנה של חשבון לקוח חדש זמין במאמר הזמנה של חשבון לקוח חדש.
אחרי שיוצרים חשבון לקוח חדש, צריך להקצות משתמש כמנהל מערכת. האדמין של הלקוח צריך להיכנס למסוף Admin ולחתום על הסכם G Suite דרך מפיץ כדי להפעיל את החשבון. אסור למפיצים לחתום על הסכם G Suite דרך מפיץ בשם הלקוח. מידע נוסף זמין במאמר הזמנת חשבון לקוח חדש.
בקשת HTTP
POST https://reseller.googleapis.com/apps/reseller/v1/customers
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של שאילתה
פרמטרים |
customerAuthToken |
string
מחרוזת השאילתה customerAuthToken נדרשת כשיוצרים חשבון למפיץ שמעביר מינוי של לקוח ישיר או מינוי של לקוח של מפיץ אחר לניהול של המפיץ שלכם. זהו אסימון אימות הקסדצימלי שנחוץ כדי להשלים את העברת המינוי. מידע נוסף זמין במרכז העזרה לאדמינים.
|
גוף הבקשה
גוף הבקשה מכיל מופע של Customer
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע חדש של Customer
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/apps.order
מידע נוסף זמין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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)."]]