Prerequisites for Creating a Connection

You must satisfy the following prerequisites to create a connection with the Oracle NetSuite REST Adapter.

Obtain the NetSuite Account ID, Client ID, Client Secret, and Scopes for Security Policies

  1. Log in to the NetSuite application.

    The NetSuite application homepage appears.

  2. Retrieve the account ID from the application URL.
    For example, if the application URL is as follows:
    https://111****21.app.netsuite.com

    Then the account ID is 111****21.

  3. Go to Setup, then New, and then Manage Integrations.
  4. On the Integrations page, perform the following steps:
    1. Enter the integration name.
    2. Select the Authorization Code Grant or/and Client Credentials (Machine to Machine) Grant checkbox.

      Note:

      • You must select the Client Credentials (Machine to Machine) Grant checkbox when using the JWT Client Credentials Assertion for NetSuite security policy.
      • For the OAuth Authorization Code Grant flow, you can set the refresh token validity in the NetSuite integration record to any value between 1 hour and 720 hours (30 days).
    3. Select the Public Client checkbox.
    4. Select required scopes such as RESTLETS, REST Web Service, and others.
    5. Enter the redirect URI in the Redirect URI field.
    6. Click Save.

    A new integration is created.

  5. Make note of the client ID and client secret values in the Client Credentials section.

    Note:

    • For security purposes, the client ID and client secret are generated and shown one time. If you do not make note of these values, you cannot regenerate them.
    • The generated client ID also serves as the consumer key and can be used for the JWT Client Credentials Assertion for NetSuite security policy.

Certificate ID and JWT Private Key Alias for JWT Client Credentials Assertion for NetSuite Security Policy