Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Receiving error "invalid_client" when doing Stage 2 of OAuth (for REST Web Services)
We are successfully making the Stage 1 GET request and getting a valid response.
Then we are making the POST request to the https://[server].suitetalk.api.netsuite.com/services/rest/oauth/oauth2/v1/token with parameters:
Array
(
[code] => afb99e2f1efe5d6bc04b391abd669056a643947b06b9bc95aebfef54c1c4382f
[redirect_uri] => <our URI>
[grant_type] => authorization_code
)
But we are receiving the response:
{"error":"invalid_client"}
We are sending the correct Client ID at Stage 1 of the OAuth process, and the login and accepting the OAuth request seem to be working normally.
What does this error mean?
0