Prerequisite: Setting up Token-Based Authentication in NetSuite
Definite uses Token-Based Authentication (TBA) to securely connect to your NetSuite account. You’ll need to gather the following credentials from NetSuite:- Account ID
- Consumer Key and Consumer Secret
- Token ID and Token Secret
Step 1: Enable Token-Based Authentication
Step 2: Find your Account ID
Find your Account ID in the information displayed.
If you’re using a Sandbox account, the Account ID will have a
_SB suffix (e.g., 1234567_SB).Step 3: Create an Integration Record
Step 4: Create an Access Token
Select a Role for the token. The role should have sufficient permissions to read the records you want to extract.
Add to Definite
Go to this link to add an integration. Search for NetSuite and click it to get to the creation form.
Enter the credentials you gathered from the steps above:
| Field | Description |
|---|---|
| Account ID | Your NetSuite Account ID (include _SB suffix for sandbox) |
| Token Key | The Token ID from Step 4 |
| Token Secret | The Token Secret from Step 4 |
| Consumer Key | The Consumer Key from Step 3 |
| Consumer Secret | The Consumer Secret from Step 3 |
Troubleshooting
Invalid Login Attempt
If you receive an “Invalid Login Attempt” error, verify:- Your Account ID is correct (check for
_SBsuffix if using sandbox) - Token-Based Authentication is enabled in NetSuite
- The user associated with the token has the correct role and permissions
- All credential values were copied correctly without extra spaces
Permission Errors
Ensure the role assigned to your access token has the necessary permissions:- Lists > Records permission for the record types you want to sync
- Reports permission if syncing report data
- SuiteAnalytics Connect permission for full data access

