0

I am trying to transfer a customer domain to my reseller account. I have transfer token generated
In the below screen, if I give the domain and transfer token, I will have a customer created with all the details.

How to do this using the API
https://developers.google.com/admin-sdk/reseller/reference/rest/v1/customers/insert
I am trying to create passing the domain and authtoken, it shows me the resource already exists error.

Any help will be much appreciated

enter image description here

smootherbug
  • 129
  • 12
  • You can't order the same customer account twice. Check the [documentation](https://developers.google.com/admin-sdk/reseller/reference/rest/v1/customers/insert) `Before ordering a new customer account, establish whether the customer account already exists using the` [customers.get](https://developers.google.com/admin-sdk/reseller/v1/reference/customers/get). In order to help you, please describe your scenario and what you are trying to achieve but you cannot. – fullfine Apr 07 '21 at 11:16
  • @fullfine, my scenario is to tranfer an existing customer to my reseller account. I have to do it using apis – smootherbug Apr 07 '21 at 12:41
  • If the *resource already exists*, you have already transferred your customer. Now, you need to transfer the subscription. Find more information about it: [Transfer a customer to your reseller account](https://support.google.com/channelservices/answer/9547629?hl=en#zippy=), [Reseller API: Transfer a subscription](https://developers.google.com/admin-sdk/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription). – fullfine Apr 07 '21 at 16:07
  • @fullfine, yeah, my question here is how to transfer the customer using API – smootherbug Apr 08 '21 at 06:08

1 Answers1

0

To transfer a customer and its subscriptions you have to use the methods customers.insert and subscriptions.insert. You can find more information in the following documentation: Transfer a subscription and Transfer a customer to your account

fullfine
  • 1,371
  • 1
  • 4
  • 11
  • There is a new release of APIs, https://cloud.google.com/channel/docs I want to do the above operations using this – smootherbug Apr 13 '21 at 10:27