Token error generator

(Ilya Lezov) #1

Hi guys,

I have an issue related token generating for production with help tool.

I try to generate token for production and got error

“error”: “access_denied”,
“error_description”: “Invalid code.”

Could you please help me?

(Ben Milne) #2

If you don’t add the Application Key and Secret you can get that error.

Easy fix is to click this which is right below those input fields:

Then sign in with UAT credentials.

Let us know if you still run into the same problem.

(Stephen Ausman) #3

Hey Ilya,

Thanks for bringing this to our attention! I think I tracked down the bug. We’ll work on getting this fixed. In the meantime if you try again it should work after a few attempts.

(Ilya Lezov) #4

Hey Stephen,

This problem still reproduced. I have tried more than 10 times and got same result

“error”: “access_denied”,
“error_description”: “Invalid code.”


(Ben Milne) #5

Sorry to hear about the issue. I’m having trouble reproducing but can offer an alternative to get your access and refresh token pair.

You can bypass token generator and simply do it on here:

or in UAT here:

(Ilya Lezov) #6

Hi Ben,

When I create token here
I don’t have manage customers permission but I need it.
If I create verifyied customer via API with access token generated on page I got “Unauthorized” HTTP response.

May be do you know the way to createa tokens pair with Manage Customers permission?


(Spencer Hunter) #7

@Ilya_Lezov, The ManageCustomers scope is required for White Label services within API v2 and is not globally enabled in production. To learn more about entering into a White Label agreement, please contact Sales!

If you are looking to generate a token in our Sandbox environment(UAT) then, by default, the ManageCustomers scope is enabled on your application upon creation.

(Ilya Lezov) #8

Thank you, Spencer!