Skip to main content

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.crt file: on «Warehouses» → «Connect warehouse» → NetSuite → «Generate & download certificate».

Steps​

In NetSuite​

  1. Enable the features.

    1. Open Setup.
    2. Choose Company.
    3. Choose Enable Features.
    4. Open the SuiteCloud subtab, and enable:
    FeatureWhere it lives
    REST Web ServicesSuiteTalk section
    OAuth 2.0Manage Authentication section
    SuiteAnalytics WorkbookAnalytics subtab (SuiteQL, NetSuite's query language, needs it to read stock)
  2. Create a new role that is not Administrator.

    1. Open Setup.
    2. Choose Users/Roles.
    3. Choose Manage Roles.
    4. Click New, and give the role:
    PermissionSubtabLevel
    REST Web ServicesSetupFull
    Log in using Access TokensSetupFull
    SuiteAnalytics WorkbookReportsEdit
    Find TransactionTransactionsView
    InvoiceTransactionsFull
    Credit MemoTransactionsFull
    CustomerListsFull
    Items, InventoryListsView

    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.

  3. Create an integration record.

    1. Open Setup.
    2. Choose Integration.
    3. Choose Manage Integrations.
    4. Click New, and set:
    BoxWhat to do
    Client Credentials (Machine to Machine) Grantcheck it
    REST Web Services (under scopes)check it
    Authorization Code Grantleave 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.

  4. Link the certificate.

    1. Open Setup.
    2. Choose Integration.
    3. Choose Manage Authentication.
    4. Choose OAuth 2.0 Client Credentials (M2M) Setup.
    5. Click Create New, and pick:
    FieldWhat to pick
    Entitythe user
    Rolethe role from step 2
    Applicationthe application from step 3
    Certificateupload nasam-netsuite.crt

    The 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.

  5. Account ID.

    1. Open Setup.
    2. Choose Company.
    3. Choose Company Information.
    4. Copy the number, such as 1234567, or 1234567_SB1 in a sandbox.
  6. Location internal ID.

    1. From Home choose Set Preferences, and enable Show Internal IDs.
    2. Open Lists.
    3. Choose Accounting.
    4. Choose Locations.
    5. 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 NasamValue
Account IDAccount ID (step 5)
Location IDLocation internal ID (step 6)
Client IDClient ID (step 3)
Certificate IDCertificate ID (step 4)

Entering the four values in the NetSuite connect dialog

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​

Need a hand?

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.