How to Test a NetSuite Integration Record Using Postman

Artboard
We discussed Streamline Your Workflow: Establishing Integration Records in NetSuite Made Easy – a vital step in enabling secure connections with external applications. Once the Integration record has been established, the next step is to validate that it works as expected. In this article we’ll demonstrate sending a simple request to a NetSuite account using Postman. This process is simple and very straightforward, allowing you to send authenticated requests and view real-time responses from NetSuite.

Pre-requisites

Before testing with Postman, ensure you have:
  • Postman installed (desktop app or web).
  • An active Integration record in NetSuite.
  • Your NetSuite account ID.
  • The authentication key, secrets, and id.
  • NetSuite supports two primary authentication methods for API integration.
    • Token-Based Authentication (TBA) – Use Consumer Key, Consumer Secret, Token ID, and Token Secret to authenticate requests.
    • OAuth 2.0 – Use Consumer Key, Consumer Secret, and access tokens.
  • Having a sandbox environment, this is not technically required but it’s highly suggested and a best practice.
  • Required Enabled features and Role permissions are already setup, see Streamline Your Workflow: Establishing Integration Records in NetSuite Made Easy.

Create a HTTP Request in Postman

  1. Open Postman, for this guide we are using Postman version 11.60.4.
  2. Select your workspace.
  3. Click New → Select HTTP.
NetSuite integration with Postman
  1. Click Save → Enter your request name and save.
For more information on Postman setup, see Get started in Postman.

Postman Configuration with Token-Based Authentication (TBA)

  1. Open the integration record and make sure that Token-Based authentication is checked.
    1. Form the Administrator home dashboard, go to Setup tab
    2. Navigate to Integrations → Click “Manage Integration”
    3. Open the Integration record.
    4. Go to the Authentication tab, ensure that the Token-Based authentication is checked.
  1. Go back to Postman → Go to the Auth tab.
  2. Fill in the fields as follows:
    1. Auth type = OAuth 1.0
    2. Add authorization data to = Request Headers
    3. Signature Method= HMAC-SHA256
  3. Enter the credentials:
    1. Consumer Key
    2. Consumer Secret
    3. Access token = Token ID
    4. Token Secret
    5. Realm = Account ID
      1. If you are testing in a Sandbox account, always use uppercase letter and underscore(_) for separation. E.g: _SB = 123456_SB1.
  1. Perform a request. See the section below.

Postman Configuration with OAuth 2.0 Authentication

  1. Ensure that the following fields in the Integration record are checked and populated with the required field.
    1. From the Administrator home dashboard, go to “Setup” tab.
    2. Navigate to Integrations → Click “Manage Integration”
    3. Open the Integration record.
    4. Go to the Authentication tab, make sure that the following fields are checked or filled in correctly.
      1. Authentication Code Grant
      2. Rest Web Services
      3. Redirect URI = https://oauth.pstmn.io/v1/browser-callback , see Postman’s callback URL for more information.
  1. Go back to Postman → Go to the Auth tab.
  2. Fill in the fields as follows:
    1. Auth type = OAuth 2.0
    2. Add authorization data to = Request Headers
    3. Under Configure New Token
      1. Token Name = NSSB1_Oauth2_Token, you may use your preferred token name.
      2. Grant type = Authorization Code
      3. Callback URL = https://oauth.pstmn.io/v1/browser-callback, must match the Redirect URI in your Integration record.
      4.  Auth Url = https://.app.netsuite.com/app/login/oauth2/authorize.nl, change to your account ID.
      5.  Access Token Url = https://.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token, change to your account ID.
      6. Client ID = from Integration record Client Key.
      7. Client Secret
      8.  Scope = rest_webservices
      9.  State = ykv2XLx1BpT5Q0F3MRPHb94j, must be between 22 and 1024 ASCII characters.
      10. Client Authentication = Send as Basic Auth header
  1. Generate an Access Token.
    1. Click Get New Access Token.
  1. A browser window will open for authentication.
  1. After login, click Allow.
  1. After giving permission, Postman retrieves the access token. Click “Use Token”.
  1. The token will show up under Current Token. Click “Save”.
  1. Perform a request. See the section below.

Perform a Request

  1. In your request, select “Get” method.
  2. Enter a Suitetalk API endpoint, E.g.: https://.suitetalk.api.netsuite.com/services/rest/record/v1/customer, change ” <ACCOUNT_ID> ” to your account ID. See REST Web Services URL Schema and Account-Specific URLs for more information.
  3. Click “Send
  1. You’ll get a response code `200` for a successful request and a JSON response body.
  1. Generate an Access Token.
    1. Click Get New Access Token.

Conclusion

Testing a Netsuite Integration record with Postman ensures your established integration is working properly before connecting it to a third-party application. Token-Based Authentication (TBA) relies on tokens generated directly in Netsuite’s Access token record, while OAuth 2.0 requires requesting a token from an authorization endpoint before making API calls. Understanding these differences helps you choose the right method for your integration and manage authentication more effectively.

How TAC Can Help
At TAC, our experienced NetSuite consultants help businesses seamlessly establish and validate secure integrations with external applications. We handle the setup of Token-Based Authentication (TBA) and OAuth 2.0, manage credentials, and resolve connectivity or authentication issues with precision. Our team also optimizes sandbox environments, verifies permissions, and ensures all required NetSuite features are properly configured. With TAC as your integration partner, you can streamline processes, minimize errors, and achieve reliable, real-time communication between NetSuite and your connected systems.

Share:

More Posts you may like:

Streamline Your Workflow: Establishing Integration Records in NetSuite Made Easy

As businesses expand their digital ecosystems, connecting systems with external applications becomes essential. NetSuite provides tools that enable external systems to connect and exchange data securely, with the Integration record at the core of this process. In this article, we’ll provide a step-by-step guide and share best practices for creating an Integration record in NetSuite, which serves as a key component of SuiteTalk.

OpenAir Integrations

How to Remove SuiteSignOn Dependency for Seamless OpenAir Integrations

NetSuite is phasing out the outdated and insecure Outbound Single Sign-On feature, SuiteSignOn, making it necessary for users to adopt modern authentication methods to maintain seamless OpenAir integrations. While the upgrade process may seem complex when handled directly in the platform, with the right guidance it becomes a clear and manageable transition. By removing SuiteSignOn and enabling OAuth-based authentication, you strengthen system security, prevent unauthorized access, and ensure your integrations run smoothly. Without this update, your system may generate script errors that disrupt workflows and cause integration failures. This guide walks you through each step needed to remove SuiteSignOn dependency and establish a secure, uninterrupted NetSuite <> OpenAir integration.

Unlock the Full Power of NetSuite with Custom Fields

We all know that NetSuite is a powerful tool out of the box. However, for it to be truly effective for your business, it does require customization. One of the most common customizations within NetSuite is the custom field. This blog post will be going over what they are and how you can create them.

chrome extension

Introducing Our New FREE Chrome Extension for NetSuite Script Deployments

For years, our team relied on a free Chrome extension called NetSuite Scripted Records, developed by its original creator, Marcel Pestana, to quickly view script deployments on any NetSuite scriptable record. It was a handy solution that we used daily to speed up our development and administrative tasks. However, when Google started removing extensions that hadn’t been updated to Manifest v3 standards, NetSuite Scripted Records was removed from the store. It hadn’t been updated since 2022, and once it disappeared, our team realized just how dependent we’d become on that tool to see which scripts were running on each record.

Understand Business Complexity

Our combined experiences in diverse industries provide us with unique insights allowing our NetSuite Consultants to provide solutions to multifaceted problems.It has been our experience that often times people look for the easiest solution instead of facing the problems head-on. This creates manual workaround and loss of man hours that contribute to increased labor costs to resolve systematic problems.

Request a demo

Fill out the form below and our team will be in touch shortly.