Forum Discussion
Google ZTE API -
Why am i getting the error "404. That’s an error. The requested URL "https://zerotouch.googleapis.com/v1/customers/$CustomerId/devices/$Imei" was not found on this server. That’s all we know." Im following the instructions provided here. https://developers.google.com/zero-touch/reference/customer/rest/v1/customers.devices/get
Im just trying to search for an imei number in my zero touch portal located here https://partner.android.com/zerotouch
I was able to retrieve authorization code using https://accounts.google.com/o/oauth2/auth and scope=https://www.googleapis.com/auth/androidworkzerotouchemm
Then I able to generate access token from authorization code but when attempting to retrieve an imei number using "https://zerotouch.googleapis.com/v1/customers/$CustomerId/devices/$Imei" customers get method. I get the error stated above. Can someone help!
- jeremyLevel 3.0: Honeycomb10 months ago
Hello,
The API is only available to reseller, you're a reseller correct?
If so you should first create the customer and use the customerID provided to replace it in the URL.
Best,
- zo1987Level 1.6: Donut10 months ago
Hey Jeremy,
Thank you for the info! Im Not a reseller, is the only way to get approved to be a reseller is only if you sell devices? I was under the impression that you can use the customer api commands if your a customer but I guess that's not the case. Can you help me in getting a reseller account to get my api script going?
- jeremyLevel 3.0: Honeycomb10 months ago
To use the API you have to either be a Reseller, or an EMM, there is currently no customer facing API for ZTE, what are you trying to achieve?
- LizzieGoogle Community Manager10 months ago
Hello zo1987,
This sounds quite similar to another post we had earlier in the week regarding some error messages with the zero-touch API. If it is the same, we've just released a service announcement on this and the way to fix it. Maybe worth taking a look to see if this helps. If you can it would be great to know if this helps.
Thank you,
Lizzie
(Massive thanks jeremy, for helping here)
- zo1987Level 1.6: Donut10 months ago
Hey Lizzie!
Thank you for this information, are you able to tell with customer ID have actually accepted the terms? Iam able to log into our Zero touch portal however I do not recall seeing a terms prompt. Is this something a reseller has to do?
- LizzieGoogle Community Manager10 months ago
Hello zo1987,
Thanks for your reply. This should be something you as the customer can accept in the Customer Portal for Zero-touch. If you are not seeing the prompt, then I would assume it's already been accepted. Saying this though, I'll message you via direct message (to you community inbox, just click on the little envelope in the top right corner) to get your customer ID and we can double check.
Speak to you soon.
Thanks,Lizzie