M2M-Ship Installation and Integration Guide

Article • 8/1/2025 • 11 min read

M2M-Ship Installation and Integration

This section provides details on the installation and configuration of the Aptean Ship integration. The image below illustrates the M2M - Ship integration flow.

Prerequisites

Before proceeding with the installation, it is important to fulfill the following prerequisites:

For M2M:

For Ship:

For Smart Hub:

For AIP:

Installation Instructions for Ship Integration

This section provides the steps for installing the Ship integration within Smart Hub.

The installation process will be managed by the Aptean Support team.

To set up Smart Hub for the integration, perform the following:

  1. Download and extract the installation package.

    1. Download the certified version of the package zip file (NU_Ship_Made2Manage_8.0_ 2024xxxx.x.zip) from the M2M-Ship Integration SharePoint location.

    2. Unzip the file and copy all the contents to C

      as shown below:

  2. Open the ConfigSettings.xml file located in C

    using a text editor, and update it for Smart Hub installation and configurations. This file is used to set the parameters required to install Smart Hub.

    You require administrator rights to update the ConfigSettings.xml file.

    • Update the installation path and Repository name. Update with the value where EMF is installed in the VM.

      For more details, refer to the ConfigSettings.xml section.

  3. Open the ConfigShip.xml file located in C

    using a text editor, and update the ConfigShip.xml file.

    1. Change ConfigShip.xml for the integration process configurations.

    2. Update M2M API configuration and Ship API configuration information under the

      loop.

    3. Update AIP configs with M2M and Ship tenant information, which can be obtained from the DevOps or Dev team.

      For more details, refer to the ConfigShip.xml section.

  4. Configure New Company. To add a new company, create a new tenant with a unique name (Example: DB002). The body must be copied and pasted below .

  5. If EMF or MariaDB already exists in the environment (if the Ship integration solution has been executed previously), perform the following:

    1. Remove the Smart Hub Repository database.
    2. Uninstall MariaDB.
    3. Stop the Smart Hub server from services and uninstall the Smart Hub application.
  6. Run Setup.bat:

    1. Open the command prompt in Administrator mode and navigate to the C
      folder.
    2. Run the Setup.bat file; it should perform the following:
      • Install MariaDB 10.6.10.
      • Install Smart Hub application (v733).
      • Create a repository with the name specified in ConfigSettings.xml.
      • Install Smart Hub license.
      • Import the Master package into the repository and run the Installer process.
      • Create processes and services based on the tenant details specified in ConfigShip.xml.
      • Run the ConfigureDatabase process, setting up all configurations according to the details specified in ConfigShip.xml.
      • After successful completion, sensitive information will be masked, and file names will be changed (e.g., ConfigSettings.xml converts to ConfigSettings_ masked.xml, ConfigShip.xml converts to ConfigShip_masked.xml).
  7. To set up another company, change the file names:

    1. Rename the ConfigShip_masked.xml file to ConfigShip.xml and provide values for specific fields instead of masked text:
      1. /Settings/Main/M2MConfigs/password
      2. /Settings/Main/ShipConfigs/clientSecret
    2. Rename the ConfigSettings_masked.xml file to ConfigSettings.xml and provide values for specific fields instead of masked text: i. /Settings/DatabaseSettings/adminPassword
    3. Add new company configurations in the ConfigShip.xml file.
    4. Run the Installer process to create tenant-specific processes and services.
    5. After the successful installation of the added company, sensitive information will be masked, and file names will be changed (e.g., ConfigSettings.xml converts to ConfigSettings_masked.xml, ConfigShip.xml converts to ConfigShip_masked.xml).

For Existing Environment Setup with NU Already Installed (Manual Import)

Follow the steps below to set up an existing environment with NU already installed:

  1. Download and copy the latest file to C

    .

  2. Update the datasourceconfigship.csv file for configuring the database and process schedule settings.

  3. Open Smart Hub and log in to repositories.

  4. Right-click on the Root Folder, select the Import option from the context menu, and choose the NU Ship xemf file from the location in the first step. Complete the import. This action should create a ShipIntegration folder and processes.

  5. Expand the ShipIntegration folder, go to the ConfigureDatabase process, then right-click and select the Run Now option from the context menu. This action should initiate the configuration of the Ship integration.

  6. Exit Smart Hub.

    If you are updating an existing NU Ship solution, remove the older version by deleting the Shipping Integration folder in the Smart Hub repository.

For Existing Environment Setup (if no upgrade integration solution has already run once)

Follow the steps below to set up an existing environment with NU already installed:

  1. Drop the Smart Hub repository database.
  2. Uninstall MariaDB.
  3. Stop the Smart Hub server from services and uninstall the Smart Hub application.
  4. Drop the AI_CONFIGSHIP table from the database.
  5. Download and copy the latest file at C
    .
  6. Change the ConfigSetting.xml for Smart Hub installation and configurations.
  7. Change ConfigSetting.xml for DB and process schedule configurations.
  8. Run Setup.bat.

Configurations in ConfigSettings and ConfigShip

This section provides the configuration settings and parameters available in the ConfigSettings.xml and ConfigShip.xml files.

ConfigSettings.xml

This topic provides the configuration settings to be done in the ConfigSettings.xml file.

Use the ConfigSettings.xml file to define parameters necessary for the installation of Smart Hub, repository creation, license installation, and process importing. Be sure to adjust key entries as per the installation.

EMFInstallationPath: Specify the installation path for the Smart Hub application.

ConfigShip.xml

This topic provides details on the parameters available in the ConfigShip.xml file.

Main (Common for All Tenants or Companies)

M2MConfigs

The following table provides the default values and their descriptions for the parameters available in M2MConfigs.

ParameterDefault Values Or ExamplesDescription
baseURIhttps://prod.m2m.apteancloud.comThis is the base URI to make any request through the API of M2M.
usernameThis is a required parameter for authentication to make request through the API for M2M.
passwordRequired to authenticate the user.
clientIDRequired for API authentication.
clientSecretRequired for API authentication.
ShipConfigs

The following table provides the default values and their descriptions for the parameters available in ShipConfigs.

ParameterDefault Values Or ExamplesDescription
baseURIhttps://prod.ship.apteancloud.com/This is the base URI to make any request through the API of Ship.
ClientIDThis is required to acquire tokens for authentication.
clientSecretThis is required to acquire tokens for authentication.
ScopeThis is required to acquire tokens for authentication.
AudienceThis is required to acquire tokens for authentication.
taskManagement_ baseUriThis is the base URI to make any request through the API of Ship Task management.
taskManagement_ scopeThis is required to acquire tokens for task management API authentication.
AIPconfig

The following table provides the default values and their descriptions for the parameters available in AIPconfig.

ParameterDefault Values Or ExamplesDescription
baseURIhttps://integration- graph.apteansharedservices.comThis is the base URI to make any request through the API of AIP.

Tenants (Specific to Tenant or Company)

DataSourceConfig

Within the ConfigShip.xml file, update the highlighted fields in the DataSourceConfig section to establish connections with the M2M company database. Additionally, customize the upload and download schedule according to your requirements. It is advised to allocate 59 minutes for Sales Order upload and 30 minutes for Shipment download.

The following table provides the default values and their descriptions for the parameters available in DataSourceConfigs.

ParameterDefault Values Or ExamplesDescription
DB TypeM2MDBType of database
DB UsernameSAUsername for database access
DB PasswordABC-123Password for database access
Server NameName of the server (if applicable)
Database NameM2MDATAName of the M2M database
ParameterDefault ValuesDescription
Port Number1433Port number for database connection
Upload Start Date2024-01-01Start date for scheduled uploads
Upload End Date2100-01-01End date for scheduled uploads
Upload Start Time00:00:00Start time for scheduled uploads
Download Start Date2024-01-01Start date for scheduled downloads
Download End Date2100-01-01End date for scheduled downloads
Download Start Time00:00:00Start time for scheduled downloads
Download Repeat Interval30Interval (in minutes) for repeated downloads
Upload Repeat Interval59Interval (in minutes) for repeated uploads
ProcessConfigs

Amend the highlighted fields in the ProcessConfigShip.csv file with your specific configurations. It is advisable to ensure consistency between {ApteanShip-Company} and {M2M-CompanyDB} configurations mentioned previously. For the Production environment, eliminate ‘stg.’ from the URL.

The following table provides the default values and their descriptions for the parameters available in ProcessConfig.

ParameterDefault Values Or ExamplesDescription
M2M-baseURLhttps://prod.m2m.apteancloud.com/Base URI for M2M API requests
M2M-UserNameRequired para- meter for API authentication
M2M-PasswordRequired for API authen- tication
ParameterDefault ValuesDescription
M2M-ClientIDRequired for API authen- tication
M2M-ClientISecretRequired for API authen- tication
M2M-ScopeM2MAPIRequired for API authen- tication
M2M-TenantID2023R1Required for API authen- tication
M2M-CompanyID01Required for API authen- tication
si-aip-baseUrlhttps://integration-graph.aptean- sharedservices.com/v1Base URL for AIP API (For Production: Use alternate URL)
si-aip-eventCon- sumerWebhookUrlhttps://integration-con- sumer.apteansharedservices.com/v1/webhook/ {AIP-TenantId}Event con- sumer web- hook URL for AIP (For Pro- duction: Use alternate URL)
si-aip-contactEmailCustomer Email ID
si-tenantIdAIP Tenant ID
si-tenantKeyAIP Tenant Key
ParameterDefault ValuesDescription
si-m2m-productId446ebd6c-b3c1-4b81-906f-b6dfe72b637eM2M Product ID
si-m2m-version8.0M2M version
si-m2m-systemDbM2MSystemM2M System Database Name
si-m2m-shipDateFilter2024-01-01Date from which ship- ments need to be fetched
si-apteanship-tenantCodem2mqaTenant code provided by Aptean Ship
si-apteanship-locationCodeDefaultLocation code provided by Aptean Ship
si-apteanship-com- panyNameNU-ShipCompany name provided by Aptean Ship
si-apteanship-productIdd6e08344-697c-4c26-8822-52842cda808eAptean Ship Product ID
si-apteanship-eventPro- ducerTenantIdEvent pro- ducer tenant ID provided by Aptean Ship
si-apteanship-sourceId512Source ID provided by Aptean Ship
M2MConfigs

The following table provides the default values and their descriptions for the parameters available in M2MConfigs.

ParameterDefault Values Or ExamplesDescription
CompanyID01It is required to fetch or create data to respective company in M2M.
FacilityDEFAULTIt is required to fetch or create data to respective facility in M2M.
ShipConfigs

The following table provides the default values and their descriptions for the parameters available in ShipConfigs.

ParameterDefault ValuesDescription
companyIDShip CSTRefers to Ship company.
plantCode003This is required in every API request body.
databaseNameThis specifies which database operations need to perform.
AIPConfigs
Ship

The following table provides the default values and their descriptions for the AIPConfigs parameters available in Ship.

ParameterDefault ValuesDescription
x-aptean- tenantIt refers to the tenant ID required for authentication to make an API call to AIP.
x-aptean- apimRequired for authentication to make API call to AIP.
x-aptean- productIt refers to the product ID for Ship, which is required to make an API call to AIP.
M2M

The following table provides the default values and their descriptions for the AIPConfigs parameters available in M2M.

ParameterDefault ValuesDescription
x-aptean- tenantIt refers to the tenant ID required for authentication to make an API call to AIP.
x-aptean- apimRequired for authentication to make API call to AIP.
x-aptean- productIt refers to the product ID for M2M, which is required to make an API call to AIP.

Sample Formats

Customize the configurations for different companies by updating their respective company names and locations in the tenants’ section to ensure accurate settings for each company.

Sample format for single company:

Sample format for multi-company:

Setting Up SMTP Server

This section provides details on setting up the SMTP server, which is required to send emails to the recipients for error notifications.

If an SMTP service already exists for other integrations, you still need to set up this service for Ship integration.

To set up the SMTP server, perform the following:

  1. Open the Smart Hub repository, navigate to Services, and then select SMTP Services.

  2. Open MySmtpService. It should resemble the image below:

  3. Configure the following details:

    • From: Name of the Sender.
    • From address: Email address of the sender.
    • Email server:
      • For Gmail: smtp.gmail.com
      • For Outlook: smtp.office365.com
    • Username: Username for the sender’s mail account.
    • Password: If two-factor authentication is enabled, provide the application key. Otherwise, provide the email account password.
  4. Click Apply and then OK.

Field Validations

When synchronization occurs from Aptean Ship to M2M, ensure that the following fields are filled in:

Use Cases

Use Case 1: Setting Up Company Name

Ensure that your company name is properly configured in Aptean Ship after installation or configuration.

Use Case 2: Syncing Source Fields

Make sure that information like Ship Via synchronizes correctly after setup. Only active Ship Vias are synced. You can view the Ship Via map using the ‘carrier - service’ filter in Aptean Ship. Key Ship Via details from M2M will appear in the Value Translations field.

Use Case 3: Creating a New Shipping Record

When creating a new Shipping record, ensure all necessary details are included. Afterward, upload the record to Aptean Ship for processing.

You’ll find the uploaded document listed under your company name.

Use Case 4: Editing Shipping Records

If you need to make changes to a Shipping record, simply edit it and upload the updated document to Aptean Ship. The system will ensure the changes are accurately reflected.

Use Case 5: Completing Shipping Processes

After creating a Shipping record, complete the process by creating a Shipment.

Populate all necessary details from the uploaded document, including Ship Via and shipping rates.

Once completed, the system will handle the rest, including updates to M2M fields.

Additionally: