Hi,
I am trying to use NetSuite RestApi but I am receiving an error during authentication. I am using TBA.
Using Postman this is what I am sending:
curl --location 'https://64xxxx.suitetalk.api.netsuite.com/services/rest/record/v1/salesOrder?oauth_consumer_key=da2ecxxxxxxxx&oauth_token=0090fxxxxxxx&oauth_signature_method=HMAC-SHA256&oauth_timestamp=1728411983&oauth_nonce=734WFxxxx&oauth_version=1.0&oauth_signature=MWju8ysvxxxxx'
And this is what I am receiving
{ "type": "https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.2", "title": "Unauthorized", "status": 401, "o:errorDetails": [ { "detail": "Invalid login attempt. For more details, see the Login Audit Trail in the NetSuite UI at Setup > Users/Roles > User Management > View Login Audit Trail.", "o:errorCode": "INVALID_LOGIN" } ]}
I am created a user which is assign to a new integration from which I got the consumer key and secret which has at least the 3 permissions that I think are required
Access Token Management | Full | REST Web Services | Full | User Access Tokens | Full |
|
|---|
|
Note that the Audit trail doesn't show any attempts. So I wonder if I have the right URL or some services need to be enabled.
What else am I missing to get this to work?
Thanks
Pascal