I'm trying to set the REST API, primarily so automated services on a separate server can merge data with other products we use, and for basic automation such as creating new projects or importing data.
I'm having a hard time just simply getting it to connect. I get a "Invalid login attempt" message, telling me to check the Login Audit Trail, which has nothing helpful. Here's how I've got my configuration working:
- I have SuiteAnalytics Workbook enabled
- I have an Integration just titled "Test"
- I'm using Token-based Authentication, with "TBA: Issuetoken Endpoint" enabled
- Nothing else is enabled
- I have an Access Token assigned to this called "REST API"
- I did write down the token ID and secret, as well as the application credentials
- I have a dedicated API user
- This user is set up with a custom role, just simply called "REST API", and for now is also set up as an administrator
- The role is configured for web services only and for 2FA to be not required
- For Setup Permissions, I have the following set to Full:
- Access Token Management
- Log in using Access Tokens
- OAuth 2.0 Authorized Applications Management (I don't intend to use this but I figured I'd add it just in case)
- REST Web Services
- SOAP Web Services
- SuiteScript
- User Access Tokens
- The documentation says to use "SuiteAnalytics Workbook" in the Setup Permissions, but it isn't available in the dropdown list.
This is the command I try running from the server. IDs have been deliberately censored:
curl --location --request GET '#####.suitetalk.api.netsuite.com/services/rest/record/v1/metadata-catalog/customer?oauth_consumer_key=#####&oauth_token=#####&oauth_signature_method=HMAC-SHA256&oauth_timestamp=###&oauth_nonce=###&oauth_version=1.0&oauth_callback=https%3A%2F%2Fnumbers.culverco.com&oauth_signature=#####' --header 'Accept: application/schema+json' --header 'Cookie: NS_ROUTING_VERSION=LAGGING'
What am I doing wrong here?