Connect NetSuite (your warehouse)
The connection needs a NetSuite admin; if someone else runs your account, give them the certificate file and this page, and they hand back four values.
Before you start
- Admin rights in NetSuite.
- The Location that holds your sellable stock.
- The
nasam-netsuite.crtfile: on «Warehouses» → «Connect warehouse» → NetSuite → «Generate & download certificate».
Steps
In NetSuite
-
Enable the features.
- Open Setup.
- Choose Company.
- Choose Enable Features.
- Open the SuiteCloud subtab, and enable:
Feature Where it lives REST Web Services SuiteTalk section OAuth 2.0 Manage Authentication section SuiteAnalytics Workbook Analytics subtab (SuiteQL, NetSuite's query language, needs it to read stock) -
Create a new role that is not Administrator.
- Open Setup.
- Choose Users/Roles.
- Choose Manage Roles.
- Click New, and give the role:
Permission Subtab Level REST Web Services Setup Full Log in using Access Tokens Setup Full SuiteAnalytics Workbook Reports Edit Find Transaction Transactions View Invoice Transactions Full Credit Memo Transactions Full Customer Lists Full Items, Inventory Lists View Invoice, Credit Memo and Customer are Full because Nasam creates:
- An invoice for every order it fulfils through your warehouse.
- A credit memo on cancel or return.
- A customer when none matches.
Grant them now so you don't come back to the role.
-
Create an integration record.
- Open Setup.
- Choose Integration.
- Choose Manage Integrations.
- Click New, and set:
Box What to do Client Credentials (Machine to Machine) Grant check it REST Web Services (under scopes) check it Authorization Code Grant leave it (it is the box that asks for a Redirect URI, which this connection never uses) Save. The Client ID shows only once, so copy it immediately. We don't need the Client Secret.
-
Link the certificate.
- Open Setup.
- Choose Integration.
- Choose Manage Authentication.
- Choose OAuth 2.0 Client Credentials (M2M) Setup.
- Click Create New, and pick:
Field What to pick Entity the user Role the role from step 2 Application the application from step 3 Certificate upload nasam-netsuite.crtThe Certificate ID appears (this is the
kid, the key ID). This page needs the Administrator role or the OAuth 2.0 Authorized Applications Management permission. -
Account ID.
- Open Setup.
- Choose Company.
- Choose Company Information.
- Copy the number, such as 1234567, or 1234567_SB1 in a sandbox.
-
Location internal ID.
- From Home choose Set Preferences, and enable Show Internal IDs.
- Open Lists.
- Choose Accounting.
- Choose Locations.
- Take the ID of the location that holds your sellable stock.
In Nasam
Enter the four values in the connect dialog, then press «Connect»:
| Field in Nasam | Value |
|---|---|
| Account ID | Account ID (step 5) |
| Location ID | Location internal ID (step 6) |
| Client ID | Client ID (step 3) |
| Certificate ID | Certificate ID (step 4) |

The invoice itself deducts the quantity from the location, and Nasam creates and reads no Sales Orders in NetSuite.
To stop invoices, or to exempt a channel whose orders reach NetSuite another way: «Edit connection» → «Invoices and credit notes» and «Channels».
Common problems
The page is missing, or the Application list is empty
Only a saved integration record with Client Credentials (Machine to Machine) Grant on it shows up here. A record with only Authorization Code Grant does not. If the page itself is missing, enable OAuth 2.0 (step 1).
Next step
The Nasam team is with you, whatever the question: WhatsApp +966 55 009 0039 or general@nasam.co. And we set up your marketplace accounts with you, step by step. The consultation is free.