## 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 1. Create a role for ChargeOver 1. Create the ChargeOver ID fields 1. Create an integration record, and paste its Client ID into ChargeOver 1. Upload ChargeOver's certificate to NetSuite, and paste its Certificate ID into ChargeOver 1. 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. ![](./setup-step-1.png) :::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` 1. Click the `SuiteCloud` subtab 1. Under **SuiteTalk (Web Services)**, check **REST Web Services** 1. Under **Manage Authentication**, check **OAuth 2.0** 1. Click ==Save== ![](./ns-enable-features.png) ## 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` 1. Give the role a name, like `ChargeOver Integration` 1. Under **Subsidiary Restrictions**, make sure the role can access the subsidiary ChargeOver will create customers in (or choose **All**) 1. 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. ![](./ns-role-general.png) Then go to the **Permissions** tab and add these permissions. Each group of permissions is on its own subtab (`Transactions`, `Lists`, `Setup`, or `Reports`). ![](./ns-role-permissions.png) | Subtab | Permission | Level | Why ChargeOver needs it | | ------- | ------------------------------------- | ----- | ------------------------------------------------------------------------------ | | Setup | Log in using OAuth 2.0 Access Tokens | Full | To connect to NetSuite | | Setup | REST Web Services | Full | To send data to NetSuite | | Setup | Manage own OAuth 2.0 Client Credentials certificates | Full | To renew its certificate automatically before it expires (see [Renewing your certificate](./managing-the-connection.mdx#renewing-your-certificate)) | | Setup | Accounting Lists | View | To list your payment terms and payment methods | | Setup | Custom Fields | View | To find the line fields your revenue recognition dates go in (only if you use revenue recognition, see [Revenue recognition](./revenue-recognition.mdx)) | | Transactions | Invoice | Edit | To create your invoices | | Transactions | Credit Memo | Full | To sync credits and write-offs (see [Credits and write-offs](./credits.mdx)), void invoices, and undo a void | | Transactions | Customer Payment | Full | To create your payments, and delete them when you void one in ChargeOver (see [Voiding a payment](./payments.mdx#voiding-a-payment)) | | Transactions | Customer Refund | Full | To sync refunds and chargebacks, and delete them when you void one (see [Refunds and chargebacks](./refunds.mdx)) | | Transactions | Find Transaction | View | To look up invoices, payments, and credits already in NetSuite, so we don't add duplicates | | Lists | Customers | Edit | To find, create, and update your customers | | Lists | Contacts | Edit | To add and update each customer's contacts | | Lists | Perform Search | Full | To look for customers that are already in NetSuite, so we don't add duplicates | | Lists | Currency | View | To set each new customer's currency | | Lists | Items | Edit | To find your items, and create the ones that aren't in NetSuite yet | | Lists | Accounts | View | To list your income, bank, and accounts receivable accounts for the settings | | Lists | Tax Records | View | To find the tax codes for invoices with tax (only if you charge tax) | | Lists | Tax Details Tab | Edit | To put ChargeOver's tax on invoices (only if you charge tax and your account uses SuiteTax, see [Taxes](./taxes.mdx)) | | Lists | Subsidiaries | View | To list your subsidiaries during setup (only if you use subsidiaries) | | Lists | Classes | View | To list your classes for the settings (only if you use Classes) | | Lists | Departments | View | To list your departments for the settings (only if you use Departments) | | Lists | Locations | View | To list your locations for the settings (only if you use Locations) | | Lists | Revenue Recognition Field Mapping | View | To find the line fields your revenue recognition dates go in (only if you use revenue recognition) | | Reports | SuiteAnalytics Workbook | View | To 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): ![](./ns-role-permissions-setup.png) ![](./ns-role-permissions-transactions.png) ![](./ns-role-permissions-lists.png) 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 1. Click ==Edit==, then go to the **Access** tab 1. Under **Roles**, add the `ChargeOver Integration` role 1. 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. | Field | Kind of field | Label | ID | Type | Applies To | | ---------------------------- | ---------------------- | ---------------------- | -------------------- | -------------- | --------------------------------- | | ChargeOver ID (customers) | Entity Field | `ChargeOver ID` | `_chargeover_id` | Free-Form Text | **Customer** and **Contact** | | ChargeOver ID (transactions) | Transaction Body Field | `ChargeOver ID` | `_chargeover_id` | Free-Form Text | **Sale** and **Customer Payment** | | ChargeOver invoice number | Transaction Body Field | `ChargeOver Invoice #` | `_chargeover_number` | Free-Form Text | **Sale** | | ChargeOver ID (items) | Item Field | `ChargeOver ID` | `_chargeover_id` | Free-Form Text | **Non-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== 1. Fill in the **Label** and **ID**, and pick the **Type** 1. On the **Applies To** tab, check the boxes in the **Applies To** column 1. On the **Display** tab, set **Display Type** to **Inline Text**. Your team can still see the field, but can't change it by accident. 1. Click ==Save== When you're done, NetSuite lists them as `custentity_chargeover_id`, `custbody_chargeover_id`, `custbody_chargeover_number`, and `custitem_chargeover_id`. :::tip 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](./custom-fields.mdx#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` 1. Set the **Name** to `ChargeOver`, and leave **State** as **Enabled** ![](./ns-integration-record.png) 3. 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** 1. Uncheck **Token-based Authentication** if it's checked. ChargeOver doesn't use it. 1. Click ==Save== ![](./ns-integration-auth.png) 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==. ![](./certificate.png) Then upload the certificate to NetSuite: 1. In NetSuite, go to `Setup > Integration > OAuth 2.0 Client Credentials (M2M) Setup` 1. Click ==Create New== 1. 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 1. Click ==Save== ![](./ns-m2m-mapping.png) 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. ![](./connection-details.png) ### 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. ![](./subsidiary.png) 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: ![](./connected.png) 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: ![](./connection-missing-permissions.png) 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**). ## Related - [Customers and contacts](./customers.mdx) - [Sync status and troubleshooting](./sync-status-and-troubleshooting.mdx) - [Managing the connection](./managing-the-connection.mdx) - [NetSuite overview](./netsuite.mdx)