The API (Application Programming Interface) provides automated communication between connected systems.
Overview
To gather the credentials for NetSuite Token-based Authentication, follow these steps:
1: Create a new Integration
An Integration record identifies the application in NetSuite’s system.
- In NetSuite, go to Setup > Integration > Manage Integrations, or search for page:manage integrations.
- Click New.
- Enter a Name, for example "Dropstream".
- Under Authentication:
- Under Token-based Authentication:
- Make sure Token-based Authentication is enabled.
- Disable TBA: Authorization Flow.
- Under OAuth 2.0:
- Disable Authorization Code Grant.
- Enable Client Credentials (Machine to Machine) Grant.
- Enable REST Web Services.
- Under Token-based Authentication:
- Click Save.
- At the bottom of the page, retain the Consumer Key and Consumer Secret. (These are only shown once. If you need to regenerate them, you can Edit the existing Integration and Reset Credentials.)
2: Enable Web Service features
- In NetSuite, go to Setup > Company > Enable Features.
- Click SuiteCloud.
- Under SuiteTalk (Web Services):
- Enable SOAP Web Services.
- Enable REST Web Services.
- Under Manage Authentication:
- Enable SuiteSignOn.
- Enable Token Based Authentication.
- Enable OAuth 2.0.
- Click Save.
3: Create Token Role and set permissions
- In NetSuite, go to Setup > Users/Roles > Manage Roles > New Role.
- Enter a Name, for example "Dropstream Token Role".
- If the NetSuite account uses the Multi-Subsidiary Customer feature, then under Subsidiary Restrictions — Accessible Subsidiaries, select either All or Active, and enable Allow Cross-Subsidiary Record Viewing, as applicable to grant access to those orders.
- Click Permissions.
- Add the following permissions at the given access level.
- Under Transactions:
- Find Transaction (Full)
- Fulfill Orders (Full)
- Item Fulfillment (Full)
- Sales Order (Full)
- Under Reports:
- SuiteAnalytics Workbook (Edit)
- Under Lists:
- Accounts (Full)
- Customers (Full)
- Items (Full)
- Locations (Full)
- Perform Search (Full)
- Under Setup:
- Access Token Management (Full)
- REST Web Services (Full)
- SOAP Web Services (Full)
- User Access Tokens (Full)
- Under Transactions:
- If you will use Purchase Orders integration, also add these permissions:
- Under Transactions:
- Item Receipt (Full)
- Purchase Order (Full)
- Under Transactions:
- If Inventory Adjustments will be enabled:
- Under Transactions:
- Adjust Inventory (Full)
- Under Transactions:
- Click Save.
Note: Inventory Adjustments for NetSuite must be enabled by DropStream staff. Email support@getdropstream.com if you will enable inventory sync for your NetSuite connection.
4: Assign Token Role to an Employee
- In NetSuite, go to Lists > Employees.
- Locate the name of the Employee account that will be associated with all API transactions (the API user). Edit the Employee.
- Click Access.
- Under Roles, use the dropdown to select the name of the Token Role you created in section 3.
- Click Add, then Save.
5: Generate Access Token
- Go to Setup > Users/Roles > Access Tokens.
- Click New Access Token.
- For Application Name, select the Integration name from step 2.
- Click Save.
- Retain the Token ID and Token secret.
6: Gather Account ID
- In NetSuite, go to Setup > Integration > SOAP Web Service Preferences.
- Retain the value under Account ID.
Review credentials
When the above configuration steps are complete, confirm that you have gathered the required credentials:
Next: Enable API Access
Comments
Please sign in to leave a comment.