Don’t Miss it: Top Strategies for Driving Diversity

days / hours / minutes / seconds

Register Here »
« Back to Our Workplace Blog« Back to Our Customer Education Blog« Back to NetSuite Resources« Back to Adoption Blog
How to Test Your First NetSuite RESTlet with Postman
September 7, 2023

Discover how to use the third-party app, Postman, to test NetSuite RESTlet scripts with step-by-step instructions and reference images in our simple guide.

Testing your first NetSuite RESTlet doesn’t have to be complicated. If you want an easy way to see if your script works, this article provides a simple tutorial on how to test NetSuite RESTlet scripts that use Token-based Authentication with the help of the third-party app, Postman.

1. Acquiring the Consumer Key and Secret

Before you begin, it’s important to enable the Token-based Authentication feature to proceed with the other steps. You can find this feature by going to Setup > Company > Enable Features > SuiteCloud.

  1. Go to Setup > Integrations > Manage Integrations > New.
Image 1: Setup > Integrations > Manage Integrations > New
Image 2: Consumer Key/Consumer Secret
Image 3: External URL


  1. Enable Token-based Authentication.
  2. You will receive the message below, along with a Consumer Key and Consumer Secret. We recommend saving these somewhere secure.

Warning: For security reasons, this is the only time that the Consumer Key and Consumer Secret values are displayed. After you leave this page, they cannot be retrieved from the system. If you lose or forget these credentials, you will need to reset them to obtain new values.

Treat the values for Consumer Key and Consumer Secret as you would a password. Never share these credentials with unauthorized individuals and never send them by email.

2. Acquiring the Token ID and Token Secret

  1. If you have User Access Token permission, you should be able to see Manage Access Tokens inside the Settings portlet.
Image 4: Manage Access Tokens
  1. Click on New My Access Token.
  2. Select an Application Name and enter your preferred Token Name.
Image 5: Naming
  1. Click Save.
  2. You will see the message below, along with a Token ID and Token Secret. We recommend saving these somewhere secure.

Warning: For security reasons, this is the only time that the Token ID and Token Secret values are displayed. After you leave this page, they cannot be retrieved from the system. If you lose or forget these credentials, you will need to reset them to obtain new values.

Treat the values for Token ID and Token Secret as you would a password. Never share these credentials with unauthorized individuals and never send them by email.

3. Creating your first RESTlet collection in Postman

  1. Go to https://www.getpostman.com/ to download the Postman application.
  2. After installing, create a New Collection.
  3. After creating a new collection, create your first request by clicking Add requests.
Image 6: Add requests

4. Testing your first RESTlet in Postman

Follow the steps in the screenshot below to test your RESTlet in Postman.

Image 7: Testing with Postman
  1. Select the appropriate request method (e.g., GET, POST, etc.).
  2. Enter the URL as grabbed from the deployment record.
  3. Click on Authorization.
  4. Select OAuth 1.0.
  5. Enter the following parameters:
  • Consumer Key (from Section 1, Step 3)
  • Consumer Secret (from Section 1, Step 3)
  • Access Token (from Section 2, Step 5)
  • Token Secret (from Section 2, Step 5)
  1. Enter the NetSuite Account ID under Advanced > Realm.
  2. Hit Save so you won’t lose the request you configured.
  3. Click Send to start the test.

Find the Right NetSuite Partner

With ServiceRocket, you’ll get certainty, expertise and success built into your NetSuite implementation, configuration and custom development. When you work with us, you get access to NetSuite-trained Certified Developers with over 400+ NetSuite scripts and 50+ Suitelet workflows combined. Rest assured that ServiceRocket will help you find success and provide you with the opportunities you need to transform your business.

Do you have NetSuite license management, implementation, administration, support or custom development needs? We’ve got your back! Contact our NetSuite Certified Experts today.

Ensure the highest return on your NetSuite investment with our custom development or administrative services.

Learn MoreServiceRocket Backed - We've got your back badge
California Consumer Privacy Act (CCPA) Opt-Out Icon Notice at Collection