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.
Failed RESTlet authentication
I'm trying to develop a simple form portlet submitting to a RESTlet in the back end. My problem is that I cannot get past the RESTlet authentication. Here are my NLAuth headers:
User-Agent: SuiteScript-Call
Authorization: NLAuth
nlauth_account: TSTDRV1291212
nlauth_email: $email
nlauth_signature: $password
nlauth_role: administrator
Content-Type: application/json
Obviously, replacing '$email' and '$password' for the corresponding values.
The 'nlauth_role' value is the role id in Netsuite.
I'm using Postman to test this and I always get an "401 Authorization Required" status and the following error.
{
"error": {
"code": "USER_ERROR",
"message": "header is not NLAuth scheme [ NLAuth ]"
Tagged:
0