Skip to content

Connecting NetSuite to Sebastian

Sebastian reads your books from NetSuite: your chart of accounts, general ledger, vendors, customers, bills, invoices and purchase orders. It uses them for the close, AP, AR and planning. Sebastian posts to NetSuite, such as a bill or a journal entry, only after someone on your team approves it. The one exception is automatic approval: if your team has switched it on in the payables policy, Sebastian also enters bills that match within that policy without asking each time.

  • In NetSuite: an administrator who can create an integration record, register a certificate for it, and give a role its permissions.
  • In Sebastian: someone with the Admin or IT Admin role, or a custom role with full access to Integrations.

Sebastian signs in to NetSuite with OAuth 2.0 client credentials (machine to machine), using a certificate. It signs with an RSA key using RSA-PSS (PS256). You paste four values into Sebastian.

Value What it is
Account ID Your NetSuite account, such as 1234567. A sandbox account looks like 1234567_SB1.
Client ID The client ID of the integration record.
Certificate ID The ID NetSuite gives the certificate you registered for that integration.
RSA private key The private key the certificate was made from. Paste the whole key file, including the BEGIN and END lines. Sebastian encrypts it and never shows it again.

There are two places to set access, and both matter.

On the integration record: allow the REST Web Services scope. Sebastian asks for this scope when it signs in.

On the role the integration signs in as:

Permission What Sebastian uses it for
REST Web Services Reading records through NetSuite’s REST API
SuiteAnalytics Workbook Running the queries that read your books
Log in using OAuth 2.0 Access Tokens Letting the integration sign in with its token
  1. In NetSuite, create an integration record that uses the OAuth 2.0 client credentials grant with the REST Web Services scope. Note its client ID.
  2. Give the role the integration signs in as the three permissions above.
  3. Make an RSA key and a public certificate from it. Keep the private key for Sebastian.
  4. In NetSuite, go to Setup > Integration > Manage Authentication > OAuth 2.0 Client Credentials (M2M) Setup and create a new mapping. Choose the entity (the user), the role and the integration application, then upload the public certificate. Save it and note the Certificate ID NetSuite shows for it.
  5. In Sebastian, go to Settings > Integrations > NetSuite.
  6. Fill in Account ID, Client ID, Certificate ID and RSA private key, then click Connect.
  7. Sebastian checks the credentials as you save them, then starts reading your books. The first read can take a while.
  • “The account ID looks like 1234567 or 1234567_SB1.” Check the account ID.
  • “Enter the client ID.”, “Enter the certificate ID.” or “Enter the private key.” Fill in the missing field.
  • “The private key could not be read. Paste the whole key file, including the BEGIN and END lines.” Paste the full key.
  • “The private key must be an RSA key.” Use an RSA key.
  • “NetSuite did not accept these credentials. Check the account ID, client ID and certificate ID, and that the key is the one the certificate was made from.” One of the values is wrong, or the key doesn’t match the certificate.
  • “NetSuite signed Sebastian in but would not answer. Give the integration role the REST Web Services and SuiteAnalytics Workbook permissions.” Check the role has the permissions in the table above, including Log in using OAuth 2.0 Access Tokens.
  • “NetSuite account has 2 operating subsidiaries; Sebastian needs exactly one.” Sebastian reads one subsidiary. The number in the message is how many your account has.
  • “NetSuite could not be reached. Try again in a moment.” Try again.
  • “Disconnect QuickBooks before connecting NetSuite.” Only one accounting system can be connected at a time. Disconnect the other one first. The name of whichever system is connected appears in the message.
  • “The books are still being read from NetSuite. Wait for it to finish, then try again.” The first read is still running. Try again when it is done.
  • “You don’t have access to this. Ask an admin in your organization for access.” Your Sebastian role can’t manage integrations. Ask a Sebastian admin.
  • One subsidiary. Sebastian reads one NetSuite subsidiary.
  • One accounting system. Only one accounting system (QuickBooks, Xero, NetSuite and other accounting systems) can be connected at a time.
  • Sandbox accounts. An account ID ending in _SB followed by a number is shown as a sandbox in Sebastian.
  • How often it reads. Sebastian reads your books every 30 minutes by default. Open NetSuite under Settings > Integrations to choose Sync frequency (every 5 minutes to every 24 hours) or click Sync now. Re-read everything reads all of your books again, and can also run on a schedule you choose.
  • Replacing the key. Click Replace next to “Credentials saved”, enter all four values again and click Connect.
  • Disconnecting. Click Disconnect on the NetSuite panel in Sebastian.