Netsuite API
The Netsuite connector in OnLink used Token based authentication to connect to Netsuite.
Connection Setup
Following details are required to establish the connection.
Consumer Key and Secret:
In the NetSuite, Create an integration record for the app at Setup > Integration > Manage Integrations. Enable Token-based Authentication on the integration record. For help creating an integration record, see Creating an Integration Record.
Get the consumer key and secret generated when enabling Token-based Authentication on the integration record. If you don't have the credentials, generate new ones for apps created in your NetSuite account. If the record was bundled, the credentials are included, and only the app owner can regenerate them. For details, see Regenerating a Consumer Key and Secret.
Pre-requisite Steps:
Enable the Token-based Authentication feature. For details, see Enable the Token-based Authentication Feature.
Create a role that allows token-based authentication login. For details, see Set Up Token-based Authentication Roles.
Assign a user to a role with token-based authentication permission. For details, see Assign Users to Token-based Authentication Roles.
Token ID and Token Secret:
Users assigned a customized role that has the Access Token Management permission can create, assign, and manage a token for other users (except tokens for an Administrator role) in the company. For example, they can assign a token to those users who are assigned a role with only the Log in using Access Tokens permission. Administrators can create tokens for themselves, but not for other Administrators. TBA tokens do not expire. However, it is a good practice to revoke a token after some time, and create a new one.
Tokens you create with Token-based Authentication in your NetSuite production account aren’t copied to your Release Preview or sandbox accounts. To test this feature in Release Preview or a sandbox, you’ll need to create new tokens in that account. Every time you refresh the sandbox, you’ll need to create new tokens there.
To create and assign a TBA token:
Log in as a user with the Access Token Management permission.
Go to Setup > Users/Roles > Access Tokens.
On the Access Tokens page, click New Access Token.
The Access token page appears.
On the Access Token page:
Select the Application Name.
Select the User.
Select the Role.
The Token Name is already populated by default with a concatenation of Application Name, User, and Role. Enter your own name for this token, if preferred.
Click Save.
The confirmation page displays the Token ID and Token Secret.
Warning
For security reasons, the only time the Token ID and Token Secret values are displayed is on the confirmation page. After you leave this page, these values cannot be retrieved from the system. If you lose or forget these credentials, you will need to create a new token and obtain new values.
Treat these values as you would a password. Never share these credentials with unauthorized individuals and never send them by email.