For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect NetSuite

Connecting NetSuite to StackAI (Token-Based Authentication)

This guide walks through setting up a NetSuite Token-Based Authentication (TBA) connection so StackAI can read and/or write data in your NetSuite account.

Note: Our most popular NetSuite action is Custom SuiteQL, shown below:

Connect NetSuite setup

By the end of this guide you'll have collected five values to paste into StackAI to establish the connection:

Connect NetSuite setup

Step 1: Enable the required features

Go to Setup -> Company -> Enable Features:

Connect NetSuite setup

Make sure you have SuiteAnalytics Workbook, Token-Based Authentication, and REST Web Services all enabled for your account:

Connect NetSuite setup

Step 2: Find your Account ID

Go to Setup -> Company -> Company Information:

Connect NetSuite setup

Jot down your Account ID shown here:

Connect NetSuite setup

Step 3: Register StackAI as an Integration Record

Go to Set up -> Integration -> Manage Integrations -> New

Connect NetSuite setup

Give it a name, and check "TOKEN-BASED AUTHENTICATION". Uncheck anything in the OAuth 2.0 section - this integration used TBA only.

Connect NetSuite setup

Hit Save -> Then jot down the consumer key and consumer secret (it is only shown once):

Connect NetSuite setup

Step 4: Create a role with the right permissions

Go to Setup -> Users/Roles -> Manage Roles -> New

Connect NetSuite setup

Create a new role:

  • Enter a name

  • Select "All" for Accessible subsidaries

  • Select "WEB SERVICES ONLY ROLE" in the Authentication section. (You can put anything for center type since this is a web services only role)

Connect NetSuite setup

Set the following permissions for the integration to work:

  • SuiteAnalytics Workbook (Reports sub-tab)

  • Log in using Access Tokens (Setup sub-tab)

  • REST Web Services (Setup sub-tab)

Connect NetSuite setup
Connect NetSuite setup

Step 5: Assign the role to a user

Go to Lists -> Employees -> Employees -> Search

Connect NetSuite setup

Search for the user you want to assign the role to:

Connect NetSuite setup

Click Edit:

Connect NetSuite setup
  • Check "Give Access"

  • Add the role you created in Step 4

  • Hit Save

Connect NetSuite setup

Important Note! You need to make sure the user who is logged into netsuite UI has "Access Token Management" permission for the next step. This can be assigned to the user as a global permission, or it can be added to the administrator role and the user could be assigned the administrator role in the screenshot above.

Step 6: Generate an Access Token

Go to Setup -> Users/Roles -> Access Tokens -> New

Connect NetSuite setup

Fill in the Application name from Step 3, User from Step 5, and Role from Step 4. Choose a name for the token and hit Save.

Connect NetSuite setup

Jot down the Token ID and Token Secret (they are only shown once)

Connect NetSuite setup

Step 7: Create the connection in StackAI

Enter all fields collected in the StackAI UI:

Connect NetSuite setup

Connection fields and action reference

See NetSuite for the current connector fields and supported actions.

Was this helpful?