NetSuite v2 (Beta) connector prerequisites in Jitterbit Studio
Introduction
Certain prerequisites must be met to use the NetSuite v2 (Beta) connector, as detailed below. Which prerequisites apply depends on the authentication type you use to connect: OAuth 2.0 Authorization Code Grant or OAuth 2.0 Client Credentials.
Note
This connector is currently in beta. To provide feedback, contact the Jitterbit Product Team.
Enable REST web services
Regardless of authentication type, REST web services must be enabled on your NetSuite account before configuring a NetSuite v2 (Beta) connection. The NetSuite v2 (Beta) connector connects to NetSuite using SuiteTalk REST Web Services, rather than the SOAP web services used by the NetSuite connector.
On the Enable Features screen, go to the SuiteCloud tab. Under the SuiteTalk (Web Services) section, select REST Web Services, then click Save. The role used to connect must also have the REST Web Services permission assigned.
The connection's Account ID field is also required for both authentication types. From NetSuite's top menu bar, navigate to Setup > Integration > Web Services Preferences to find your NetSuite account ID.
Grant File Cabinet access
To use the Manage Files and Folders activity, the role used to connect must have the Documents and Files permission assigned, unless using the Administrator role. For more information, see Oracle's File Cabinet documentation.
Configure OAuth 2.0 Authorization Code Grant (3LO)
The OAuth 2.0 Authorization Code Grant authentication type uses 3-legged OAuth 2.0 (3LO). 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:
-
In addition to REST web services, ensure OAuth 2.0 is enabled on your NetSuite account. On the Enable Features screen's SuiteCloud tab, under the Manage Authentication section, select OAuth 2.0, then click Save. The role used to connect must also have the Log in Using OAuth 2.0 Access Token permission assigned.
Note
To use OAuth 2.0 with the Execute RESTlet activity, also select Client SuiteScript and Server SuiteScript under the SuiteScript section on the same screen.
-
Create a NetSuite integration record for use with OAuth 2.0, selecting Authorization Code Grant as the authentication option.
-
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.
-
Generate a PKCE code verifier and code challenge
Generate a PKCE (Proof Key for Code Exchange) code verifier and code challenge pair. NetSuite requires PKCE using the SHA-256 (S256) method for the authorization code grant:
-
Generate a code verifier. It is a cryptographically random, base64url-encoded string between 43 and 128 characters (no padding, no
+or/characters). For example, using a terminal:$bytes = New-Object byte[] 32; [Security.Cryptography.RNGCryptoServiceProvider]::Create().GetBytes($bytes); [Convert]::ToBase64String($bytes).TrimEnd('=').Replace('+','-').Replace('/','_')openssl rand -base64 32 | tr -d '=' | tr '+/' '-_' -
Derive the code challenge from the code verifier by computing its SHA-256 hash, then base64url-encoding the result (no padding):
$sha256 = [Security.Cryptography.SHA256]::Create(); $hash = $sha256.ComputeHash([Text.Encoding]::ASCII.GetBytes("<your_code_verifier>")); [Convert]::ToBase64String($hash).TrimEnd('=').Replace('+','-').Replace('/','_')echo -n "<your_code_verifier>" | openssl dgst -binary -sha256 | openssl base64 | tr -d '=' | tr '+/' '-_'
Retain both values for app registration configuration.
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.
- The PKCE code verifier and code challenge pair generated above.
- Your NetSuite account ID, or the first subdomain of your NetSuite URL. For example,
-
In the app registration's configuration, ensure that the NetSuite v2 (Beta) connector is selected. Enter values for the Name, Description, Client ID, and Client Secret.
-
Enter the required scope(s) for the activities you plan to use, for example
rest_webservicesfor the Create, Upsert, Read, Delete, Query, and Get Job Status activities. The Query and RESTlet activities additionally require therestletsscope. -
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.Important
If
<accountID>contains non-numeric characters, such as a sandbox account ID (1234567_SB1), ensure they are lowercase and replace any underscores (_) with hyphens (-) in the URL (for example,1234567-sb1). This also applies to the Authentication URL set above. -
Go to Advanced options.
In the Authentication request tab, create these key-value pairs under Parameters:
Key Value Send in response_typecodeRequest URL code_challenge_methodS256Request URL promptlogin consentRequest URL code_challengeYour generated PKCE code challenge Request URL -
In the Token request tab, create these key-value pairs under Parameters:
Key Value Send in AuthorizationBasic <base64-encoded Client ID:Client Secret>Request Header grant_typeauthorization_codeRequest Body code_verifierYour generated PKCE code verifier Request Body The
Authorizationvalue is the wordBasicfollowed by a space and the base64-encoded string<Client ID>:<Client Secret>. -
In the Refresh request tab, create these key-value pairs under Parameters:
Key Value Send in AuthorizationBasic <base64-encoded Client ID:Client Secret>Request Header grant_typerefresh_tokenRequest URL Use the same
Authorizationvalue as in the token request above.
After the private application is registered on the App Registrations page, the connection can use it when you select OAuth 2.0 Authorization Code Grant as the authentication type and click Log-in in the NetSuite v2 (Beta) connection.
Configure OAuth 2.0 Client Credentials
The OAuth 2.0 Client Credentials authentication type uses a JWT bearer client credentials grant (machine-to-machine, with no user login) to authenticate. To use this authentication type:
-
In addition to REST web services, ensure OAuth 2.0 is enabled on your NetSuite account. On the Enable Features screen's SuiteCloud tab, under the Manage Authentication section, select OAuth 2.0, then click Save. The role used to connect must also have the Log in Using OAuth 2.0 Access Token permission assigned. You must have the OAuth 2.0 Authorized Applications Management permission, or be an administrator, to complete the remaining steps.
Note
To use OAuth 2.0 with the Execute RESTlet activity, also select Client SuiteScript and Server SuiteScript under the SuiteScript section on the same screen.
-
Create a NetSuite integration record:

- Navigate to Setup > Integration > Manage Integrations > New.
- Enter a name for your application in the Name field. Optionally, enter a Description and a Note.
- Select Enabled in the State field.
- On the Authentication tab, select Client Credentials (Machine to Machine) Grant. If you want only this authentication type active for the application, clear Authorization Code Grant.
-
Under Scope, select REST Web Services. If the integration requires access to RESTlets, such as when using the Execute RESTlet activity or the Query activity, also select RESTlets.

-
Click Save, then copy the consumer key and consumer secret displayed. The consumer key is used as the connection's Client ID field.
-
Install OpenSSL if it is not already installed on your computer, then generate a public/private key pair. The connector supports RSA keys and EC (elliptic curve) keys. Use one of these options:
-
RSA key pair: This command generates a 4096-bit private key (
key.pem) and self-signed certificate (cert.pem) using SHA-256:openssl req -new -x509 -newkey rsa:4096 -keyout key.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt rsa_pss_saltlen:64 -out cert.pem -nodes -days 365 -
EC key pair: These commands generate a private key (
key.pem) and self-signed certificate (cert.pem). Use the first command for ES256 (curveprime256v1) or the second command for ES512 (curvesecp521r1):openssl req -new -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -pkeyopt ec_param_enc:named_curve -nodes -days 365 -out cert.pem -keyout key.pemopenssl req -new -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp521r1 -pkeyopt ec_param_enc:named_curve -nodes -days 365 -out cert.pem -keyout key.pem
Important
NetSuite rejects RSA keys shorter than 3072 bits with the error
Provided x509 certificate has an invalid bit length. Refer to NetSuite's Certificate Conditions for additional information on valid settings for certificates. In some environments, the command can fail because of an issue with the OpenSSL configuration on your computer. If this happens, create an OpenSSL configuration file (a.cnffile) and add the-configoption to the command to point to it (for example,-config openssl.cnf). For details on the configuration file format, see the OpenSSL documentation. -
-
Register the certificate to obtain a certificate ID:
-
In the NetSuite portal, navigate to Setup > Integration > Manage Authentication > OAuth 2.0 Client Credentials (M2M) Setup.

-
Click Create New.
- In the Create a New Client Credentials Mapping window, select the entity, role, and integration application (created above) to map to the certificate.
-
Upload the public part of the certificate generated above (
cert.pem).
-
Click Save, then copy the certificate ID.
A new row is added to the list on the OAuth 2.0 Client Credentials (M2M) Setup page, containing a generated certificate ID value along with data imported from the certificate. A maximum of 5 active certificates are allowed per integration record; revoked or expired certificates don't count toward this limit.
-
-
Enter the values obtained above in the NetSuite v2 (Beta) connection:
- Enter the consumer key from the integration record in the connection's Client ID field.
- Enter the certificate ID obtained above in the connection's Certificate ID field.
- Open the generated private key file (
key.pem), copy its entire contents (starting with-----BEGIN PRIVATE KEY-----), and paste them in the connection's Private Key field.
-
Enter the scope(s) in the connection's Scope field. Use the scopes that you selected on the integration record and that the activities you plan to use require, for example
rest_webservicesfor the Create, Upsert, Read, Delete, Query, and Get Job Status activities. The Query and RESTlet activities additionally require therestletsscope. -
Enter the number of seconds that the JWT assertion remains valid in the connection's Expiration Time (Seconds) field, then click Test to verify the connection and Save to save it.