TBA Authentication Credentials
Hi I’ve been trying to use token based authentication to authenticate to the SOAP API
I have made enabled SOAP webservices, created an integration record, and created a token for the integration record yet I still get a 400 error.
here is my request in postman
this is what it looks like in the header of my post request to the gettoken endpoint:
OAuth realm=”myaccountid”,oauth_consumer_key=”key from netsuite”,
oauth_token=”token id from netsuite “,oauth_signature_method=”HMAC-SHA256″,
oauth_timestamp=”1640727651″,oauth_nonce=”0is2I5BowJi”,oauth_version=”1.0″,
oauth_callback=”http%3A%2F%2Flocalhost%3A%2A”,
oauth_signature=”my calculated signature”
What am I missing?
Am I making a request to the right endpoint?
Wrong place using the wrong tool. The endpoint you are using is to get an access token. You dont want to use it if you already got an access token from the ui. SOAP also does not use OAuth 1, so you won’t be using any of Postman’s supported authentication types.
Its generally a pain to use postman to work with soap since you have to generate the requests by hand. If you still want to experiment with postman, then you need a pre-request script. Expect to upgrade that script since HMAC1 has been deprecated.
should I skip to step two then? Is the token I received from the UI already authorized?
No.The entire point of the The Three-Step TBA Authorization Flow is to get an access token, you already have it.
You should be going through the Token-Based Authentication Details to continue learning how to use the tokens.