Google Workspace Reseller API
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تنفيذ الوظائف الشائعة المتوفّرة في "وحدة التحكّم في خدمات القناة" على نطاق واسع، مثل تقديم الطلبات والاطّلاع على معلومات العملاء
الخدمة: reseller.googleapis.com
للاتّصال بهذه الخدمة، ننصحك باستخدام مكتبات العملاء التي تقدّمها Google. إذا كان تطبيقك بحاجة إلى استخدام مكتباتك الخاصة للاتصال بهذه الخدمة، استخدِم المعلومات التالية عند إجراء طلبات واجهة برمجة التطبيقات.
المستند المرتبط بميزة "اقتراحات"
مستند الاكتشاف هو مواصفة قابلة للقراءة آليًا لوصف واجهات برمجة التطبيقات REST واستخدامها. ويتم استخدامه لإنشاء مكتبات العملاء ومكونات إضافية لبيئة تطوير البرامج المتكاملة وأدوات أخرى تتفاعل مع واجهات برمجة تطبيقات Google. قد توفّر خدمة واحدة عدة مستندات اكتشاف. توفّر هذه الخدمة مستند الاكتشاف التالي:
نقطة نهاية الخدمة
نقطة نهاية الخدمة هي عنوان URL أساسي يحدِّد عنوان الشبكة لخدمة واجهة برمجة التطبيقات. قد تتضمّن خدمة واحدة عدة نقاط نهاية للخدمات. تحتوي هذه الخدمة على نقطة نهاية الخدمة التالية، وترتبط كل معرّفات الموارد المنتظمة (URI) أدناه بنقطة نهاية الخدمة هذه:
https://reseller.googleapis.com
الطُرق |
get |
GET /apps/reseller/v1/customers/{customerId}
يحصل على حساب عميل. |
insert |
POST /apps/reseller/v1/customers
يطلب حساب عميل جديد. |
patch |
PATCH /apps/reseller/v1/customers/{customerId}
يُعدِّل إعدادات حساب عميل. |
update |
PUT /apps/reseller/v1/customers/{customerId}
يُعدِّل إعدادات حساب عميل. |
الطُرق |
getwatchdetails |
GET /apps/reseller/v1/resellernotify/getwatchdetails
تعرِض هذه السمة جميع تفاصيل الساعة التي تخصّ المورِّد. |
register |
POST /apps/reseller/v1/resellernotify/register
يُستخدَم هذا الإجراء لتسجيل مورّد لتلقّي الإشعارات. |
unregister |
POST /apps/reseller/v1/resellernotify/unregister
يؤدي هذا الإجراء إلى إلغاء تسجيل مورّد لتلقّي الإشعارات. |
الطُرق |
activate |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate
يؤدي هذا الإجراء إلى تفعيل اشتراك علّقه المورّد في السابق. |
changePlan |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan
تعديل خطة اشتراك |
changeRenewalSettings |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings
لتعديل إعدادات تجديد ترخيص المستخدم. |
changeSeats |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats
لتعديل إعدادات ترخيص المستخدم في الاشتراك |
delete |
DELETE /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}
لإلغاء اشتراك أو تعليقه أو نقله إلى قناة مباشرة |
get |
GET /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}
الحصول على اشتراك معيّن |
insert |
POST /apps/reseller/v1/customers/{customerId}/subscriptions
لإنشاء اشتراك أو نقله |
list |
GET /apps/reseller/v1/subscriptions
قوائم الاشتراكات التي يديرها المورّد |
startPaidService |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService
نقل اشتراك في فترة تجريبية مجانية لمدة 30 يومًا إلى اشتراك في خدمة مدفوعة على الفور |
suspend |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend
يؤدي هذا الإجراء إلى تعليق اشتراك نشط. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Google Workspace Reseller API\n\nPerform common functions that are available on the Channel Services console at scale, like placing orders and viewing customer information\n\n- [REST Resource: v1.customers](#v1.customers)\n- [REST Resource: v1.resellernotify](#v1.resellernotify)\n- [REST Resource: v1.subscriptions](#v1.subscriptions)\n\nService: reseller.googleapis.com\n--------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://reseller.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://reseller.googleapis.com`\n\nREST Resource: [v1.customers](/workspace/admin/reseller/reference/rest/v1/customers)\n------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|\n| [get](/workspace/admin/reseller/reference/rest/v1/customers/get) | `GET /apps/reseller/v1/customers/{customerId}` Gets a customer account. |\n| [insert](/workspace/admin/reseller/reference/rest/v1/customers/insert) | `POST /apps/reseller/v1/customers` Orders a new customer's account. |\n| [patch](/workspace/admin/reseller/reference/rest/v1/customers/patch) | `PATCH /apps/reseller/v1/customers/{customerId}` Updates a customer account's settings. |\n| [update](/workspace/admin/reseller/reference/rest/v1/customers/update) | `PUT /apps/reseller/v1/customers/{customerId}` Updates a customer account's settings. |\n\nREST Resource: [v1.resellernotify](/workspace/admin/reseller/reference/rest/v1/resellernotify)\n----------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [getwatchdetails](/workspace/admin/reseller/reference/rest/v1/resellernotify/getwatchdetails) | `GET /apps/reseller/v1/resellernotify/getwatchdetails` Returns all the details of the watch corresponding to the reseller. |\n| [register](/workspace/admin/reseller/reference/rest/v1/resellernotify/register) | `POST /apps/reseller/v1/resellernotify/register` Registers a Reseller for receiving notifications. |\n| [unregister](/workspace/admin/reseller/reference/rest/v1/resellernotify/unregister) | `POST /apps/reseller/v1/resellernotify/unregister` Unregisters a Reseller for receiving notifications. |\n\nREST Resource: [v1.subscriptions](/workspace/admin/reseller/reference/rest/v1/subscriptions)\n--------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [activate](/workspace/admin/reseller/reference/rest/v1/subscriptions/activate) | `POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate` Activates a subscription previously suspended by the reseller. |\n| [changePlan](/workspace/admin/reseller/reference/rest/v1/subscriptions/changePlan) | `POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan` Updates a subscription plan. |\n| [changeRenewalSettings](/workspace/admin/reseller/reference/rest/v1/subscriptions/changeRenewalSettings) | `POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings` Updates a user license's renewal settings. |\n| [changeSeats](/workspace/admin/reseller/reference/rest/v1/subscriptions/changeSeats) | `POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats` Updates a subscription's user license settings. |\n| [delete](/workspace/admin/reseller/reference/rest/v1/subscriptions/delete) | `DELETE /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}` Cancels, suspends, or transfers a subscription to direct. |\n| [get](/workspace/admin/reseller/reference/rest/v1/subscriptions/get) | `GET /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}` Gets a specific subscription. |\n| [insert](/workspace/admin/reseller/reference/rest/v1/subscriptions/insert) | `POST /apps/reseller/v1/customers/{customerId}/subscriptions` Creates or transfer a subscription. |\n| [list](/workspace/admin/reseller/reference/rest/v1/subscriptions/list) | `GET /apps/reseller/v1/subscriptions` Lists of subscriptions managed by the reseller. |\n| [startPaidService](/workspace/admin/reseller/reference/rest/v1/subscriptions/startPaidService) | `POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService` Immediately move a 30-day free trial subscription to a paid service subscription. |\n| [suspend](/workspace/admin/reseller/reference/rest/v1/subscriptions/suspend) | `POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend` Suspends an active subscription. |"]]