Skip to main content

Connecting to NetSuite

Before you start​

You'll need to be a NetSuite Administrator to set this up. ChargeOver connects to NetSuite using a certificate instead of a username and password, so nobody's NetSuite login gets shared with ChargeOver, and you can turn off ChargeOver's access from NetSuite at any time.

Setup takes about 20 minutes, and has 6 parts. The first 3 are only in NetSuite. For the rest, the NetSuite page in ChargeOver walks you through it one step at a time.

  1. Turn on the NetSuite features ChargeOver uses
  2. Create a role for ChargeOver
  3. Create the ChargeOver ID fields
  4. Create an integration record, and paste its Client ID into ChargeOver
  5. Upload ChargeOver's certificate to NetSuite, and paste its Certificate ID into ChargeOver
  6. Connect, and pick a subsidiary if you use them

To get to the NetSuite page in ChargeOver, click the configuration gear icon in the top right, go to Integrations, and search for NetSuite. It starts with a checklist of steps 1 to 3, so you can do those first.

NetSuite is an add-on. If its tile says Plan Upgrade Required, click Click to upgrade or contact ChargeOver to add it to your plan.

note

If you have a NetSuite sandbox, we recommend connecting a ChargeOver test account to your sandbox first. The steps are exactly the same.

Step 1: Turn on NetSuite features​

  1. In NetSuite, go to Setup > Company > Enable Features
  2. Click the SuiteCloud subtab
  3. Under SuiteTalk (Web Services), check REST Web Services
  4. Under Manage Authentication, check OAuth 2.0
  5. Click Save

Step 2: Create a role for ChargeOver​

ChargeOver should use its own role, with only the permissions it needs.

  1. In NetSuite, go to Setup > Users/Roles > Manage Roles > New
  2. Give the role a name, like ChargeOver Integration
  3. Under Subsidiary Restrictions, make sure the role can access the subsidiary ChargeOver will create customers in (or choose All)
  4. Under Authentication, check Web Services Only Role. This means nobody can log in to the NetSuite website with this role, it can only be used by integrations.

Then go to the Permissions tab and add these permissions. Each group of permissions is on its own subtab (Transactions, Lists, Setup, or Reports).

SubtabPermissionLevelWhy ChargeOver needs it
SetupLog in using OAuth 2.0 Access TokensFullTo connect to NetSuite
SetupREST Web ServicesFullTo send data to NetSuite
SetupManage own OAuth 2.0 Client Credentials certificatesFullTo renew its certificate automatically before it expires (see Renewing your certificate)
SetupAccounting ListsViewTo list your payment terms and payment methods
SetupCustom FieldsViewTo find the line fields your revenue recognition dates go in (only if you use revenue recognition, see Revenue recognition)
TransactionsInvoiceEditTo create your invoices
TransactionsCredit MemoFullTo sync credits and write-offs (see Credits and write-offs), void invoices, and undo a void
TransactionsCustomer PaymentFullTo create your payments, and delete them when you void one in ChargeOver (see Voiding a payment)
TransactionsCustomer RefundFullTo sync refunds and chargebacks, and delete them when you void one (see Refunds and chargebacks)
TransactionsFind TransactionViewTo look up invoices, payments, and credits already in NetSuite, so we don't add duplicates
ListsCustomersEditTo find, create, and update your customers
ListsContactsEditTo add and update each customer's contacts
ListsPerform SearchFullTo look for customers that are already in NetSuite, so we don't add duplicates
ListsCurrencyViewTo set each new customer's currency
ListsItemsEditTo find your items, and create the ones that aren't in NetSuite yet
ListsAccountsViewTo list your income, bank, and accounts receivable accounts for the settings
ListsTax RecordsViewTo find the tax codes for invoices with tax (only if you charge tax)
ListsTax Details TabEditTo put ChargeOver's tax on invoices (only if you charge tax and your account uses SuiteTax, see Taxes)
ListsSubsidiariesViewTo list your subsidiaries during setup (only if you use subsidiaries)
ListsClassesViewTo list your classes for the settings (only if you use Classes)
ListsDepartmentsViewTo list your departments for the settings (only if you use Departments)
ListsLocationsViewTo list your locations for the settings (only if you use Locations)
ListsRevenue Recognition Field MappingViewTo find the line fields your revenue recognition dates go in (only if you use revenue recognition)
ReportsSuiteAnalytics WorkbookViewTo look up customers, currencies, and subsidiaries

The level matters. NetSuite's levels go View, Create, Edit, then Full, and each one includes the ones before it (so Edit can create too). Use the level in the table, not just View. ChargeOver adds and changes your customers, items, and invoices, and deletes payments, credits, and refunds when you void them in ChargeOver. It never deletes customers, contacts, items, or invoices, so those only need Edit.

When you're done, the Setup, Transactions, and Lists subtabs should look like this (leave out the ones the table says are "only if" when you don't use them):

Click Save.

Give the role to a user​

The role has to belong to a NetSuite user (an employee record), which ChargeOver will act as. This can be you, or a user you set up just for integrations.

  1. In NetSuite, open the employee record for that user
  2. Click Edit, then go to the Access tab
  3. Under Roles, add the ChargeOver Integration role
  4. Click Save

The user doesn't need to log in with this role, and doesn't need a password for it.

Step 3: Create the ChargeOver ID fields​

ChargeOver puts its own ID on every record it syncs, so it can always find its records in NetSuite (and never makes duplicates). NetSuite only lets ChargeOver use custom fields you create, so create these four before you connect. Give them exactly these IDs. NetSuite adds the custentity, custbody, or custitem to the front for you.

FieldKind of fieldLabelIDTypeApplies To
ChargeOver ID (customers)Entity FieldChargeOver ID_chargeover_idFree-Form TextCustomer and Contact
ChargeOver ID (transactions)Transaction Body FieldChargeOver ID_chargeover_idFree-Form TextSale and Customer Payment
ChargeOver invoice numberTransaction Body FieldChargeOver Invoice #_chargeover_numberFree-Form TextSale
ChargeOver ID (items)Item FieldChargeOver ID_chargeover_idFree-Form TextNon-inventory Item, Service, and Other Charge

For each field:

  1. In NetSuite, go to Customization > Lists, Records, & Fields, pick Entity Fields, Transaction Body Fields, or Item Fields (the Kind of field column), and click New
  2. Fill in the Label and ID, and pick the Type
  3. On the Applies To tab, check the boxes in the Applies To column
  4. On the Display tab, set Display Type to Inline Text. Your team can still see the field, but can't change it by accident.
  5. Click Save

When you're done, NetSuite lists them as custentity_chargeover_id, custbody_chargeover_id, custbody_chargeover_number, and custitem_chargeover_id.

Want more in NetSuite?

These four are all you need to connect. ChargeOver can also fill in optional fields, like links back to ChargeOver, External Keys, and subscription nicknames, and sync your own custom fields. You can add those any time, now or after you're connected. See Optional ChargeOver fields.

caution

Don't change what's in the ChargeOver ID fields in NetSuite. That's how ChargeOver tells which NetSuite records belong to which ChargeOver records.

If you restricted access on a field's Access tab, make sure the ChargeOver Integration role can Edit it.

Step 4: Create an integration record​

This is Step 1 on the NetSuite page in ChargeOver.

  1. In NetSuite, go to Setup > Integration > Manage Integrations > New
  2. Set the Name to ChargeOver, and leave State as Enabled

  1. On the Authentication tab, under OAuth 2.0:
    • Uncheck Authorization Code Grant
    • Check Client Credentials (Machine To Machine) Grant
    • Under Scope, check REST Web Services
  2. Uncheck Token-based Authentication if it's checked. ChargeOver doesn't use it.
  3. Click Save

After you save, NetSuite shows a Client ID and Client Secret at the bottom of the page. Copy the Client ID now, NetSuite only shows it once. ChargeOver doesn't need the Client Secret.

Paste the Client ID into the Client ID box in ChargeOver, and click Next.

caution

If you lose the Client ID, you'll need to reset the credentials on the integration record (or create a new one) to get a new one.

Step 5: Upload ChargeOver's certificate​

This is Step 2 on the NetSuite page in ChargeOver. ChargeOver makes its certificate for you, so just click Download Certificate.

Then upload the certificate to NetSuite:

  1. In NetSuite, go to Setup > Integration > OAuth 2.0 Client Credentials (M2M) Setup
  2. Click Create New
  3. Fill in the mapping:
    • Entity: the user you gave the role to in Step 2
    • Role: ChargeOver Integration
    • Application: the ChargeOver integration record from Step 4
    • Certificate: the certificate you downloaded from ChargeOver
  4. Click Save

NetSuite adds the mapping to the list. Copy its Certificate ID, paste it into the Certificate ID box in ChargeOver, and click Next.

Step 6: Connect ChargeOver to NetSuite​

This is Step 3 on the NetSuite page in ChargeOver. Fill in your Account ID: in NetSuite, go to Setup > Company > Company Information. It looks like 1234567, or 1234567_SB1 for a sandbox.

Click Connect. ChargeOver logs in to NetSuite, and checks the role and the ChargeOver ID fields are set up right. If something's missing, it says what, so you can fix it in NetSuite and click Connect again.

Pick a subsidiary​

If your NetSuite account uses subsidiaries (NetSuite OneWorld), ChargeOver asks which subsidiary to create new customers in (Step 4 on the NetSuite page). Pick one and click Save Subsidiary. If you don't use subsidiaries, ChargeOver skips this step.

Customers stay in the subsidiary they were created in. If you change this later, it only affects customers ChargeOver creates from then on.

Once everything checks out, you'll see that you're connected:

Click Go to Configuration to look over the optional settings before your first invoices sync. From then on, the NetSuite page has two tabs:

  • Connection shows the finished setup steps, with Test Connection (to make sure ChargeOver can still log in to NetSuite), the certificate, and Start Over
  • Configuration has the settings for how things sync, like custom fields and items

Starting over​

To change anything you set up here (the integration record, certificate, NetSuite account, or subsidiary), click Start Over on the Connection tab. You go back to Step 1 with your details still filled in, so change what you need, click through, and connect again. You'll pick the subsidiary again too.

ChargeOver is disconnected from NetSuite until you connect again. It keeps track of what changes in the meantime, and syncs it once you're connected.

If ChargeOver ever gets disconnected from NetSuite, the NetSuite page goes back to the Connect step, with why it was disconnected, so you can fix it and connect again.

If the ChargeOver ID fields aren't set up​

When you connect, or click Test Connection later, ChargeOver also checks that the ChargeOver ID fields from Step 3 are there, are Free-Form Text fields, and that the role can edit them. If something's off, ChargeOver says which field and what's wrong, for example custentity_chargeover_id isn't on contacts (the field doesn't have Contact checked under Applies To). Fix it in NetSuite, then click ==Connect== (or ==Test Connection==) again.

If you connected before these fields existed, ChargeOver fills in the ChargeOver ID on every customer and contact it already synced, in the background, once the fields are set up.

If the role is missing permissions​

When you connect, or click Test Connection later, ChargeOver checks that the role from Step 2 can see everything ChargeOver syncs. If it can't, ChargeOver lists every permission that's missing, named the way NetSuite names them, with the level each one needs:

Add them to the role in NetSuite (Setup > Users/Roles > Manage Roles), then click Connect (or Test Connection) again.

ChargeOver can only check that the role can see each kind of record, not that it can change them. So if syncing fails with a permission error later, check the levels in the table in Step 2 too (for example, Customers needs Edit, not just View).