Connect to NetSuite with 3-legged OAuth 2.0 (3LO) using the HTTP v2 connector in Jitterbit Studio
Introduction
This page descrbes how to set up 3-legged OAuth 2.0 (3LO) with the HTTP v2 connector to connect to NetSuite. You first create and configure a NetSuite integration record and then configure an app registration in the Management Console.
Note
Agent version 10.83 / 11.21 or later is required to use 3-legged OAuth 2.0 authentication.
Create and configure a NetSuite integration record
Follow these steps to create and configure a NetSuite integration record:
-
Ensure REST web services and OAuth 2.0 are enabled on your NetSuite account.
-
Create a NetSuite integration record for use with OAuth 2.0.
-
Set the Redirect URI to one of the following URLs (depending on your organization's region):
Region URL APAC https://apps.apac-southeast.jitterbit.com/design-studio/api/v1/oauth/authcodeEMEA https://apps.emea-west.jitterbit.com/design-studio/api/v1/oauth/authcodeNA https://apps.na-east.jitterbit.com/design-studio/api/v1/oauth/authcode -
Retain the client ID and client secret required for a valid app registration when the integration record is created. The credentials are shown once and must be reset if lost or forgotten.
-
Configure an app registration in the Management Console
Follow these steps to configure required values for a Management Console private application app registration:
-
Gather the required information:
- Your NetSuite account ID, or the first subdomain of your NetSuite URL. For example,
1234567. - Client ID and client secret obtained after NetSuite integration record configuration.
- Your NetSuite account ID, or the first subdomain of your NetSuite URL. For example,
-
In the app registration's configuration, ensure that the HTTP v2 connector is selected. Enter values for the Name, Description, Client ID, and Client Secret.
-
Enter
rest_webservicesas the scope. -
Set the app's Authentication URL as
https://<accountID>.app.netsuite.com/app/login/oauth2/authorize.nlwhere<accountID>is your NetSuite account ID. -
Set the app's Access token URL and Refresh token URL as
https://<accountID>.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/tokenwhere<accountID>is your NetSuite account ID. -
Go to Advanced options.
In the Authentication request tab under Parameters, enter
response_typeas the Key andcodeas the Value. Then select Request URL from the Send in menu. -
In the Token request tab under Parameters, enter
grant_typeas the Key and enterauthorization_codeas the Value. Then select Request URL from the Send in menu. -
In the Refresh request tab under Parameters, enter
grant_typeas the Key and enterrefresh_tokenas the Value. Then select Request URL from the Send in menu.
Once the private application is registered on the App Registrations page, it is available to be selected in the OAuth Application menu in the HTTP v2 connection.