Integrating NetSuite with external applications often requires using Suitelets, which allow you to expose custom logic to the outside world via RESTful endpoints. In this blog, we’ll walk through the steps to send a POST request to a NetSuite SuiteLet that is available without login using Postman, a popular API testing tool.
Step 1: Prepare the SuiteLet in NetSuite
Before using Postman, you need to ensure your SuiteLet is correctly set up in NetSuite.
- Deploy the Suitelet:
- Go to
Customization > Scripting > Scripts
in NetSuite. - Set the deployment as “Available without Login”. This allows external access without requiring authentication.
- Go to
- Copy the External URL:
- After deployment, copy the external URL provided by NetSuite. It will look like this:
https://<account_id>.extforms.netsuite.com/app/site/hosting/scriptlet.nl?script=<script_id>&deploy=<deploy_id>&compid=<compid>&ns-at=<ns-at> - Replace
<account_id>
,<script_id>
,<deploy_id>
,<compid>and <ns-at> with your actual account ID, script ID, deployment ID, compId and ns-at.
- After deployment, copy the external URL provided by NetSuite. It will look like this:
Step 2: Install and Launch Postman
- Download and install Postman if you haven’t already.
- Launch Postman and create a new request.
Step 3: Configure the POST Request in Postman
Enter your JSON data in the editor. For example : json{ "name": "John Doe", "email": "john.doe@example.com" }
Create a New Request:
In Postman, click on “New” and select “Request”.
Set the Request Type:
Change the request type to POST using the dropdown next to the URL field.
Enter the Suitelet URL:
Paste the external Suitelet URL into the URL field in Postman.
Add Headers:
Click on the “Headers” tab.
Add a header with Key: Content-Type
and Value: application/json
.
Don’t include user agent in headers
Add the Request Body:
Click on the “Body” tab.
Select “raw” and choose “JSON” from the dropdown on the right.
Send the post request to External NetSuite SuiteLet with Data

You can fetch the body data in your NetSuite SuiteLet script to perform the operations with data without any Authentication.
0 Comments