AuthScheme
Specifies the authentication method to use when connecting to NetSuite.
Possible Values
Basic, Token, OAuth, OAuthJWTData Type
string
Default Value
"Token"
Remarks
Supported values are:
- Token: Uses Token-Based Authentication (TBA) with manually created tokens inside of NetSuite.
- OAuthJWT: Uses OAuth 2.0 with JSON Web Tokens (JWT) for server-to-server authentication.
- OAuth: Uses standard OAuth 2.0 authentication, with dynamically generated tokens. The OAuth refresh token has a fixed lifetime of seven days, after which manual reauthentication is required. For long-running connections, consider using Token or OAuthJWT instead.
- Basic (Deprecated): Uses a username and password to authenticate. This method is no longer supported for NetSuite accounts using API version 2020 or later.
The available authentication options depend on the Schema being used:
- SuiteTalk: Supports Token authentication only. Legacy API versions may support Basic.
- SuiteQL: Supports Token, OAuth, and OAuthJWT.