Setup NetSuite Token Based (TBA) Authentication
Overview
The following instructions detail how to configure Token Based Authentication with the Administrator role in an account. This can be used for various external integrations with ICS Payroll, includingĀ Payroll REST Integration.
NetSuite's token-based authentication (TBA) is a standard OAuth implementation. Full instructions for using TBA, are available from the NetSuite Help Centre:Ā
For sample libraries and services that support TBA/OAuth, see:
Instructions
- Login as anĀ Administrator
- Go toĀ Setup > Company >Ā Enable Features
- UnderĀ SuiteCloud, checkĀ Token-Based Authentication
- ClickĀ I AgreeĀ in popup
- ClickĀ Save
- Select/create aĀ User / Employee Ā that the integration will function under
- Go to:Ā Setup > Integration > Manage Integrations >Ā NewĀ and set the following fields
- NameĀ = ICS Payroll Integration
- UnderĀ Authentication, mark theĀ TOKEN-BASED AUTHENTICATIONĀ checkbox
- ClickĀ Save
- Record the displayedĀ Consumer KeyĀ andĀ Consumer SecretĀ in a safe place
- Log into NetSuite as theĀ UserĀ (the one from step #3)
- On theĀ Home screen, from theĀ SettingsĀ portlet, selectĀ Manage Access Tokens
- ClickĀ New My Access Token
- Select theĀ IntegrationĀ you created earlier (e.g.Ā ICS Payroll Integration),Ā from theĀ Application NameĀ field
- ClickĀ Save
- Record the displayedĀ Token IDĀ andToken SecretĀ in a safe place
- Input the recorded Consumer Key, Consumer Secret, Token ID and Token Secret into the application you are integrating.
Obtaining a Token programmatically
Aternatively, it's possible to obtain (issue and get) a token by calling a special endpoint with user credentials. For full details see NetSuite's Help Article:Ā Issue Token and Revoke Token REST Services for Token-Based Authentication