> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/integrations/erp-3pl-and-inventory/netsuite/connect.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Connect NetSuite

Connect NetSuite to Purple Dot for pre-order automation.

Background: [How ERP and inventory integrations work](https://docs.getpurpledot.com/integrations/erp-3pl-and-inventory/how-erp-and-inventory-integrations-work.md#purchase-orders-and-waitlists).

## Before you start

* You have a NetSuite administrator account, to enable features, create roles, and set up the integration.
* Find your NetSuite **Account ID**. It's in your NetSuite login URL: if you sign in at `https://123456-sb1.app.netsuite.com`, your Account ID is `123456-sb1`. You can also find it at **Setup** > **Company** > **Company Information**, on the **Company URLs** tab. Sandbox accounts include a suffix such as `-sb1` or `-sb2`.

## Steps

1. In NetSuite, go to **Setup** > **Company** > **Enable Features**. On the **SuiteCloud** tab, turn on **REST Web Services** (under **SuiteTalk (Web Services)**) and **OAuth 2.0** (under **Manage Authentication**), accepting the SuiteCloud Terms of Service if asked. Select **Save**.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-663266de6d1ace9952f1ba81674756fb2ad7c5ce%2Fnetsuite-setup-1.png?alt=media" alt="NetSuite SuiteCloud features for REST Web Services and OAuth 2.0"><figcaption></figcaption></figure>
2. On the **Analytics** tab, turn on **SuiteAnalytics Workbook** and select **Save**.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-d23d408c33e882d49b7a683c16fb1f1b2c1fd4b9%2Fnetsuite-setup-2.png?alt=media" alt="NetSuite SuiteAnalytics Workbook feature"><figcaption></figcaption></figure>
3. Go to **Setup** > **Users/Roles** > **Manage Roles** > **New** and create a role for Purple Dot, for example `Purple Dot Integration`, with the permissions in [integration role permissions](https://docs.getpurpledot.com/integrations/erp-3pl-and-inventory/netsuite/data-and-limits.md#integration-role-permissions). Leave **Web Services Only Role** and **Administrator** unchecked, and select **Save**.
4. Go to **Lists** > **Employees** > **Employees** > **New** and create a dedicated integration user, for example `purpledot-integration@yourcompany.com`. On the **Access** tab, check **Give Access**, set a password (you need it for the one-time authorization), assign only the role from step 3 under **Roles**, and select **Save**.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-d1104347d9853ea2b946763c3381cbb1550a18b2%2Fnetsuite-setup-7.png?alt=media" alt="NetSuite integration user access and role"><figcaption></figcaption></figure>
5. Go to **Setup** > **Integration** > **Manage Integrations** > **New**. Enter a **Name** such as `Purple Dot` and set **State** to **Enabled**.
6. On the **Authentication** tab, under **OAuth 2.0**, turn on **Authorization Code Grant**, **Client Credentials (Machine to Machine) Grant** and **Public Client** (Purple Dot doesn't need a client secret). Under **Scope**, turn on **REST Web Services**.
7. Add this **Redirect URI**, copied exactly, character for character, and select **Save**:

   ```
   https://www.purpledotprice.com/merchant-portal/connections/netsuite/callback
   ```

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-283e61cc8051b909939b6eded603e1e55c620866%2Fnetsuite-setup-8.png?alt=media" alt="NetSuite integration authentication and callback URL"><figcaption></figcaption></figure>
8. Copy the **Client ID** NetSuite shows. You can't view it again later.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-e11d9a03aeba3e29639c171889ba008d0a2f7049%2Fnetsuite-setup-9.png?alt=media" alt="NetSuite Client ID with credentials masked"><figcaption></figcaption></figure>
9. In the Merchant Portal, go to **Settings** > **Integrations**. Under **ERP**, select **Connect** on the **NetSuite** card.
10. Enter your **Account ID** and the **Client ID** from step 8. If your Account ID has a sandbox suffix, turn on **Use sandbox account**. Select **Connect**. Purple Dot prepares your connection, which usually takes a few seconds.

    <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-6bbf9225cab51aabce3b4207bc40292c7cd7cb38%2Fnetsuite-setup-10.png?alt=media" alt="Purple Dot NetSuite connection form"><figcaption></figcaption></figure>
11. Select **Finish set-up** and sign in to NetSuite as the integration user from step 4. On the consent screen, select **Choose Another Role**, choose the role from step 3 (not Administrator) and select **Allow**.
12. Go to **Settings** > **Pre-order Automation** to complete the onboarding process. You can choose which locations and purchase orders to include.

## Verify

After you authorize, you're returned to Purple Dot and NetSuite appears under your live integrations.

## Troubleshooting

* [The NetSuite connection is failing](https://docs.getpurpledot.com/integrations/erp-3pl-and-inventory/netsuite/connection-fails.md)
* [My integration is not syncing](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/integration-is-not-syncing.md)
* [Get more help](https://docs.getpurpledot.com/troubleshooting/get-more-help.md)

## Related

* **Concept:** [How ERP and inventory integrations work](https://docs.getpurpledot.com/integrations/erp-3pl-and-inventory/how-erp-and-inventory-integrations-work.md#purchase-orders-and-waitlists)
* **Look up:** [NetSuite data and limits](https://docs.getpurpledot.com/integrations/erp-3pl-and-inventory/netsuite/data-and-limits.md)
* **Fix it:** [My integration is not syncing](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/integration-is-not-syncing.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getpurpledot.com/integrations/erp-3pl-and-inventory/netsuite/connect.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
