Oracle Netsuite HTTP Request

Hi team,

I’m facing a challenge performing HTTP Get call in Netsuite connector.

1) Error Scenario 1

Method: GET

Endpoint:
https://<ACCOUNT_ID>-sb1.suitetalk.api.netsuite.com/services/rest/query/v1/savedsearch

Error Code: 400

Error Message - “title”:“Bad Request”,“status”:400,“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”}]}"

2) Error Scenario 2

Method: GET

Endpoint:
/services/rest/query/v1/savedsearch

Error Code: 404

Error Message - “message”:“No API found at that URL for the given token and credentials”}"

Hi @tejaskumar.darji,

Your second approach using the relative path (/services/rest/…) is actually the right URL format for the Oracle NetSuite HTTP Request activity. Because the Integration Service connection already stores your account’s base URL and generates the Authorization header automatically, passing the full https://<ACCOUNT_ID>-sb1.suitetalk.api.netsuite.com host in Scenario 1 causes an OAuth signature mismatch, which is why you got the 400 INVALID_LOGIN error.

In Scenario 2, authentication went through fine, and the 404 “No API found at that URL for the given token and credentials” happens for two reasons:

First, NetSuite’s SuiteTalk REST API does not have a /services/rest/query/v1/savedsearch endpoint. Under /services/rest/query/v1/, NetSuite only exposes /suiteql (which takes a POST request) and /dataset. If you want to query records over REST, switch to POST on /services/rest/query/v1/suiteql with the header Prefer: transient and a JSON body like {“q”: “SELECT id, tranid FROM transaction”}. If you specifically need to run an existing Saved Search, NetSuite only exposes those through a custom RESTlet (/app/site/hosting/restlet.nl?script=…&deploy=…) or SOAP Web Services.

Second, NetSuite also returns that exact 404 message if the role tied to your connection is missing the REST Web Services permission (and SuiteAnalytics Workbook if using SuiteQL). Double-check in NetSuite under Setup > Company > Enable Features > SuiteCloud that REST Web Services is enabled, and make sure that permission is assigned to your role under Setup > Users/Roles > Manage Roles.

Hope this helps!