{ "uuid": "b918318f-2fc6-4b2d-bfa3-22cd673a4ba8", "lastMigration": 29, "name": "Google Workspace Reseller API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "6e3d2bbf-9bd4-4d42-9cb6-f276c414795b", "documentation": "Orders a new customer's account. Before ordering a new customer account, establish whether the customer account already exists using the [`customers.get`](/admin-sdk/reseller/v1/reference/customers/get) If 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](/admin-sdk/reseller/v1/how-tos/manage_customers#create_existing_customer). For more information about ordering a new customer account, see [order a new customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#create_customer). After 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](/admin-sdk/reseller/v1/how-tos/manage_customers#tos).", "method": "post", "endpoint": "apps/reseller/v1/customers", "responses": [ { "uuid": "cdd3007e-5db3-47a4-ab67-67604bf669a6", "body": "{\n \"alternateEmail\": \"\",\n \"customerDomain\": \"\",\n \"customerDomainVerified\": {{faker 'datatype.boolean'}},\n \"customerId\": \"\",\n \"customerType\": \"{{oneOf (array 'customerTypeUnspecified' 'domain' 'team')}}\",\n \"kind\": \"reseller#customer\",\n \"phoneNumber\": \"\",\n \"postalAddress\": {\n \"addressLine1\": \"\",\n \"addressLine2\": \"\",\n \"addressLine3\": \"\",\n \"contactName\": \"\",\n \"countryCode\": \"\",\n \"kind\": \"customers#address\",\n \"locality\": \"\",\n \"organizationName\": \"\",\n \"postalCode\": \"\",\n \"region\": \"\"\n },\n \"primaryAdmin\": {\n \"primaryEmail\": \"\"\n },\n \"resourceUiUrl\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "073a1624-ab88-4991-821b-35fb29652bee", "documentation": "Gets a customer account. Use this operation to see a customer account already in your reseller management, or to see the minimal account information for an existing customer that you do not manage. For more information about the API response for existing customers, see [retrieving a customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#get_customer).", "method": "get", "endpoint": "apps/reseller/v1/customers/:customerId", "responses": [ { "uuid": "e7cccc41-be16-441b-a97e-1f95af7b09d5", "body": "{\n \"alternateEmail\": \"\",\n \"customerDomain\": \"\",\n \"customerDomainVerified\": {{faker 'datatype.boolean'}},\n \"customerId\": \"\",\n \"customerType\": \"{{oneOf (array 'customerTypeUnspecified' 'domain' 'team')}}\",\n \"kind\": \"reseller#customer\",\n \"phoneNumber\": \"\",\n \"postalAddress\": {\n \"addressLine1\": \"\",\n \"addressLine2\": \"\",\n \"addressLine3\": \"\",\n \"contactName\": \"\",\n \"countryCode\": \"\",\n \"kind\": \"customers#address\",\n \"locality\": \"\",\n \"organizationName\": \"\",\n \"postalCode\": \"\",\n \"region\": \"\"\n },\n \"primaryAdmin\": {\n \"primaryEmail\": \"\"\n },\n \"resourceUiUrl\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8c283c7c-9883-4067-baa6-0d26af0f1acc", "documentation": "Updates a customer account's settings. This method supports patch semantics. You cannot update `customerType` via the Reseller API, but a `\"team\"` customer can verify their domain and become `customerType = \"domain\"`. For more information, see [Verify your domain to unlock Essentials features](https://support.google.com/a/answer/9122284).", "method": "patch", "endpoint": "apps/reseller/v1/customers/:customerId", "responses": [ { "uuid": "3a70cea6-44b3-4174-9fd4-b6ed57d08365", "body": "{\n \"alternateEmail\": \"\",\n \"customerDomain\": \"\",\n \"customerDomainVerified\": {{faker 'datatype.boolean'}},\n \"customerId\": \"\",\n \"customerType\": \"{{oneOf (array 'customerTypeUnspecified' 'domain' 'team')}}\",\n \"kind\": \"reseller#customer\",\n \"phoneNumber\": \"\",\n \"postalAddress\": {\n \"addressLine1\": \"\",\n \"addressLine2\": \"\",\n \"addressLine3\": \"\",\n \"contactName\": \"\",\n \"countryCode\": \"\",\n \"kind\": \"customers#address\",\n \"locality\": \"\",\n \"organizationName\": \"\",\n \"postalCode\": \"\",\n \"region\": \"\"\n },\n \"primaryAdmin\": {\n \"primaryEmail\": \"\"\n },\n \"resourceUiUrl\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cf7f29da-139b-494f-82ae-d1f18fe88435", "documentation": "Updates a customer account's settings. You cannot update `customerType` via the Reseller API, but a `\"team\"` customer can verify their domain and become `customerType = \"domain\"`. For more information, see [update a customer's settings](/admin-sdk/reseller/v1/how-tos/manage_customers#update_customer).", "method": "put", "endpoint": "apps/reseller/v1/customers/:customerId", "responses": [ { "uuid": "506f95ca-5e8d-4867-a10a-3dcc7d8e5880", "body": "{\n \"alternateEmail\": \"\",\n \"customerDomain\": \"\",\n \"customerDomainVerified\": {{faker 'datatype.boolean'}},\n \"customerId\": \"\",\n \"customerType\": \"{{oneOf (array 'customerTypeUnspecified' 'domain' 'team')}}\",\n \"kind\": \"reseller#customer\",\n \"phoneNumber\": \"\",\n \"postalAddress\": {\n \"addressLine1\": \"\",\n \"addressLine2\": \"\",\n \"addressLine3\": \"\",\n \"contactName\": \"\",\n \"countryCode\": \"\",\n \"kind\": \"customers#address\",\n \"locality\": \"\",\n \"organizationName\": \"\",\n \"postalCode\": \"\",\n \"region\": \"\"\n },\n \"primaryAdmin\": {\n \"primaryEmail\": \"\"\n },\n \"resourceUiUrl\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e840ee45-4323-4164-bd33-11e5475f4eef", "documentation": "Creates or transfer a subscription. Create a subscription for a customer's account that you ordered using the [Order a new customer account](/admin-sdk/reseller/v1/reference/customers/insert.html) method. For more information about creating a subscription for different payment plans, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#create_subscription).\\ If you did not order the customer's account using the customer insert method, use the customer's `customerAuthToken` when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the [batch operation](/admin-sdk/reseller/v1/how-tos/batch.html) to transfer all of these subscriptions. For more information, see how to [transfer subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription).", "method": "post", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions", "responses": [ { "uuid": "01ae8d7c-7f6f-43d1-8180-8c4c9d64bff4", "body": "{\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c8ac8c3f-9459-4462-b5db-004f69d587b6", "documentation": "Cancels, suspends, or transfers a subscription to direct.", "method": "delete", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions/:subscriptionId", "responses": [ { "uuid": "d8d133f8-71e4-4bf3-87e6-609a0ee527a9", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "aa997495-d4fe-4f3c-9ffb-7e86b645fcf7", "documentation": "Gets a specific subscription. The `subscriptionId` can be found using the [Retrieve all reseller subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) method. For more information about retrieving a specific subscription, see the information descrived in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_subscription).", "method": "get", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions/:subscriptionId", "responses": [ { "uuid": "8811c7f7-f120-496a-a3f8-8cac36b5a960", "body": "{\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "58cdeeb6-94ba-4954-a583-5c4b1913bec5", "documentation": "Activates a subscription previously suspended by the reseller. If you did not suspend the customer subscription and it is suspended for any other reason, such as for abuse or a pending ToS acceptance, this call will not reactivate the customer subscription.", "method": "post", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions/:subscriptionId/activate", "responses": [ { "uuid": "4f848de0-29a3-4e5b-adfb-ab09b89a9fd6", "body": "{\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ef562407-93bf-41fc-8efb-1f46a89234c6", "documentation": "Updates a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments. How a plan is updated differs depending on the plan and the products. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan).", "method": "post", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions/:subscriptionId/changePlan", "responses": [ { "uuid": "285449d6-0f8a-4a78-bd83-f0a31b683fa4", "body": "{\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "872facd8-08c7-4822-b872-c48df2b8d91d", "documentation": "Updates a user license's renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_renewal).", "method": "post", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions/:subscriptionId/changeRenewalSettings", "responses": [ { "uuid": "aa6fcd45-896a-490e-ac8f-a38e2d8905d7", "body": "{\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0a4801f3-8c3f-4868-b3fd-9053caac214b", "documentation": "Updates a subscription's user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see [Manage Subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat).", "method": "post", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions/:subscriptionId/changeSeats", "responses": [ { "uuid": "3763babb-884d-45b6-8a5e-0c4b254d46e8", "body": "{\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "76687c4c-671c-4487-aa64-e22508a17d16", "documentation": "Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#paid_service).", "method": "post", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions/:subscriptionId/startPaidService", "responses": [ { "uuid": "80692389-47cb-4333-ab50-5eb808ee02de", "body": "{\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c07cc811-4ffb-4d87-978d-769ea5abe537", "documentation": "Suspends an active subscription. You can use this method to suspend a paid subscription that is currently in the `ACTIVE` state. * For `FLEXIBLE` subscriptions, billing is paused. * For `ANNUAL_MONTHLY_PAY` or `ANNUAL_YEARLY_PAY` subscriptions: * Suspending the subscription does not change the renewal date that was originally committed to. * A suspended subscription does not renew. If you activate the subscription after the original renewal date, a new annual subscription will be created, starting on the day of activation. We strongly encourage you to suspend subscriptions only for short periods of time as suspensions over 60 days may result in the subscription being cancelled.", "method": "post", "endpoint": "apps/reseller/v1/customers/:customerId/subscriptions/:subscriptionId/suspend", "responses": [ { "uuid": "fc2018c2-046b-4327-b3d5-ea1b08e78225", "body": "{\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cabd7104-a8ad-48d8-a135-f24532a3b6bd", "documentation": "Returns all the details of the watch corresponding to the reseller.", "method": "get", "endpoint": "apps/reseller/v1/resellernotify/getwatchdetails", "responses": [ { "uuid": "0fe4a7da-6024-46f1-b026-c3a56a5293bd", "body": "{\n \"serviceAccountEmailAddresses\": [\n \"\"\n ],\n \"topicName\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "632549c5-a66d-4f99-abfd-5a87826e2bba", "documentation": "Registers a Reseller for receiving notifications.", "method": "post", "endpoint": "apps/reseller/v1/resellernotify/register", "responses": [ { "uuid": "e0dc861a-57fe-4630-9812-5900c280d78a", "body": "{\n \"topicName\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0303bf05-719d-49f8-9f83-315fb8a2dd1e", "documentation": "Unregisters a Reseller for receiving notifications.", "method": "post", "endpoint": "apps/reseller/v1/resellernotify/unregister", "responses": [ { "uuid": "c3790b61-c161-4026-b2a3-30dd94113b16", "body": "{\n \"topicName\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "def5ab74-d3ab-4b0c-9c07-4a054231e96a", "documentation": "Lists of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions. Optionally, this method can filter the response by a `customerNamePrefix`. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions).", "method": "get", "endpoint": "apps/reseller/v1/subscriptions", "responses": [ { "uuid": "90f16301-aa69-499a-91c7-5b3c0f470feb", "body": "{\n \"kind\": \"reseller#subscriptions\",\n \"nextPageToken\": \"\",\n \"subscriptions\": [\n {\n \"billingMethod\": \"\",\n \"creationTime\": \"\",\n \"customerDomain\": \"\",\n \"customerId\": \"\",\n \"dealCode\": \"\",\n \"kind\": \"reseller#subscription\",\n \"plan\": {\n \"commitmentInterval\": {\n \"endTime\": \"\",\n \"startTime\": \"\"\n },\n \"isCommitmentPlan\": {{faker 'datatype.boolean'}},\n \"planName\": \"\"\n },\n \"purchaseOrderId\": \"\",\n \"renewalSettings\": {\n \"kind\": \"subscriptions#renewalSettings\",\n \"renewalType\": \"\"\n },\n \"resourceUiUrl\": \"\",\n \"seats\": {\n \"kind\": \"subscriptions#seats\",\n \"licensedNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"maximumNumberOfSeats\": {{faker 'number.int' max=99999}},\n \"numberOfSeats\": {{faker 'number.int' max=99999}}\n },\n \"skuId\": \"\",\n \"skuName\": \"\",\n \"status\": \"\",\n \"subscriptionId\": \"\",\n \"suspensionReasons\": [\n \"\"\n ],\n \"transferInfo\": {\n \"currentLegacySkuId\": \"\",\n \"minimumTransferableSeats\": {{faker 'number.int' max=99999}},\n \"transferabilityExpirationTime\": \"\"\n },\n \"trialSettings\": {\n \"isInTrial\": {{faker 'datatype.boolean'}},\n \"trialEndTime\": \"\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "6e3d2bbf-9bd4-4d42-9cb6-f276c414795b" }, { "type": "route", "uuid": "073a1624-ab88-4991-821b-35fb29652bee" }, { "type": "route", "uuid": "8c283c7c-9883-4067-baa6-0d26af0f1acc" }, { "type": "route", "uuid": "cf7f29da-139b-494f-82ae-d1f18fe88435" }, { "type": "route", "uuid": "e840ee45-4323-4164-bd33-11e5475f4eef" }, { "type": "route", "uuid": "c8ac8c3f-9459-4462-b5db-004f69d587b6" }, { "type": "route", "uuid": "aa997495-d4fe-4f3c-9ffb-7e86b645fcf7" }, { "type": "route", "uuid": "58cdeeb6-94ba-4954-a583-5c4b1913bec5" }, { "type": "route", "uuid": "ef562407-93bf-41fc-8efb-1f46a89234c6" }, { "type": "route", "uuid": "872facd8-08c7-4822-b872-c48df2b8d91d" }, { "type": "route", "uuid": "0a4801f3-8c3f-4868-b3fd-9053caac214b" }, { "type": "route", "uuid": "76687c4c-671c-4487-aa64-e22508a17d16" }, { "type": "route", "uuid": "c07cc811-4ffb-4d87-978d-769ea5abe537" }, { "type": "route", "uuid": "cabd7104-a8ad-48d8-a135-f24532a3b6bd" }, { "type": "route", "uuid": "632549c5-a66d-4f99-abfd-5a87826e2bba" }, { "type": "route", "uuid": "0303bf05-719d-49f8-9f83-315fb8a2dd1e" }, { "type": "route", "uuid": "def5ab74-d3ab-4b0c-9c07-4a054231e96a" } ] }