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

# NetSuite

## Prerequisites

Zenskar uses token-based authentication (TBA) for connecting with a NetSuite account. You must enable a few features in NetSuite before attempting to connect Zenskar with NetSuite:

1. On the NetSuite dashboard, go to **Setup** > **Company** > **Enable Features**.
2. On the horizontal menu, go to **SuiteCloud**. Now go to the **SuiteTalk (Web Services)** subsection and select **REST WEB SERVICES**.

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/d9dd9ba-zenskar-netsuite-1.png" />

3. Go to the **Manage Authentication** subsection and select **TOKEN-BASED AUTHENTICATION**.

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/121bca4-zenskar-netsuite-2.png" />

4. Save the changes.
5. Create a new integration which will handle all requests from Zenskar. For creating a new integration, go to **Setup** > **Integration** > **Manage Integrations** > **New**.
6. Give a suitable name to integration and leave the state as enabled. Now set the authentication settings, as shown below.

<Image align="center" className="border" border={true} src="https://files.readme.io/a6a86e6-zenskar-netsuite-3.png" />

7. Save the integration. After saving, you would be provided the consumer key and consumer secret for the integration. Please note this.
8. In the next step, we will issue an access token to a user which is already added to the client’s NetSuite account. Before issuing the access token, please ensure the user has all the necessary permissions to use Rest Web Services. More details about the user roles on Netsuite can be found here.
9. For issuing the access token, from the NetSuite homepage scroll down and in the bottom left corner you can find Settings. Go to **Settings** > **Manage Access Tokens**. Now choose the integration that was created in the previous setup and appropriate token name. Once done, you would be provided with the Token Id and Token Secret. Please note them as well.
10. Clients also need to note the NetSuite account id and company URL  which could be found inside the **Setup** > **Company** > **Company Information**. Account ID will be visible on this page. Go to the **Company URLs** sub tab to get the company URL. Please note the company URL corresponding to **SUITETALK (SOAP AND REST WEB SERVICES)**.

## Integrate NetSuite with Zenskar

### Option 1: use Zenskar's accounting system to generate double-entry journal entries

You may use Zenskar's accounting system to generate double-entry journal entries. These [journal entries can be synced with NetSuite](https://www.zenskar.com/docs/third-party-integration-netsuite#option-1-use-zenskars-accounting-system-to-generate-double-entry-journal-entries) using Zenskar's NetSuite connector.

<Image align="center" width="50% " src="https://files.readme.io/effe4f8-image.png" />

<br />

### Option 2: use the accounting system of the ERP software

You may use the accounting system of the ERP software to generate journal entries. [Zenksar can send data related to invoices and payments (optional) to NetSuite](https://www.zenskar.com/docs/third-party-integration-netsuite#option-2-use-the-accounting-system-of-the-erp-software) as input.

<Image align="center" width="50% " src="https://files.readme.io/8129417-image.png" />

<br />

### Set up Zenskar's NetSuite connector

1. Go to **Settings** > **Connectors** and click on **Connect** button for the NetSuite connector card.
2. Enter the following details:

<Image align="center" className="border" width="50% " border={true} src="https://files.readme.io/8cb322c-zenskar-netsuite-4.png" />

### Configure Customer Sync

1. Once NetSuite gets connected, click on the **Manage** button to configure the customers sync.
2. Turn on the Customer Sync on the configuration page

<Image align="center" className="border" border={true} src="https://files.readme.io/18b77ff-zenskar-netsuite-5.png" />

3. Click on Next. On this page the client needs to select the Company subsidiary in which all the customers from Zenskar will be created.

<Image align="center" className="border" border={true} src="https://files.readme.io/e401fb6-zenskar-netsuite-6.png" />

4. Click on Configure and the customer sync is enabled for NetSuite.
