> ## Documentation Index
> Fetch the complete documentation index at: https://prowork.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect NetSuite to Prowork

> Set up token-based NetSuite access for Saved Search and Sending Data in Prowork, or configure OAuth 2.0 for SuiteQL.

NetSuite is Oracle's cloud ERP suite, covering accounting, inventory, CRM, and order management for companies that often run across multiple locations and subsidiaries. Connecting NetSuite to Prowork lets finance and ops teams pull saved search results into the same flows used for reconciliation and reporting, and push sales orders, purchase orders, and other records back to NetSuite, without manual exports or engineering work.

There are three ways to authorize NetSuite in Prowork, and not every step uses the same one:

* **Token-based authentication** covers **Pulling Data via Saved Search** and **Sending Data**. These two share the same integration record and credentials, you only need to set this up once.
* **OAuth 2.0** covers **Pulling Data via SuiteQL** only. This uses a separate integration record from the token-based one above.
* **Client Credentials with Private Key JWT** is for connecting to NetSuite's REST API through Prowork's API steps (**Pull from an API**, **Send to an API**, **Enrich with API**). It doesn't require re-authorizing every 7 days. See [Authorizing with Client Credentials (Private Key JWT)](#authorizing-with-client-credentials-private-key-jwt).

> [!TIP]
>
> A single NetSuite integration record can have both Token-Based Authentication and OAuth 2.0 enabled at once, they're independent checkboxes on the same record. If you're setting up all three, you can reuse one integration record by enabling both sets of checkboxes on it. If you're only setting up one method from scratch, just check the boxes for the one you need.

## Creating a NetSuite role

The permissions on the role applied to your integration determine which saved searches, transactions, lists, and results you'll be able to access in Prowork. **Confirm the role has access to every object you plan to use before moving on.** Missing permissions are one of the most common causes of support tickets later.

> [!NOTE]
>
> You'll also need your own NetSuite user to have permissions to create new integrations, manage access tokens, and edit roles. These are needed to generate the credentials below, separately from whatever role/permissions you're setting up for Prowork itself.

Recommended permissions, in addition to anything specific to your use case:

| Subtab | Permission Names | Prowork Recommendation |
| - | - | - |
| Lists | Accounts, Bill of Materials, Companies, Currency, Custom Record Entries, Customers, Departments, Fiscal Calendars, Inbound Shipment, Inventory Cost Template, Inventory Status, Item Templates, Items, Locations, Manufacturing Cost Template, Memorized Transactions, Perform Search, Persist Search, Record Custom Field, Shipping Items, Subsidiaries, Vendors | Yes |
| Setup | Access Token Management, Custom Body Fields, Custom Entity Fields, Custom Item Fields, Custom Item Number Fields, Custom Lists, Custom Record Types, Custom Sublist, Custom Sublists, Custom Subtabs, Custom Transaction Fields, Custom Transaction Forms, Custom Transaction Types, Log in using Access Tokens, SOAP Web Services, REST Web Services | Yes |
| Transactions | Find Transaction, Invoice, Item Fulfillment, Item Receipt, Purchase Order, Sales Order, Transfer Order, Vendor Returns, Work Order, Make Journal Entry | Yes |

### Transactions

* Any specific transaction types you need (sales orders, purchase orders, transfer orders, etc.)
* `Find transaction`

### Reports

* Any specific report types you need

### Lists

* Any specific lists you need (items, locations, companies, customers, etc.)
* `Perform search`, `persist search`, and `publish search`

### Setup

* Log in using Access Tokens
* SOAP Web Services (required for **Pulling Data via Saved Search**)
* REST Web Services (required for **Pulling Data via SuiteQL** and **Sending Data**)

### Custom Records

* Any specific custom record objects you need

Make sure the **web services only** checkbox is selected on the role. This is under the **Authentication** section of the role record, not the Permissions tabs.

![NetSuite role record with Web Services Only Role checked and the Transactions/Reports/Lists/Setup/Custom Record permission tabs visible](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/netsuite-role-permissions.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=4c7e4dca6f3ba3564540db51e7d873a6)

Watch a video walkthrough of this setup:

[https://www.loom.com/embed/dfadf087ed0d4f5097e0308506be72cc](https://www.loom.com/embed/dfadf087ed0d4f5097e0308506be72cc)

## Authorizing token-based access (Pulling Data via Saved Search and Sending Data)

[Pulling Data via Saved Search](https://prowork.ai/docs/product/integration/netsuite-saved-search.md) and [Sending Data](https://prowork.ai/docs/product/integration/netsuite-sending-data.md) both use **token-based authentication** and share the exact same NetSuite integration record and credentials. You only need to do this setup once. You'll create an integration record and an access token in NetSuite, then enter the resulting credentials in Prowork.

### Creating a NetSuite integration

Follow this path in the NetSuite UI: **Setup > Integration > Manage Integrations > New**

**1. Name the integration**

Specify an integration name and ensure the status is set to **Active**.

**2. Enable token-based authentication**

Under **Authentication**, check **Token-Based Authentication**.

**3. Leave other options unchecked**

Leave `TBA: Issuetoken Endpoint` and `TBA: Authorization Flow` unchecked.

**4. Save the record**

Save the record.

![NetSuite Integration record with Token-Based Authentication enabled](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/netsuite-integration-page.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=bfe4a42dc58fa5b3fa2eb9eb5a0a1fbb)

Saving the record generates a **Consumer Key** and **Consumer Secret**. Record these immediately, since NetSuite only displays them once and they cannot be retrieved after you leave the page.

![NetSuite Client Credentials shown once after saving the integration record](https://mintcdn.com/parabola-7119dfb0/swjZGovdP0oO30Lo/images/integration/netsuite-client-credentials.png?fit=max\&auto=format\&n=swjZGovdP0oO30Lo\&q=85\&s=60049ec2ab1d68c2d4ea4225f3902942)

### Creating a new access token

Once the role, user, and integration exist, generate the access token Prowork will authenticate with.

Follow this path in the NetSuite UI: **Setup > Users/Roles > Access Tokens > New Access Token**

**1. Select the integration, user, and role**

Select the integration you created above, along with the desired user and role.

**2. Save**

Click **Save**.

The **Token ID** and **Token Secret** appear at the bottom of the page. As with the client credentials, record these immediately, since they disappear once you leave the page.

![NetSuite Token ID and Token Secret shown once after creating the access token](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/netsuite-token-id-secret.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=3ca764f8dd00b049eba60b644858c118)

### Entering credentials in Prowork

**1. Log in to Prowork**

Log in to Prowork.

**2. Add a Pull from NetSuite step**

Add a **Pull from NetSuite** step onto your canvas. You can do this by describing what you want to Prowork's chat, or by navigating to **Integrations** in the top left of your canvas and selecting **Pull from NetSuite**.

**3. Open the step**

Double-click into the step once it's on the canvas to open it.

**4. Authorize NetSuite**

Click **Authorize NetSuite** on the left side of the step window.

**5. Add a new account**

Click **Edit Accounts**, then **Add a new account**.

**6. Gather your credentials**

Gather the Account ID, Consumer Key/Secret, and Token ID/Secret from the steps above.

**7. Connect**

Enter each credential and click **Connect**.

![Connect your NetSuite account dialog for the Pull from NetSuite (Saved Search) step, showing Account ID, Consumer Key, Consumer Secret, Token ID, and Token Secret fields](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/prowork-connect-savedsearch.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=75c7a292a2c3fa9befef90c4ad8eacae)

This same authorization also covers **Send to NetSuite**. There's no separate integration record or separate authorization step for it. The only extra requirement is a role permission: make sure your role has **full access to REST Web Services** (in addition to SOAP Web Services, which Pulling Data via Saved Search requires). This is already listed in the role permissions above; if you set up the role using that list, you're covered.

![REST Web Services and SOAP Web Services listed among a NetSuite role's Setup permissions](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/netsuite-rest-soap-permissions-list.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=ead2365c0d75a7c9100646abd0f14eab)

If you're sending data, also confirm the role has sufficient permissions to create and/or update the specific objects you're sending. Set the relevant permission's access level to **Full**. For example, creating and updating sales orders requires: **Transactions > Sales Orders > Full Access**.

![Permission level dropdown on a NetSuite role, with Full selected](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/netsuite-permission-level-full.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=9f1211758f3fd958af6a5dbffad8103e)

## Authorizing Pulling Data via SuiteQL

[Pulling Data via SuiteQL](https://prowork.ai/docs/product/integration/suiteql.md) uses **OAuth 2.0 with Authorization Code Grant**. This can live on the same NetSuite integration record as the token-based setup above, or on its own, depending on what you're setting up:

* **Already have the token-based integration set up above, and want to add SuiteQL?** Go back to that same integration record (**Setup > Integration > Manage Integrations**) and additionally enable the OAuth 2.0 settings below on it.
* **Setting up SuiteQL only, from scratch?** Create a new integration record (**Setup > Integration > Manage Integrations > New**) and just check the OAuth 2.0 boxes below. You don't need Token-Based Authentication checked unless you're also using Pulling Data via Saved Search or Sending Data.

Either way, the OAuth settings themselves are the same:

**1. Enable Authorization Code Grant**

Under **OAuth 2.0**, check **Authorization Code Grant**.

**2. Set the scope**

Under **Scope**, check **REST Web Services**.

**3. Set the Redirect URI**

Set the **Redirect URI** to `https://parabola.io/api/auth/netsuite_oauth/callback`.

**4. Save**

Save to generate your **Client ID** and **Client Secret**, shown only once.

![NetSuite integration record with OAuth 2.0 Authorization Code Grant checked and REST Web Services selected as the scope](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/netsuite-oauth-send-scope.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=f0d4bd49c81e20cf6fa48d4b98478b1a)

### Connecting in Prowork

**1. Add a Pull from SuiteQL step**

Add a **Pull from SuiteQL** step to your flow.

**2. Authorize**

Click **Authorize** and enter your **Account ID**, **Client ID**, and **Client Secret**.

![Prowork "Connect your NetSuite account" OAuth form for the Pull from SuiteQL step](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/prowork-connect-suiteql.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=cf70b262592f93668ac4c81f45f51e79)

The role behind this integration determines what data is accessible. Make sure the role has at least **View** permission for the NetSuite record types you plan to query.

## Authorizing with Client Credentials (Private Key JWT)

NetSuite's OAuth 2.0 Authorization Code tokens expire after 7 days and can't be refreshed, so connections that use them need re-authorizing every week. NetSuite's **Client Credentials (Machine to Machine)** flow avoids this. Prowork signs each token request with a private key you control and gets a fresh access token on every run, with nothing for anyone to re-authorize.

Use this with Prowork's API steps pointed at NetSuite's REST API.

### Step 1: Generate a certificate and private key

Create an X.509 certificate and matching private key. NetSuite accepts certificates valid for up to 2 years. For example, with OpenSSL:

```bash theme={null}
openssl req -x509 -newkey rsa:4096 -sha256 -keyout private-key.pem -out certificate.pem -nodes -days 730
```

Keep `private-key.pem` somewhere secure. You'll paste it into Prowork in Step 4. You'll upload `certificate.pem` to NetSuite in Step 3.

### Step 2: Enable Client Credentials on your integration record

Go to **Setup > Integration > Manage Integrations** and open your integration record, or create a new one.

**Step 1**

Under **OAuth 2.0**, check **Client Credentials (Machine to Machine) Grant**.

**Step 2**

Under **Scope**, check **REST Web Services**.

**Step 3**

Save, and record the **Client ID** shown once after saving.

### Step 3: Map the certificate in NetSuite

Go to **Setup > Integration > OAuth 2.0 Client Credentials (M2M) Setup** and click **Create New**.

**Step 1**

Select the **Entity** (the user Prowork should run as), the **Role** from [Creating a NetSuite role](#creating-a-netsuite-role), and the **Application** (your integration record).

**Step 2**

Upload `certificate.pem`.

**Step 3**

Save, and record the **Certificate ID**.

### Step 4: Connect in Prowork

**Step 1**

Add a **Pull from an API**, **Send to an API**, or **Enrich with API** step and open its settings.

**Step 2**

Under **Authentication**, choose **Expiring Access Token**, then set **Authentication Method** to **Private Key JWT**.

**Step 3**

Set the **Authentication Token Request URL** to `https://<ACCOUNT_ID>.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token`, replacing `<ACCOUNT_ID>` with your account ID (for sandboxes, use the dash format, for example `1234567-sb1`).

**Step 4**

Enter your **Private Key** (the contents of `private-key.pem`), **Key ID** (the Certificate ID from Step 3), and **Client ID** (from Step 2). Set **Signing Algorithm** to `PS256` and **Scope** to `rest_webservices`.

**Step 5**

Click **Authorize**.

> [!NOTE]
>
> The connection doesn't need re-authorizing, but the certificate itself expires on the date you set in Step 1, at most 2 years out. Before then, generate a new certificate, add it in the M2M setup, and update the private key in Prowork.

For more on the Expiring Access Token form, see [Using Expiring Access Tokens in Prowork](https://prowork.ai/docs/product/integration/api.md#using-expiring-access-tokens-in-prowork).

## Sharing your NetSuite connection with teammates

You don't need every teammate to generate their own NetSuite tokens. Once one person has authorized a NetSuite connection in Prowork, that authentication can be shared with specific teammates or the whole team:

**1. Open Edit Accounts**

On the Pull from NetSuite (or Send to NetSuite) step, click **Edit Accounts**.

**2. Open sharing settings**

Find the authorization, click the three dots (**...**), then **Sharing settings**.

**3. Choose who can use it**

Share it with a specific teammate or the whole team, and choose whether they can use it or also edit it.

Flows using a shared authentication stay in sync. If the connection is re-authorized (for example, after rotating tokens in NetSuite), every flow using it picks up the refreshed credentials automatically. See [Manage personal credentials](https://prowork.ai/docs/product/integration/connecting-integration-accounts.md) for the full walkthrough on sharing authentications across your team.

If you'd rather each teammate authenticate independently (for per-person auditability on the NetSuite side), have each person create their own access token against their own NetSuite user, using the same `web services only` role from [Creating a NetSuite role](#creating-a-netsuite-role) above.

## Helpful tips

* **Token-based and OAuth 2.0 connections expire.** When one lapses, steps on that connection tell you to reconnect the account. Open the step, click **Edit accounts**, and re-enter the credentials. This is expected NetSuite behavior, not a failure in your flow. If you're connecting through Prowork's API steps and want to avoid re-authorizing, use [Client Credentials with Private Key JWT](#authorizing-with-client-credentials-private-key-jwt) instead.

## Troubleshooting authorization

**Authentication fails / connection won't authorize** *(token-based: Pulling Data via Saved Search, Sending Data)*

* Confirm the role has **Log in using Access Tokens** and **SOAP Web Services** set to Full.
* If connecting to a Sandbox account, use the Sandbox account ID and confirm it exactly matches the URL you see when logging in to NetSuite (e.g. `12345-sb1`).

> [!NOTE]
>
> For OAuth-based authorization failures (Pulling Data via SuiteQL), **Log in using Access Tokens** doesn't apply. Check the **REST Web Services** scope instead, per [Authorizing Pulling Data via SuiteQL](#authorizing-pulling-data-via-suiteql) above.

**Example: "Settings error" with a `getaddrinfo ENOTFOUND` message**

![Prowork Settings error showing a settings error for a Pull from NetSuite step](https://mintcdn.com/parabola-7119dfb0/0nraqrpqz7vDBm9K/images/integration/prowork-settings-error-enotfound.png?fit=max\&auto=format\&n=0nraqrpqz7vDBm9K\&q=85\&s=093268b53d0a1264be644005feec3fd9)

This means Prowork couldn't resolve NetSuite's API address for the Account ID entered, almost always because the Account ID is mistyped, uses the wrong casing/dash format, or is missing the sandbox suffix (e.g. entering `1234567` instead of `1234567-sb1`). Double-check the Account ID against your NetSuite URL and re-authorize.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.