# NetSuite Integration

Integrating NetSuite with Sphere enables:

* **Live tax calculation** within NetSuite invoices and credit memos via the SuiteTax plugin
* **Transaction data sync** from NetSuite into Sphere for filing and compliance

This guide walks through installing the Sphere SuiteApp, configuring tax calculation, and connecting your NetSuite account to Sphere.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FRRAiS399JpgAc2lz5U1C%2FNetsuite.png?alt=media&#x26;token=b84d6358-5864-4cee-ae9a-590ae9a2c12c" alt=""><figcaption></figcaption></figure>

***

### Prerequisites

Before installing, ensure the following features are enabled in your NetSuite account.

#### Enable SuiteCloud Features

Navigate to **Setup > Company > Enable Features**. In the **SuiteCloud** tab:

* Under **SuiteBuilder**: check **Custom Records**
* Under **SuiteScript**: check **Client SuiteScript** and **Server SuiteScript**
* Under **SuiteTalk (Web Services)**: check **REST Web Services**
* Under **Manage Authentication**: check **OAuth 2.0**

Click **Save**.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2Fl19iegBo3r6q8CURpTQm%2FScreenshot%202025-11-16%20at%201.22.17%E2%80%AFPM.png?alt=media&#x26;token=af15a864-8445-4af8-b199-1128c758c76b" alt=""><figcaption></figcaption></figure>

#### Enable SuiteTax

On the same **Enable Features** page, go to the **Tax** tab:

1. Check **SuiteTax**
2. Under **Related SuiteApps**, install:
   * **SuiteTax Engine** — click Install
   * **SuiteTax Data Records** — click Install
   * **SuiteTax Reports** — click Install
3. Check **SuiteTax Plug-in**
4. Click **Save**

> **Important:** Enabling SuiteTax is permanent and cannot be reversed. If you see a Site Builder error, follow NetSuite's guides to [disable Site Builder](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N2755498.html) and [inactivate websites](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N2898498.html) first.

***

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FFTxyWkXc9bToY9AV98AB%2FScreenshot%202025-11-16%20at%201.37.14%E2%80%AFPM.png?alt=media&#x26;token=a0368315-a69f-4d80-9b27-4aac238f6b24" alt=""><figcaption></figcaption></figure>

#### Confirm SuiteTax Setup

If your account has existing taxable transactions, NetSuite will migrate them to the SuiteTax format. After migration completes:

1. Navigate to **Setup > Tax > Confirm SuiteTax Setup** (or click the **Confirm SuiteTax Setup** button on the SuiteTax Migration page)
2. Check the **SuiteTax Setup Completed** checkbox
3. Click **Save**

> **Note:** Taxable transactions cannot be created or edited until this step is completed. This step may not appear on new accounts with no prior transactions.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FL8MfdPWkqq37yDBaqawb%2FScreenshot%20from%202026-03-16%2009-21-25.png?alt=media&#x26;token=e49b009c-6771-4c89-9076-0bb0321f6625" alt=""><figcaption></figcaption></figure>

***

### Installing the Sphere SuiteApp

Search for **SuiteApp Marketplace** in the NetSuite global search. In the marketplace, search for **Sphere Tax** and click Install.

The SuiteApp ID is `com.getsphere.spheretax`.

This installs:

* The tax calculation plugin script (`tax_calculation.js`)
* Sphere Configuration and Tax Code Mapping custom records
* A default sales tax item
* The Sphere Tax integration record

***

### Data Synchronization

To sync transaction data from NetSuite to Sphere for filing and compliance, connect your NetSuite account through the Sphere dashboard.

> **Supported transaction types:** Sphere currently syncs invoices and credit memos from NetSuite. Support for additional transaction types (cash sales, cash refunds, sales orders) is coming soon.

#### Connect NetSuite to Sphere

1. In the **Sphere dashboard**, navigate to **Settings > Integrations**
2. Select **NetSuite** and click **Connect**
3. Enter your **NetSuite Account ID** (found at Setup > Company > Company Information)
4. You will be redirected to NetSuite to authorize Sphere
5. After authorizing, you'll be redirected back to the Sphere dashboard

#### Select a Subsidiary

If your NetSuite account has multiple subsidiaries (OneWorld), you'll see a **Select Subsidiary** screen after connecting. Choose the subsidiary that represents the legal entity registered with the tax authority, then click **Continue**.

If your account has a single subsidiary, this step is handled automatically.

{% hint style="info" %}
Sphere scopes its transaction sync and tax calculations to a single subsidiary. Selecting the correct subsidiary ensures that only transactions belonging to that legal entity are imported, and that tax is calculated against the right jurisdictional registrations.
{% endhint %}

***

### Live Tax Calculation

> **Contact our team before enabling live tax calculation.** This section configures Sphere to calculate sales tax in real-time on NetSuite transactions. If you're only using Sphere for filing/compliance (data sync), you can skip this section.

#### Step 1: Create the Plugin Implementation Record

This step connects the installed script file to NetSuite's SuiteTax plugin framework. It must be done manually — this is a NetSuite platform limitation that affects all SuiteTax engine providers.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2Fe8aX3HJSGtLxMs4BfeeN%2FScreenshot%20from%202026-03-16%2010-22-30.png?alt=media&#x26;token=3ce417f9-c531-4418-be59-dd54e71fe533" alt=""><figcaption></figcaption></figure>

1. Navigate to **Customization > Plug-ins > Plug-In Implementations**
2. Click **New Plug-In Implementation**
3. For the script file, select `tax_calculation.js` from the SuiteApps folder: `SuiteApps / com.getsphere.spheretax / tax_calculation.js`
4. Click **Create Plug-In Implementation**
5. Fill in:
   * **Name**: Sphere Tax
   * **Status**: **Released** (not "Testing")
6. Verify the **Scripts** subtab shows `tax_calculation.js` in the **IMPLEMENTATION** field (should be auto-populated)
7. Click **Save**

> **Critical — Status must be "Released":** The default status is "Testing", which limits the plugin to the script owner only. All other users' transactions will silently skip tax calculation. Change to "Released" so the plugin runs for everyone.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2Fx24uUWEDEVdgD3FRdBAV%2Fimage.png?alt=media&#x26;token=3913d9af-b3eb-42c8-9df6-d32a4e669599" alt=""><figcaption></figcaption></figure>

#### Step 2: Enable the Plugin

1. Navigate to **Customization > Plug-ins > Manage Plug-ins**
2. Under **Tax Calculation**, check the box next to **Sphere Tax**
3. Uncheck **SuiteTax Engine** (NetSuite's built-in engine) if you want Sphere to handle all tax calculations
4. Click **Save**

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FcWWqnJN9tTwcaTHgvJIs%2FScreenshot%202025-11-16%20at%201.42.44%E2%80%AFPM.png?alt=media&#x26;token=a64a6a8c-8414-40c1-b3a2-3d99a2124cb7" alt=""><figcaption></figcaption></figure>

#### Step 3: Add the Sphere API Key

Once you have a Sphere API key, navigate to the **API Secrets** page by typing in API Secrets in the NetSuite search bar, or via **Setup > Company > API Secrets**. Create a new API Secret to manage you Sphere API Key securely. Enter **Sphere API Key** as the name, **\_sphere\_tax\_api\_key** as the id, and enter your API key under the password field.

<p align="center"><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2F0wswXM3gySY53jL5YAA9%2FScreenshot%20from%202026-03-12%2011-02-29.png?alt=media&#x26;token=c603aa0a-00bf-4762-b0b5-7575827d843a" alt="">              <img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2F980Sg2JEwvYwSVVFSRGg%2FScreenshot%20from%202026-03-12%2011-03-04.png?alt=media&#x26;token=b6ac4d86-da80-42ea-b788-8f38667e7316" alt=""></p>

**API Secret Restrictions**

After entering the API key value in the **Details** tab, switch to the **Restrictions** tab and configure the following:

* Check **Available to SuiteApp**
* Set **SuiteApp ID** to `com.getsphere.spheretax`
* Check **Allow for All Scripts**
* Check **Allow for All Domains**

Click **Save**.

{% hint style="warning" %}
The SuiteApp ID must match exactly — `com.getsphere.spheretax`. Without this restriction, the Sphere Tax plugin will not be able to read the API key.
{% endhint %}

#### Step 4: Create Tax Infrastructure

SuiteTax requires a nexus, tax type, and tax code to route transactions to a tax engine. These records are just connectors — Sphere handles all jurisdiction logic, tax rates, and nexus determination internally. You only need one of each.

Note the **Internal ID** of each record — you'll enter them in the Sphere Configuration record in the next step. After saving each record, the Internal ID is visible in the page URL (e.g., `id=25` in `...taxitem.nl?id=25`).

**4a. Create a Nexus**

1. Navigate to **Setup > Tax > Nexuses > New**
2. Set **Country** to "United States"
3. Click **Save** and note the **Internal ID**

> If your account already has a nexus you'd like to use, you can skip this step and note its Internal ID instead.

**4b. Create a Tax Type**

1. Navigate to **Setup > Tax > Tax Types > New**
2. Set:
   * **Country**: United States
   * **Name**: Sphere Tax
3. In the **Nexus Accounts** subtab, add a line:
   * **Nexus**: select the nexus from Step 4a
   * **Payables Account**: your tax payables GL account (e.g., Accounts Payable)
   * **Receivables Account**: your tax receivables GL account (e.g., Accounts Receivable)
4. Click **Save** and note the **Internal ID**

**4c. Create a Tax Code**

1. Navigate to **Setup > Tax > Tax Codes > New**
2. Set:
   * **Name**: Sphere Tax
   * **Tax Type**: select the tax type from Step 4b
   * **Available On**: Both
3. Click **Save** and note the **Internal ID**

#### Step 5: Configure Sphere Settings

1. Search for **Sphere Configuration** in the global search, or navigate to **Lists > Custom > Sphere Configuration**
2. Click **New Sphere Configuration**
3. Set:
   * **Payable Account** — the GL account for tax payables (auto-populated with a default)
   * **Receivable Account** — the GL account for tax receivables (auto-populated with a default)
   * **Nexus ID** — the Internal ID from Step 4a
   * **Tax Type ID** — the Internal ID from Step 4b
   * **Tax Code ID** — the Internal ID from Step 4c
4. Click **Save**

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FE9jydWa4yKT7HcrQh7gU%2Fimage.png?alt=media&#x26;token=b07591c8-3e72-4311-832e-9d8bdc503ffb" alt=""><figcaption></figcaption></figure>

#### Step 6: Assign the Tax Engine to Subsidiaries

NetSuite needs to know which subsidiaries should use Sphere for tax calculation.

* Navigate to **Setup > Company > Subsidiaries** and edit the relevant subsidiary

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FYfkd9lP8lp9xFSsgrFkB%2FScreenshot%202025-11-16%20at%205.33.08%E2%80%AFPM.png?alt=media&#x26;token=fba8dc73-7155-4b81-a5b5-4f48cfce0ca9" alt=""><figcaption></figcaption></figure>

Hit **Edit**, and navigate to the **Tax Registrations** tab. Once there:

* select **United States** as the **Country**
* select **United States** as the **Nexus**
* select **Sphere Tax** as the **Tax Engine**
* select **Today's Date** as the **Effective From**

and hit **Add.**

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FCIx666Au1TJFnYfNjPlS%2FScreenshot%202025-11-16%20at%205.30.42%E2%80%AFPM.png?alt=media&#x26;token=5eebb17c-0ae7-483a-a484-0ebfa09d7602" alt=""><figcaption></figcaption></figure>

Follow the same process for any other subsidiaries you want to use Sphere Tax for.

#### Preview Taxes

Once you've set up the Sphere SuiteTax plug-in in NetSuite, and configured your product tax codes in Sphere, you're now set up to calculate taxes on your NetSuite Invoices and Credit Notes!

Clicking **Preview Tax** on an invoice will populate the box on the right hand side with appropriate tax information.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2F3TxEU5Z9rXarvIKRzJGv%2FScreenshot%202025-11-11%20at%208.40.52%E2%80%AFPM.png?alt=media&#x26;token=0dcd695a-33cd-472e-aaff-2a7f1eb21814" alt=""><figcaption></figcaption></figure>


---

# 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://docs.getsphere.com/features/integrations/prebuilt-connectors/netsuite-integration.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.
