Overview
- The steps below will guide you through integrating your NetSuite platform account with DHL Express Commerce.
- Once completed, your orders will be imported into DHL Express Commerce, and when you print a label, the tracking information will be written back.
How it works
You will be creating web service access in NetSuite for DHL Express Commerce and then entering the authentication details in DHL Express Commerce.
1. Enabling the Token-based Authentication Feature in NetSuite
- Go to Setup > Company > Enable Features.
- Click the SuiteCloud subtab.
- In the SuiteScript section, check the following boxes:
- Client SuiteScript
- Server SuiteScript
- Scroll to Manage Authentication section.
- Check TOKEN-BASED AUTHENTICATION box.
- Click Save.
2. Setting Up Token-based Authentication Roles in NetSuite
- Go to Setup > Users/Roles > Manage Roles > New.
- Enter DHL Express Commerce Integration Role in Name field.
- Check WEB SERVICES ONLY ROLE box in Authentication section.
- Click the Permissions subtab.
- Add Permissions for Transactions:
- Find Transactions (Full Level)
- Fulfill Orders (Full Level)
- Item Fulfillment (Full Level)
- Sales Order (Full Level)
- Add Permissions for Lists:
- Items (Full Level)
- Currency (Full Level)
- Add Permissions for Setup:
- User Access Tokens (Full Level)
- Soap Web Services (Full Level)
- Add Permissions for Transactions:
- Click Save.
3. Assigning Users to Token-based Authentication Roles in NetSuite
- Go to Setup > Users/Roles > Manage Users.
- Choose an Administrator user, then select Edit.
- Click the Access subtab.
- Add DHL Express Commerce Integration Role into the Roles
- Click Add.
- Click Save.
4. Creating Applications for Token-based Authentication in NetSuite
- Go to Setup > Integration > Manage Integrations > New.
- Enter DHL Express Commerce TBA in Name field.
- Check the USER CREDENTIALS box on the Authentication subtab.
- Check the TOKEN-BASED AUTHENTICATION box on the Authentication subtab.
- Click Save.
- The confirmation page will display the Consumer Key and Consumer Secret for this integration, so please note them down for later use.
5. Creating and Assigning a TBA Token in NetSuite
- Go to Setup > Users/Roles > Access Tokens > New.
- On the Access Tokens page, click New Access Token.
- Select DHL Express Commerce TBA as the Application Name
- Select the User that you assign DHL Express Commerce Integration Role with previously.
- Select DHL Express Commerce Integration Role as the Role
- Click Save.
- The confirmation page will display the Token ID and Token Secret, so please note them down for later use.
6. Obtaining Web Service Account ID in NetSuite
- Go to Setup > Integration > Web Services Preferences.
- Note down ACCOUNT ID value for later use.
7. Entering NetSuite Integration Details in DHL Express Commerce
- Log into DHL Express Commerce.
- Go to Settings > Integrations.
- Click Add a new integration.
- Click NetSuite.
- Tick Enable NetSuite.
- Enter the Web Service Account ID.
- Select Token-Based as the Authentication Method.
- Enter Consumer Key.
- Enter Consumer Secret.
- Enter Token ID.
- Enter Token Secret.
- Click Save.
- Click Test to ensure it works to check the integration connection.
Import Custom Fields
The following information can be imported from NetSuite to DHL Express Commerce when the values are stored in custom fields with designated script ids:
- Delivery Instructions - custbody_delivery_instructions (Text Custom Field)
- Authority To Leave - custbody_authority_to_leave (Boolean Custom Field)
- Signature Required - custbody_signature_required (Boolean Custom Field)
Troubleshooting
The NetSuite API limits each NetSuite user to a single API connection based on the user's login credentials. This can cause DHL Express Commerce that use a NetSuite connection to fail with the following errors if other calls are made to the NetSuite API using the same credentials:
- Only one request may be made against a session at a time
- The operation has timed out
If the error occurred while updating your NetSuite orders, then DHL Express Commerce will try to update these orders again in a scheduled fashion to ensure the orders are being updated in NetSuite.
Alternatively, you can purchase concurrent connection licenses from NetSuite which will permit simultaneous requests from the same user account.
For temporary testing purposes, you can point DHL Express Commerce to your NetSuite sandbox environment by appending the sandbox Id to to your Web Service Account Id, e.g. '1234567_SB1' (this has '_SB1' appended).