Integrate Anrok & NetSuite with SuiteTax

Introduction

This guide outlines the process for linking your NetSuite account with Anrok using SuiteTax. This will allow you to automatically synchronize transactions and update sales tax to your NetSuite invoices.

Important CleanShot_2024-05-03_at_20.22.03_2x-removebg-preview.png

The Anrok SuiteApp requires the installation of SuiteTax, the newest version of NetSuite's tax engine that all accounts will eventually transition to. If you're currently using LegacyTax, we recommend switching your account over. The NetSuite team can help you understand this impact and whether the switch will affect any additional features or services you're using currently.

 


 

Step 1

Enable NetSuite features

To begin the integration process between Anrok and NetSuite, you must first turn on the Server SuiteScript, Rest Web Service, and OAuth 2.0 features on your NetSuite account. These features will ensure that your Anrok account can communicate with your NetSuite account.

Try enabling NetSuite features in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Company > Enable Features.
  2. Navigate to the SuiteCloud tab, then complete the following:
    • Under SuiteScript, click the checkbox  CleanShot 2023-07-31 at 11.51.24@2x.png  next to Server SuiteScript.
    • Under SuiteTalk (Web Services), click the checkbox  CleanShot 2023-07-31 at 11.51.24@2x.png  next to Rest Web Service.
    • Under Manage Authentication, click the checkbox  CleanShot 2023-07-31 at 11.51.24@2x.png  next to OAuth 2.0.
  3. When you are finished, click Save.

 


 

Step 2

Install and enable NetSuite SuiteTax

Before installing and enabling the Anrok SuiteApp as a tax engine, you must first install and enable SuiteTax (the newest version of NetSuite's tax engine)

Try installing and enabling NetSuite SuiteTax in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Company > Enable Features.
  2. Navigate to the Tax tab, then under Related SuiteApps, complete the following:
    • Select SuiteTax Engine, then click Install.
    • Select SuiteTax Data Record, then click Install.
    • Select SuiteTax Report, then click Install.
  3. Go to Customization > Plug-ins > Manage Plug-ins.
  4. Under Tax Calculation, select the checkbox  CleanShot 2023-07-31 at 11.51.24@2x.png  next to SuiteTax Engine.
  5. When finished click, click Save.

 


 

Step 3

Install and enable Anrok SuiteTax

Once you've installed SuiteTax, you can now install the Anrok SuiteApp and enable Anrok SuiteTax. This ensures Anrok can be used as a tax engine for your NetSuite transactions.

Try installing and enabling Anrok SuiteTax in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to SuiteApps.
  2. In the search bar, enter Anrok.
  3. Select Anrok, then click Install.
  4. Go to Customization > Plug-ins > Manage Plug-ins.
  5. Under Tax Calculation, select the checkbox next to Anrok SuiteTax.
  6. When you are finished, click Save.

 


 

Step 4

Create Sales Tax Payable and Receivable accounts

SuiteTax requires a tax agency nexus when adding sales tax to a transaction. To create a tax agency nexus, you must first create sales tax payable and receivable accounts to assign the nexus to.

Note CleanShot_2024-04-30_at_16.01.40_2x-removebg-preview.png

Tax collected on transactions will always appear in the payable account.


Try creating Sales Tax Payable and Receivable accounts in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Lists > Accounting > Accounts.
  2. Click New, then enter the following information:
    • Name — enter Sales Tax Payable United States.
    • Number — enter a number that aligns with your numbering system.
    • Type — select Other Current Liability.
    • Subsidiaries — select all that apply.
  3. Click the Drop-down button  CleanShot 2023-07-31 at 11.58.26@2x.png  next to Save, select Save & New, then enter the following information:
    • Name — enter Sales Tax Receivable United States.
    • Number — enter a number that aligns with your numbering system.
    • Type — select Other Current Asset.
    • Subsidiaries — select all that apply.
  4. When you are finished, click Save.

 


 

Step 5

Create a tax agency nexus

SuiteTax requires a tax agency nexus when adding sales tax to a transaction. To ensure that Anrok maps to the correct tax agency nexus, you are required to create a United States tax agency nexus and provide it to Anrok during the integration process.

Note CleanShot_2024-04-30_at_16.01.40_2x-removebg-preview.png

In NetSuite, a nexus is a tax jurisdiction where you have a business or taxable presence in. In NetSuite, it is usually defined at the country level. This type of entity is available when the Advanced Taxes feature is enabled to allow users to manage and calculate taxes for different jurisdictions within the same NetSuite account.


Try creating a Tax Agency USA nexus in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Tax > Nexuses.
  2. Click New Nexus, then enter the following information:
    • Country — select United States.
    • State/Province/County — leave this blank.
    • Parent Nexus —  leave this blank.
    • Description — enter United States.
  3. Next to Tax Agency, click the Plus button  CleanShot 2023-07-31 at 11.55.14@2x.png, then enter the following information:
    • Type — select Company (if not already selected).
    • Company Name — enter Tax Agency USA.
    • Primary Subsidiary — select Parent Company.
  4. When you are finished, click Save.

 


 

Step 6

Configure a tax type

SuiteTax requires a tax type when adding sales tax to a transaction. To ensure that Anrok maps to the correct tax type, you must create a United States tax type and provide it to Anrok during the integration process.

Try configuring a tax type in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Tax > Tax Types.
  2. Click New Tax Type, then enter the following information:
    • Country — select United States.
    • Name — enter US_STATE_SALES.
    • Nexus — select United States.
    • Payables Account — select Sales Tax Payable United States.
    • Receivables Account — select Sales Tax Expense United States.
  3. When you are finished, click Save.
  4. Locate the US_STATE_SALES tax type you've created, then click Edit.
  5. In the URL, record the taxation type’s ID. It will look like the green text in the following example:app.netsuite.com/app/setup/taxtype.nl?id=19&e=T.

 


 

Step 7

Configure a tax code

SuiteTax requires a tax code when adding sales tax to a transaction. To ensure that Anrok maps to the correct tax code, you are required to create a United States tax code and provide it to Anrok during the integration process.

Try configuring a tax code in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Tax > Tax Codes.
  2. Click New Tax Code, then enter the following information:
    • Name — enter US_STATE_SALES.
    • Type — select US_STATE_SALES.
  3. When you are finished, click Save.
  4. Locate the US_STATE_SALES tax code you've created, then click Edit.
  5. In the URL, record the tax code’s ID. It will look like the green text in the following example: app.netsuite.com/app/common/item/taxitem.nl?id=12036&e=T.

 


 

Step 8

Generate an Anrok certificate

The first step of integrating with NetSuite will be connecting directly to your account within Anrok. During this process, you must align your accounting time zone and generate an Anrok certificate to map into Netsuite.

Try generating an Anrok certificate in the demo above ☝️

  1. In the Anrok app CleanShot 2023-07-20 at 12.02.21@2x.png, go to Data sources. Take me there!
  2. Select Integrate system, then under Accounting time zoneselect the time zone that matches your NetSuite account (or select UTC if you don't know which time zone to select).
  3. Under Data source, select NetSuite, then click Generate Certificate and save the certificate file locally.

Important CleanShot_2024-05-03_at_20.22.03_2x-removebg-preview.png

After generating the certificate, do not close this page. The certificate requires an ongoing connection to the Anrok server when completing the NetSuite OAuth integration.

 


 

Step 9

Create Integration Records for Applications

Once you've generated an Anrok certificate, you will need to create an integration records for application. This will allow Anrok to connect to the Customer Key/Client ID generated to complete the integration.

Try creating Integration Records for Applications in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Integration > Manage integrations > New.
  2. Under Integration, complete the following information:
    • Name — enter Anrok client credentials oauth application.
    • Under Token-based Authentication, deselect all checkboxes.
    • Under Oauth 2.0, click the checkbox  CleanShot 2023-07-31 at 11.51.24@2x.png  next to Client Credential (Machine to Machine) Grant. Deselect any other checkboxes.
    • Under Scope, click the checkboxes  CleanShot 2023-07-31 at 11.51.24@2x.png  next to Restlets, Rest Web Services, and SuiteAnalytics Connect.
  3. When you are finished, click Save
  4. Under Client Credentials, record the Consumer Key/Client ID.

Important CleanShot_2024-05-03_at_20.22.03_2x-removebg-preview.png

After closing this page, you will not be able to view the Customer Key/Client ID again. To access a new Customer Key/Client ID, click Reset Credentials.

 


 

Step 10

Create a mapping for the machine-to-machine client credential

After you've created an integration records for application, you will next need to create a mapping for the machine-to-machine client credential. This will ensure Anrok is able to recieve important transaction and product updates from NetSuite.

Try creating a mapping for the machine-to-machine client credential in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Integration > OAuth 2.0 Client Credentials (M2M) Setup.
  2. Click Create New, then complete the following:
    • Entity — select the appropriate entity.
    • Role — select the appropriate role.
    • Applicationselect Anrok client credentials oauth application.
    • Certificate — choose the certificate generated in Anrok.
  3. When you are finished, click Save.
  4. Record the Certificate ID.

 


 

Step 11

Connect to NetSuite

Once you've create a mapping for the machine-to-machine client credential, you can then input the information required to connect Anrok to NetSuite.

Try connecting with NetSuite in the demo above ☝️

  1. In the Anrok app CleanShot 2023-07-20 at 12.02.21@2x.png, resume on Data sources. Take me there!
  2. Enter your Tax code ID, Taxation type ID, Company account ID, Consumer Key/Client ID, and Certificate ID. Your Company account ID can be located in your NetSuite accounts URL as the subdomain. It will look like the green text in the following example: https://gstarv1234567.app.netsuite.comIf your Company account ID has a hyphen character -, you must replace that hyphen with an underscore _ character.
  3. When you are finished, click Connect.

 


 

Step 12

Add your NetSuite products as product IDs

In Anrok, your NetSuite products will be called product IDsProduct ID
They describe the specific product or service that was sold to your customer. Product IDs are passed to Anrok from your billing system as the product(s) you are including on the invoice.
CleanShot 2023-08-17 at 11.17.48@2x.png
Each product ID you sell must be mapped to a corresponding tax configuration in Anrok, which signals what taxability ruleset to apply to the product.
. These product IDs are the key drivers for calculating taxability. It's important that you add your current and previous NetSuite products into Anrok. See What are product IDs?

Try adding your NetSuite products in the demo above ☝️

  1. Under New products detected, select a corresponding Product type and Tax category for each product detected. See What tax configuration should I select?
  2. If you'd like to assign a Product type and Tax category to multiple products at once, click the checkbox  anrok_checkbox.png  next to each product, then select Batch assign.
  3. When you are finished, scroll down and click Continue

 


 

Step 13

Import your NetSuite transactions

Now that you've assigned all of your product IDs, you can begin importing your historical transaction from NetSuite into Anrok.

Try importing your NetSuite transactions in the demo above ☝️

  1. Under Select transactions to import, select one of the following options:
    • Import all past transactions — all transactions will be imported into Anrok. This will result in a complete picture of your economic nexus exposure.
    • Import transactions from a specific date — some past transactions will not be imported into Anrok. This may result in an incomplete picture of your economic nexus exposure to date.
    • Continue without importing past transactions — none of your historical transactions will be imported into Anrok. This may result in an incomplete picture of your economic nexus exposure.
  2. Select Import transactions (or Mark as finished depending on your previous selection).
  3. When your transactions have finished importing, select Mark complete.

 


 

Step 14

Generate an Anrok API key

To enable NetSuite and Anrok to communicate effectively and send live transaction data, you must create an Anrok API secret in NetSuite. As part of the setup, they will request your Anrok API key.

Try generating an Anrok API key in the demo above ☝️

  1. In the Anrok app CleanShot 2023-07-20 at 12.02.21@2x.png, go to Data sources. Take me there!
  2. Under Integration sources, click the option menu button anrok_option_menu.png next to NetSuite, then select Manage Anrok API key.
  3. Select Generate Anrok API key, then copy  anrok_copy.png  the API key.
  4. When you are finished, click Done.

 


 

Step 15

Create an Anrok API secret

NetSuite requires an Anrok API secret to authenticate its communication with Anrok and send live transaction data. This prevents users outside of your NetSuite instance from adding unauthorized transactions to your Anrok account.

Try creating an Anrok API secret in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Company > API Secrets.
  2. Click Create New, then under the Details tab, enter the following information:
    • Name — enter Anrok API Token.
    • ID — enter _anrok_api_token.
    • Password — paste your Anrok API key.
  3. Navigate to the Restrictions tab, then complete the following:
    • Select the checkbox  CleanShot 2023-07-31 at 11.51.24@2x.png  next to Allow For All Scripts.
    • Select the checkbox  CleanShot 2023-07-31 at 11.51.24@2x.png  next to Allow For All Domain.
  4. When you are finished, click Save.

 


 

Step 16

Assign SuiteTax to each nexus

SuiteTax requires you to assign a tax engine to every nexus configured on your NetSuite account. This ensures NetSuite knows which tax engine to use for each nexus. During this process, the United States nexus should be assigned to Anrok SuiteTax. All other existing nexuses should be assigned to SuiteTax.

Try assigning SuiteTax to each nexus in the demo above ☝️

  1. In the NetSuite app CleanShot 2023-07-28 at 16.20.15@2x.png, go to Setup > Company > Subsidiaries.
  2. Click Edit next to a subsidiary that needs sales tax.
  3. Navigate to the Tax Registrations tab, then add a new row with the following information:
    • Country — select United States.
    • Nexus — select United States.
    • Tax Engine — select Anrok SuiteTax.
    • Effective From — select today’s date.
  4. Click Add. If there are any additional tax registrations in the table for United States, edit each with the following information:
    • Tax Engine — select SuiteTax Engine.
    • Valid Until — select today’s date.
  5. When you are finished, click Save.

 

Note CleanShot_2024-04-30_at_16.01.40_2x-removebg-preview.png

Before you begin creating and editing invoices, you must ensure your NetSuite account has been properly configured for tax calculation. Check out how to configure your NetSuite account.

Can't find what you're looking for?

Submit a request to our customer care team!