Setting Up OAuth 2.0 Authentication for SuiteScript
The following features must be enabled in your account:
-
Server SuiteScript – This feature allows you to attach server scripts to records.
-
OAuth 2.0 – This feature allows you to perform integration requests if it is a NetSuite endpoint.
For more information, see Enabling Features.
If you are making requests to a NetSuite account, the target account must have an integration record and a public key uploaded into your account.
-
To set up a new integration, go to Setup > Integration > Manage Integrations > New.
-
To upload a public key, go to Setup > Integration > OAuth 2.0 Client Credentials (M2M) Setup.
For more information, see Create Integration Records for Applications to Use OAuth 2.0 and OAuth 2.0 Client Credentials Setup.