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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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