- Token-Based Authentication: Consumer Key, Consumer Secret, Token ID and Token Secret
- OAuth 2.0 Client Credentials (Latest): NetSuite Account ID and Certificate ID
Pre-requisites
Before setting up the integration, make sure you meet the following requirements:- You possess Administrator permissions in your company’s NetSuite instance or have access permissions shared with you by another user.
Enable Features
Do this before installing the bundle. Navigate to Setup > Company > Enable Features and turn on:1
Token-Based Authentication and OAuth 2.0
On the SuiteCloud subtab, under Manage Authentication.



2
REST Web Services
On the SuiteCloud subtab, under SuiteTalk (Web Services).

3
Client SuiteScript and Server SuiteScript
On the SuiteCloud subtab, under SuiteScript.

Install the Bundle
1
First Step
In your NetSuite account, navigate to Customization > SuiteBundler > Search & Install Bundles > List or search for Search & Install Bundles in the Search bar.

2
Second Step
Search for the Commenda Technologies Inc bundle or bundle ID 565042 using the Keyword box. 

3
Third Step
Select the bundle and click Install. 

4
Fourth Step
The bundle will begin installing and you maybe directed to the Installed Bundles page. It may take up to 5 minutes to install. 

Create a new integration to generate the Consumer Key and Consumer Secret
1
First Step
Navigate to Setup > Integration > Manage Integrations > New to create a new integration. 

2
Second Step
Create an integration with the below details:
- Any value can be populated in the NAME field
- The CONCURRENCY LIMIT should be left unpopulated
- Ensure the REST WEB SERVICES box is checked under SCOPE
- The TOKEN-BASED AUTHENTICATION and TBA AUTHORIZATION FLOW boxes should be checked
-
Fill in the CALLBACK URL and REDIRECT URI with a value of [ROOTFI CALLBACK URL](ROOTFI CALLBACK URL)
3
Third Step
Save the integration to generate the Consumer Key and Consumer Secret. This will only be shown once, so store them in a secure place.

4
Fourth Step
The bundle will begin installing and you maybe directed to the Installed Bundles page. It may take up to 5 minutes to install. 

Assign a user to the role
1
First Step
Navigate to Setup > Users/Roles > Manage Users or search Manage Users in the Search bar.

2
Second Step
In the Manage Users page, either select a user to assign the Role to.

3
Third Step
In the user’s employee record, click Edit and go to the Access tab. In your Access tab, go to Roles and select RootFi Role Permission.

Create an access token to get your Token ID and Secret
1
First Step
In your Setup tab, go to User Roles > Access Tokens > New or search New Access Token in the search bar to begin creating a New Access Token.

2
Second Step
Select the Application Name (name of the integration you created in Step 2), User and Role (RootFi Role Permission) and click Save to generate a new access token.

3
Third Step
Copy the Token ID and Token Secret provided. This will only be shown once, so store them in a secure place.

Finding your NetSuite Account ID
1
First Step
Log into your NetSuite portal
2
Second Step
Copy the subdomain of the URL at the top of your browser and enter it within the Connect Link. In the below screenshot it is 
8635772-sb1. 
Enter credentials in the Connect flow
- Consumer Key: Confirmation screen after creating the integration (Step 2)
- Consumer Secret: Confirmation screen after creating the integration (Step 2)
- Token ID: Confirmation screen after creating your Access Token (Step 3)
- Token Secret: Confirmation screen after creating your Access Token (Step 3)
OAuth 2.0 Client Credentials (Latest)
To connect with OAuth 2.0 Client Credentials, you need:- NetSuite Account ID
- Certificate ID
Enable Features
Do this before installing the bundle. Navigate to Setup > Company > Enable Features and turn on:1
OAuth 2.0
On the SuiteCloud subtab, under Manage Authentication.



2
REST Web Services
On the SuiteCloud subtab, under SuiteTalk (Web Services).

3
Client SuiteScript and Server SuiteScript
On the SuiteCloud subtab, under SuiteScript.

Install or update the bundle
1
Open Search & Install Bundles
Navigate to Customization > SuiteBundler > Search & Install Bundles > List or search for Search & Install Bundles in the Search bar.

2
Find the bundle
Search for the Commenda Technologies Inc bundle or bundle ID 565042 using the Keyword box. 

3
Install
Select the bundle and click Install. 

4
Wait for the install
The bundle will begin installing and you may be directed to the Installed Bundles page. It may take up to 5 minutes to install.
5
Update the bundle
If the bundle is already installed, click the gear icon next to Commenda Technologies Inc and select Update.

Find your NetSuite Account ID
Copy the subdomain of your NetSuite URL. In the below screenshot it is8635772-sb1.

Assign the Commenda role to a user
1
Open the user
Navigate to Setup > Users/Roles > Manage Users, select the user and click Edit.
2
Add the role
On the Access tab, under Roles, add Commenda Technologies, Inc. and click Save.
Create the client credentials mapping
1
Download the Commenda certificate
In the Connect flow, enter your NetSuite Account ID and click Download Commenda certificate. Keep the Connect flow open.
2
Open OAuth 2.0 Client Credentials Setup
In NetSuite, navigate to Setup > Integration > Manage Authentication > OAuth 2.0 Client Credentials (M2M) Setup and click Create New.

3
Create the mapping
- Entity: the user you assigned the role to
- Role: Commenda Technologies, Inc.
- Application: Commenda OAuth 2.0 M2M
- Certificate: the certificate you downloaded

4
Copy the Certificate ID
Copy the Certificate ID of the new mapping.

Enter details in the Connect flow
Back in the Connect flow, paste the Certificate ID and click Continue.
If the certificate on the mapping is replaced or revoked, its Certificate ID stops working. Reconnect with the new Certificate ID.