Postman POST /oauth/token - Token (Client Credentials) does not work for SB environment

This just started today, I have Postman setup to use the GET Token (Client Credentials) API. It has been working for over a year. The API works fine for the production environment, however, for the sandbox environment, I’m now receiving Bad Client credentials error. I created a new PAT, however, the error is still the same. When I run the same API using production credentials it works fine. Did something change?

{
“error”: “invalid_client”,
“error_description”: “Bad client credentials”
}

Hi Renee

Just to confirm, you are using Postman environments for each of your IDN Tenants?
And that the values for pat-id and pat-secret are correct in there (in CURRENT VALUE column)

You could try duplicate that GET token request, then hardcode in the client ID and Secret, to confirm if it works or not.

Hi Jason, thank you for responding. I did take your advice and copy the GET request, entered the ID and Secret directly and still get Invalid_Client “Bad Client credentials”. I created another PAT and still got the same results. When I use a PAT from the production domain, works fine.

If using a PAT from production domain works fine, then it sounds like the URL you are using is the prod url, and not the sandbox environment.

Can you check the values you have for api-url or any other tenant variables?

Failing that, you can try hardcode the URL at the top, and see if that works (with sandbox PAT)

I second Jason’s response. If your prod credentials work, then likely you are targeting the prod URL and not the SB URL. Double check your environment settings for the tenant or hard code the URL.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.