Oracle NetSuite
NetSuite is a cloud business software suite, including accounting, ERP, CRM and e-commerce products.
Note: Your account and user needs to be activated (have access to) for REST Webservices in order use the NetSuite API.

Enabling OAuth2 in NetSuite

As an admin, do the following:
1. Setup > Company > Enable Features
2. Click on the tab "SuiteCloud":
3. Scroll down to "SuiteTalk (WebServices)" section and check the "Rest Webservices" box. Next, under the section "Authentication", check the Oauth 2.0 box.
4. Go to Setup > Integration > Manage Integrations > New
Next, Add a name that represents your app as well as add the Locoia redirect url URL, provided by an implementation consultant.
Next, click "Save" ad the bottom left of the screen and you will be redirected to a new page where you find a client_id and client_secret on the bottom of the page. This is need to configure the integration.
Note: This is the only time you will see both ids, mentioned above, for security reasons.

Raw OAuth2 Configuration

NetSuite allows Oauth2 for configuration including the account ID in all request. This needs to be added manually in authentication requests as well as the endpoint for regular requests.

OAuth2 parameters

To get started, for for calls against authentication as well as regular endpoints, you need to add the account_id of your NetSuite account. You can find this in your URL when your work inside NetSuite or under Setup > Company > Company Information in the bottom right "ACCOUNT ID" (here you need to replace _ by -).
  • Authorization URL: https://{{ account_id }}.app.netsuite.com/app/login/oauth2/authorize.nl
  • Token / Refresh URL: https://{{ account_id }}.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token
  • Scope: restwebservices restlets

Base domain

https://{{ account_id }}.suitetalk.api.netsuite.com/services/rest/record/v1/

Entities explained

Invoice

All relevant fields on the invoice can be found here.

SOAP API

Last modified 1mo ago
Copy link
On this page
Helpful Links
Enabling OAuth2 in NetSuite
Raw OAuth2 Configuration
Entities explained
SOAP API