# Connect to NetSuite REST on Workato

The NetSuite REST connector supports the following OAuth 2.0 authentication types:

Select the authentication type based on your use case. Use client credentials for backend integrations. Use authorization code grant when actions require user-level access.

# Prerequisites

Ensure you have the following to connect to NetSuite in Workato:

  • The privilege to create connections in Workato.
  • Access to a NetSuite Admin account.
  • An understanding of the required NetSuite permissions.

# Create an integration record in NetSuite

Complete the following steps to create a new integration record. The integration record represents an app, platform, or tool you plan to integrate with NetSuite.

1

Go to Setup > Integration > Manage Integrations > New.

Go to Setup > Integration > Manage Integrations > NewGo to Setup > Integration > Manage Integrations > New

2

Provide a name for the integration record in the Name field.

3

Select the authentication flow based on your use case:

  • Select Client credentials (machine to machine) grant to use client credentials (machine-to-machine).
  • Select Authorization code grant to use user-based authentication.

You can enable one or both authentication methods depending on your integration requirements.

4

Select the following scopes:

  • RESTlets
  • REST Web Services
  • SuiteAnalytics Connect

Create an integration record in NetSuiteCreate an integration record in NetSuite

5

Click Save.

6

Copy the Consumer key / Client ID and Consumer secret / Client secret and store them securely.

  • Client credentials authentication requires an EC private key and certificate.
  • Authorization code grant requires a client ID and client secret configured in a custom OAuth profile.

Use the Client ID for client credentials authentication. Use the Client ID and Client secret for authorization code grant.

Copy the client credentialsCopy the client credentials

# Create a custom OAuth profile in Workato

Authorization code grant requires a custom OAuth profile with a valid client ID and client secret.

Complete the following steps to create a custom OAuth profile:

1

Go to Tools > Custom OAuth profiles in Workato.

2

Click + New custom profile.

3

Select NetSuite REST in the Application field.

4

Enter a name for the custom OAuth profile in the Name field.

5

Copy the Client ID and Client secret from the Create an integration record in NetSuite step.

Create a custom OAuth profileCreate a custom OAuth profile

6

Paste the Client ID and Client secret into their respective fields.

7

Click Save.

Ensure your integration record in NetSuite supports authorization code grant and includes the required OAuth scopes.

Use the following redirect URL when configuring the custom OAuth profile in Workato:

  • https://www.workato.com/oauth/callback

# Create key and certificate files

CLIENT CREDENTIALS ONLY

This step applies only to client credentials (machine-to-machine) authentication. Skip this step if you use authorization code grant.

Complete the following steps to generate key and certificate files:

1

Open a new terminal window and run the following command to list available elliptic curves and algorithms:

openssl ecparam -list_curves
2

Generate a private key using the prime256v1 elliptic curve:

openssl ecparam -name prime256v1 -genkey -noout -out private-key.pem
3

Generate the corresponding public key from the private key:

openssl ec -in private-key.pem -pubout -out public-key.pem
4

Self-sign the private key and generate a PEM certificate:

openssl req -new -x509 -key private-key.pem -out cert.pem -days 365

# Create a machine-to-machine certificate in NetSuite

CLIENT CREDENTIALS ONLY

This step applies only to client credentials authentication.

Complete the following steps to create a machine-to-machine certificate in NetSuite:

1

Go to Setup > Integration > OAuth 2.0 Client Credentials (M2M) Setup.

2

Click Create New. The Create a New Client Credentials Mapping dialog appears.

3

Configure the following fields:

  • Entity
  • Select the entity that uses the client credentials. Refer to our NetSuite SOAP connector documentation to learn how to set up an integration user.
  • Role
  • Choose the role that defines the permissions for the entity. Ensure the selected role has the necessary permissions for the integration. Refer to our NetSuite SOAP connector documentation to learn how to create an integration role.
  • Application
  • Select the integration record you created in the Create an integration record step.
  • Certificate
  • Upload the certificate you created in the Create key and certificate files step. The file should be saved on your computer as cert.pem.

CONFIGURATION FOR RECORD SEARCH

You must configure the following prerequisites in NetSuite to use the Search records action:

  • Your account must have the SuiteAnalytics Workbook feature enabled.
  • Your role must have the SuiteAnalytics Workbook (View) permission.

Refer to the NetSuite Prerequisites and Setup for REST Web Services (opens new window) guide for more information about the features and permissions required for REST Web Services.

Create a new client credentials mappingCreate a new client credentials mapping

4

Click Save.

5

Copy the Certificate ID and store it in a secure location. Workato requires this value to establish the NetSuite REST connection.

Copy the Certificate IDCopy the Certificate ID

# Configure the Workato NetSuite REST connector

Select the authentication type based on your setup:

# Client credentials (machine-to-machine)

Complete the following steps to establish a connection using client credentials:

1

Enter a name for your NetSuite connection in the Connection name field.

Connection fieldsConnect to NetSuite REST using client credentials

2

Enter the folder or project where you plan to store your NetSuite connection in the Location field.

3

Select Client credentials as the Authentication type.

4

Enter your Account ID.

Sign in to NetSuite as an Administrator and go to Setup > Company > Company Information to find your Account ID.

You can also find it at the beginning of the NetSuite URL. For example, if the URL is https://1234567.app.netsuite.com/, your Account ID is 1234567.

SANDBOX ACCOUNT ID FORMAT

You must replace underscores (_) with a hyphen (-) and capitalize letters if you are using a sandbox account. For example, 1234567_sb1 must be updated to 1234567-SB1.

5

Enter the client ID you saved from the Create an integration record in NetSuite step into the Client ID field.

6

Enter the private key from the Create key and certificate files step into the EC Private Key field. Ensure the key is in PEM format and has a length of 256, 384, or 521 bits.

To extract the key, open the private-key.pem file and copy the text, starting from -----BEGIN EC PRIVATE KEY----- and ending with -----END EC PRIVATE KEY-----.

7

Enter the certificate ID from the Create a machine-to-machine certificate in NetSuite step into the Certificate ID field.

8

Optional. Click Advanced settings > OAuth 2.0 scopes and select a value.

  • Select OAuth 2.0 scopes and add them along with REST Web Services to define the minimum scope required for a NetSuite REST connection. You must enable the selected scopes in the corresponding integration record.

Connection fieldsOptional OAuth 2.0 scope settings

9

Click Connect.

# Authorization code grant (user-based authentication)

Complete the following steps to establish a connection using authorization code grant:

1

Enter a name for your NetSuite connection in the Connection name field.

Connection fieldsConnect to NetSuite REST using authorization code grant

2

Enter the folder or project where you plan to store your NetSuite connection in the Location field.

3

Select Authorization code grant as the Authentication type.

4

Enter your Account ID.

Sign in to NetSuite as an Administrator and go to Setup > Company > Company Information to find your Account ID.

You can also find it at the beginning of the NetSuite URL. For example, if the URL is https://1234567.app.netsuite.com/, your Account ID is 1234567.

SANDBOX ACCOUNT ID FORMAT

You must replace underscores (_) with a hyphen (-) and capitalize letters if you are using a sandbox account. For example, 1234567_sb1 must be updated to 1234567-SB1.

5

Optional. Expand Advanced settings and configure OAuth 2.0 scopes and the NetSuite account timezone.

6

Select your custom OAuth profile in the Custom OAuth profile field.

7

Click Connect.

8

Sign in to NetSuite and authorize access when prompted.


Last updated: 4/2/2026, 2:48:37 PM