https://netsuiteprofessionals.com logo
t

Tom Robertson

04/28/2022, 7:26 PM
Hey All, I’m trying to get an app integrated with the SuiteTalk REST Web Services API. I’m trying to get it working in Postman, since I’ve seen that that’s usually easiest to get working first. I’ve followed the instructions I can find, but am continually getting a 401, and when I check the audit trail it’s an
InvalidSignature
. I’ve attached what my request looks like in Postman. Can anyone identify what I’m doing wrong?
Here’s what is logged for the Authentication header:
Copy code
OAuth realm="7...",oauth_consumer_key="<matches_consumer_key_exactly>",oauth_token="<matches_access_token_exactly>",oauth_signature_method="HMAC-SHA256",oauth_timestamp="16...",oauth_nonce="rH...",oauth_version="1.0",oauth_signature="c0E..."
b

battk

04/28/2022, 7:47 PM
there are 16 fields for the authorization tab, you have shown 13
t

Tom Robertson

04/28/2022, 7:48 PM
Sorry, didn’t fit on the screenshot. Here are the other three:
b

battk

04/28/2022, 7:48 PM
the usual for postman and rest is to follow Working with REST Web Services Using Postman
the collection is setup to properly send requests to their webservice
and will not use the body hash
t

Tom Robertson

04/28/2022, 8:06 PM
Yeah, this request is based off of that Postman Collection. I just tried the sample Test 0 request from that collection again and got the same InvalidSignature error I’ve been getting. Here’s what the auth header looked like:
Copy code
'Authorization: OAuth realm="7...",oauth_consumer_key="03...",oauth_token="fbee...",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1651176127",oauth_nonce="ULJlwTodVWy",oauth_version="1.0",oauth_signature="x2pqohqK8fp%2BwPeJ1R4Lky6rIcLEU4GhBxqrt8%2F1III%3D"'
So the same problem.
b

battk

04/28/2022, 9:12 PM
your settings for the request dont look right for netsuite;s collection
netsuites example uses a shared authorization setup that uses environmental variables
you appear to be using request level authorization, and no environment
t

Tom Robertson

04/28/2022, 9:18 PM
Correct. I created a standalone request since the Postman collection has been returning 401s. Here is my environment variable setup for the postman collection:
And here’s an example request from that collection, using the environment above:
The audit trail detail is
InvalidSignature
b

battk

04/28/2022, 9:21 PM
netsuite's request collection does work correctly normally
so you probably want to make sure your tokens match
that usually means getting new integration and access tokens
t

Tom Robertson

04/28/2022, 9:27 PM
facepalm There was a typo in the token.
O
when it should have been
0
. Thank you for your help! Much appreciated.
6 Views