NetSuite Setup (OAuth 2.0)

This article walks you through configuring NetSuite so PAR OPS can authenticate using OAuth 2.0 Client Credentials (Machine to Machine). To authenticate with NetSuite, you will need to provide the following information:

  • Account ID (found in the URL when you log in to NetSuite)
  • Consumer Key/Client ID (associated with the configured Integration Record)
  • Certificate ID

To complete these steps, you must be logged in to NetSuite as an administrator.

Instructions

Step 1: Locate Your Account ID in NetSuite

  1. Log in to NetSuite. Your Account ID can be found in the URL.

Step 2: Ensure OAuth 2.0 Is Enabled in Your NetSuite Tenant

  1. Navigate to Setup > Company > Enable Features.
  2. Select the SuiteCloud tab.
  3. In the SuiteTalk (Web Services) section, select REST WEB SERVICES.
  4. In the Manage Authentication section, select the OAUTH 2.0 checkbox.
  5. Go to the SuiteCloud Terms of Service page and select I Agree if you agree to the terms and conditions.
  6. Select Save when you are done.

Step 3: Create the Integration Application

  1. From the menu bar along the top, select Setup > Integration > Manage Integrations.
  2. Select New.
  3. Configure the integration record:
    1. Set Name to PAR OPS.
    2. Ensure Client Credentials (Machine to Machine) Grant is checked.
    3. Under Scope, ensure Restlets and Rest Web Services are checked.
  4. Select Save when complete.
  5. You will be presented with a screen that shows your Client ID and Client Secret. Copy these and store them somewhere safe, such as a password manager, in case they are needed in the future.

Step 4: Create the Integration Role

  1. From the menu bar, navigate to Setup > Users/Roles > Manage Roles.
  2. Select New Role.
  3. Configure the role:
    1. In the Name field, enter Integration Role – PAR OPS.
    2. All other default options in the General and Authentication sections can remain as they are.
    3. Under Subsidiary Restrictions, check ALL under Available Subsidiaries.
  4. In the Permissions section at the bottom, select the Transactions tab and configure the following:
    • Bills – Edit level
    • Credit Memo – Create level
    • Customer Payment – Create level
    • Enter Vendor Credits – Create level
    • Find Transaction – Create level
    • Invoice – Create level
    • Make Journal Entry – Edit level
    • Pay Bills – Create level
    • Purchase Order – Create level
    • Sales Order – Create level
  5. On the Reports tab, configure the following:
    • SuiteAnalytics Workbook – Edit level
  6. On the Lists tab, configure the following:
    • Accounts – View level
    • Customers – View level
    • Items – View level
    • Locations – Edit level
    • Product Categories – View level
    • Subsidiaries – View level
    • Vendors – Edit level
  7. On the Setup tab, configure the following:
    • Accounting Lists – Full level
    • Custom Body Fields – Full level
    • Custom Entry Fields – Full level
    • Custom Entry Forms – Full level
    • Custom List – Full level
    • Custom Segments – Full level
    • Custom Transaction Forms – Full level
    • Log in using Access Tokens – Full level
    • Log in using OAuth 2.0 Access Tokens – Full level
    • Manage own OAuth 2.0 Client Credentials Certificates – Full level
    • Other Lists – Full level
    • Rest Web Services – Full level
    • SOAP Web Services – Full level
    • Setup SOAP Web Services – Full level
    • SuiteApp Deployment – Full level
    • SuiteScript – Full level
    • SuiteScript Scheduling – Full level
  8. On the Custom Record tab, configure the following:
    • Any custom records that are relevant to your NetSuite configuration – View level
  9. Select Save when complete.

We recommend creating a new user dedicated to PAR OPS and assigning it the role you just created. You will select this user and role in Step 7.

Step 5: Locate the Email from PAR OPS

  1. Check your inbox for an email from noreply-parops@partech.com with the subject line PAR OPS Integrations Credentials Request.
  2. This email contains a unique link to the credentials request form specific to your company.
    1. The link is only valid until you successfully provide credentials or until the time indicated in the email has passed. If the link is no longer valid, request a new link from the PAR OPS team.
  3. Select the Enter Credentials button in the email.

Step 6: Generate the Certificate for NetSuite

  1. After validating your email, you will be presented with a form to enter information from the steps above and generate the certificate to upload into NetSuite.
  2. Enter your Account ID (from Step 1) and Client ID (from Step 3).
  3. Once you have entered both values, the Generate and download certificate button becomes active. Select it.
  4. The certificate downloads automatically once it has been generated. Continue to the next step, but do not close this page yet.

Step 7: Upload the Machine to Machine Certificate

  1. In NetSuite, navigate to Setup > Integration > Manage Authentication > OAuth 2.0 Client Credentials (M2M) Setup.
  2. Select Create New.
  3. Configure the record:
    1. Under Entity, choose the user you created for this integration.
    2. Under Role, choose the role you created in Step 4.
    3. Under Application, choose the integration record you created in Step 3.
    4. Under Certificate, upload the certificate downloaded in Step 6.
  4. Select Save.
  5. Find the CERTIFICATE ID for the record you just created and copy it.

Step 8: Finish Providing Credentials to PAR OPS

  1. Return to the PAR OPS Integrations page and paste the Certificate ID from Step 7.
  2. Select Save.
  3. If your credentials are valid, you will see a success message. You may close the window.
  4. If your credentials are invalid, you will see an error message from the NetSuite API.

If You Run Into Issues

The PAR OPS team you're working with may have limited visibility into the cause of an error. After you have validated that the information you provided is accurate, reach out directly to NetSuite with questions about the error or its cause.