Google Workspace Reseller API
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.
Thực hiện các chức năng phổ biến có trên Bảng điều khiển Dịch vụ kênh trên quy mô lớn, chẳng hạn như đặt hàng và xem thông tin khách hàng
Dịch vụ: reseller.googleapis.com
Để gọi dịch vụ này, bạn nên sử dụng thư viện ứng dụng do Google cung cấp. Nếu ứng dụng của bạn cần sử dụng thư viện của riêng mình để gọi dịch vụ này, hãy sử dụng thông tin sau khi bạn tạo các yêu cầu API.
Tài liệu khám phá
Tài liệu khám phá là một bản đặc tả có thể đọc được bằng máy để mô tả và sử dụng các API REST. Thư viện này dùng để tạo thư viện ứng dụng, trình bổ trợ IDE và các công cụ khác tương tác với API của Google. Một dịch vụ có thể cung cấp nhiều tài liệu khám phá. Dịch vụ này cung cấp tài liệu khám phá sau:
Điểm cuối dịch vụ
Điểm cuối của dịch vụ là một URL cơ sở chỉ định địa chỉ mạng của một dịch vụ API. Một dịch vụ có thể có nhiều điểm cuối dịch vụ. Dịch vụ này có điểm cuối dịch vụ sau và tất cả URI dưới đây đều liên quan đến điểm cuối dịch vụ này:
https://reseller.googleapis.com
Phương thức |
get |
GET /apps/reseller/v1/customers/{customerId}
Lấy tài khoản khách hàng. |
insert |
POST /apps/reseller/v1/customers
Đặt hàng tài khoản của khách hàng mới. |
patch |
PATCH /apps/reseller/v1/customers/{customerId}
Cập nhật chế độ cài đặt của tài khoản khách hàng. |
update |
PUT /apps/reseller/v1/customers/{customerId}
Cập nhật chế độ cài đặt của tài khoản khách hàng. |
Phương thức |
getwatchdetails |
GET /apps/reseller/v1/resellernotify/getwatchdetails
Trả về tất cả thông tin chi tiết của đồng hồ tương ứng với đại lý. |
register |
POST /apps/reseller/v1/resellernotify/register
Đăng ký Người bán lại để nhận thông báo. |
unregister |
POST /apps/reseller/v1/resellernotify/unregister Huỷ đăng ký nhận thông báo của Đại lý. |
Phương thức |
activate |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate
Kích hoạt gói thuê bao mà đại lý đã tạm ngưng trước đó. |
changePlan |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan
Cập nhật gói thuê bao. |
changeRenewalSettings |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings
Cập nhật chế độ cài đặt gia hạn của giấy phép người dùng. |
changeSeats |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats Cập nhật chế độ cài đặt giấy phép của người dùng cho gói thuê bao. |
delete |
DELETE /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId} Huỷ, tạm ngưng hoặc chuyển một gói thuê bao sang trực tiếp. |
get |
GET /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}
Lấy một gói thuê bao cụ thể. |
insert |
POST /apps/reseller/v1/customers/{customerId}/subscriptions
Tạo hoặc chuyển gói thuê bao. |
list |
GET /apps/reseller/v1/subscriptions
Danh sách các gói thuê bao do đại lý quản lý. |
startPaidService |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService
Chuyển ngay gói thuê bao dùng thử miễn phí 30 ngày sang gói thuê bao dịch vụ có tính phí. |
suspend |
POST /apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend
Tạm ngưng một gói thuê bao đang hoạt động. |
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,["# 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. |"]]