# Finding connector credentials for NetSuite (services)

{% hint style="info" %}
Information on this page is for our legacy NetSuite connector. For NetSuite SuiteTalk please see the main [NetSuite](/product-documentation/patchworks-services/service-systems/supported-service-systems/netsuite-service-connector.md) section.
{% endhint %}

## Finding connector credentials for Netsuite

Authentication Type: oAuth 1

### Required credentials <a href="#required-credentials" id="required-credentials"></a>

For Patchworks to communicate with your Netsuite instance via [connectors](broken://pages/YccGsdraIByBIkGreC7f), the following API details are required for **oAuth 1** authentication:

| ​[Oauth Token ID​](#oauth-token-id-and-oauth-token-secret)     | Generated in Netsuite via **users/roles**.                                                                                     |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| ​[Oauth Token Secret​](#oauth-token-id-and-oauth-token-secret) | Generated in Netsuite via **users/roles**.                                                                                     |
| ​[Account ID​](#account-id)                                    | Visible in Netsuite via **company information**.                                                                               |
| ​[Script ID​](#script-id)                                      | Visible in Netsuite via **scripts**.                                                                                           |
| ​[Deploy ID​](#deploy-id)                                      | Visible in Netsuite via **script deployments**.                                                                                |
| ​[Consumer Key​](#consumer-key-and-consumer-secret)            | Generated as part of your initial Patchworks integration and does not change unless new credentials are generated in Netsuite. |
| ​[Consumer Secret​](#consumer-key-and-consumer-secret)         | Generated as part of your initial Patchworks integration and does not change unless new credentials are generated in Netsuite. |

## Obtaining credentials

The credentials listed above are needed so that Patchworks can access the required data in **Netsuite**. To obtain these details, follow the steps below.

### OAuth token id & OAuth token secret

**Step 1**\
Log into **Netsuite**.

**Step 2** \
Navigate to **setup** > **users/roles** > **access tokens** > **new**:

![](/files/zqQrUskDE4BpEhRWnGvf)

...the **access token** page is displayed:\
\
![](/files/n2zJZyJXDED5jpvXvaC5)

**Step 2** \
Click in the **application name** field and select **tapestry by patchworks**:\
\
![](/files/qNYAx4uA9wMt1QA4MKh4)<br>

**Step 3**\
Click in the **user** field and select your preferred method to find the user to authenticate:\
\
![](/files/ZPhMI3Qbj6EP8TpGPDhG)

...then find and add the required user:

![](/files/DIYfHeeERK7uKaI55Jy8)

**Step 4**\
Click in the **role** field and assign the **patchworks integration role**:

![](/files/R9SEqVoN2oFgTLp1Vf1Z)

**Step 5**\
Click the **save** button - a **token id** and **token secret** are displayed.

**Step 6**\
Add these details to your password manager, ready for use in your Patchworks setup.

{% hint style="warning" %}
These details cannot be retrieved once you close the page, so make sure you have them stored safely. If you do lose them, repeat the steps above to generate another access token.
{% endhint %}

### Account ID

**Step 1**\
Navigate to **company** > **company information**:

![](/files/iH8NjPMm6GExc7J8otk2)

**Step 2**\
Look for the **account id** field and add this information to your password manager:

<figure><img src="/files/qdjpVFuTG7A6BEY3MgrU" alt=""><figcaption></figcaption></figure>

### Script ID

**Step 1**\
Navigate to **customization** > **scripts**:

![](/files/41QDQGibdrcP98NYwwf5)

**Step 2**\
Search (CTRL+F) for the following:

```
Patchworks Tapestry : Connector
```

**Step 3**\
Look for the **internal id** column and add this value (126 in our example) to your password manager.

<figure><img src="/files/PUDn3azkkyFYFkF9Iz5U" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you don't see an **internal id** column, it's likely that showing internal ids is not enabled for your Netsuite instance - the following Netsuite help page may be useful: [Exposing Internal Ids & Field IDs](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_164905582140.html).
{% endhint %}

### Deploy ID

**Step 1**\
Navigate to **customization** > **scripts**:

![](/files/41QDQGibdrcP98NYwwf5)

**Step 2**\
From the top of the page, select **view deployments**:

<div align="left"><figure><img src="/files/7v7m75EnQYiHBztXS9A6" alt="" width="160"><figcaption></figcaption></figure></div>

**Step 3**\
Choose a script to **view**:

<figure><img src="/files/NuCO2dgyS7UolQw0XeXv" alt=""><figcaption></figcaption></figure>

**Step 4**\
Look for an **external URL** - you'll see the **deploy id** at the end of this URL (in the example below, it's 1):

<figure><img src="/files/Cy1WBuJTWLpNjY99lslD" alt=""><figcaption></figcaption></figure>

### Consumer Key & Consumer Secret

These values will have been generated when your Patchworks integration was first implemented, so you should already have the required details.

If you don't have these credentials, a Netsuite administrator can generate a new set - please see Netsuite's [Regenerating a Consumer Key and Secret](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4395597766.html) help page for more information.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/patchworks-services/service-systems/supported-service-systems/netsuite-service-connector/legacy-service-connector-setup-for-netsuite/finding-connector-credentials-for-netsuite-services.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
