Pacejet

How to Use Carrier Settings with Mainfreight



Overview

Carrier Settings lets Pacejet administrators define carrier-specific defaults and special behaviors beyond the basic options configured during initial carrier setup. Use Carrier Settings when you need to store or control details such as account numbers, package types, reference field mappings, carrier pickup times, and other settings that affect how a carrier is used in shipping workflows.

Learn more about using Carrier Settings in the article: How to Use Carrier Settings.


Mainfreight Carrier Settings Reference

The following carrier settings are commonly used with the Mainfreight integration. Use this table as a quick reference when configuring reference field mappings and document output for Mainfreight LTL shipments.

Use these values only when they match the shipper's Mainfreight configuration and business process. The reference pass-through fields are available for data mapping in the Pacejet Carrier Settings for Mainfreight.


Carrier setting

What it controls

Default / supported values

Example

MainFreightAPIKey

Controls access to your Mainfreight account. Defined when carrier is setup.

Example value: MyKeyFromMainfrieght

<MainFreightAPIKey>MyKeyFromMainfrieght</MainFreightAPIKey>

MainFreightTestMode

Allows testing and configuration without tendering shipments when this is true.

Example value: true

<MainFreightTestMode>true</MainFreightTestMode>

MainFreightAccountCode

Controls access to your Mainfreight account. Defined when carrier is setup.

Example value: ACCT123

<MainFreightAccountCode>ACCT123</MainFreightAccountCode>

ShipperRef

Maps a Pacejet shipment value through to this Mainfreight field in the shipment.

Example value: ShipRef123

Some ERP integrations like NetSuite use UserField2 for the transaction sales order.

<Reference fieldname="UserField2" carrierfieldname="ShipperRef" ispath="false" />

ConsigneeRef

Maps a Pacejet shipment value through to this Mainfreight field in the shipment.

Example value: CustRef456

Some ERP integrations like NetSuite use UserField1 for the transaction customer reference.

<Reference fieldname="UserField1" carrierfieldname="ConsigneeRef" ispath="false" />

ProbillReference

Maps a Pacejet shipment value through to this Mainfreight field in the shipment.

Example value: PR12345


<Reference fieldname="UserField9" carrierfieldname="ProbillReference" ispath="false" />

DefaultPackageType

Sets the default handling unit package type sent to Mainfreight.

Example value: PLT

<DefaultPackageType>PLT</DefaultPackageType>

DefaultCarrierEarliestPickupTime

Sets the earliest time that Mainfreight can pickup at this facility/site.

Example value:
08:00:00

Must be military time.

<DefaultCarrierEarliestPickupTime>08:00:00</DefaultCarrierEarliestPickupTime>

DefaultCarrierLastPickupTime

Sets the latest time that Mainfreight can pickup at this facility/site.

Example value:
17:00:00

Must be military time.

<DefaultCarrierLastPickupTime>17:00:00</DefaultCarrierLastPickupTime>


Default Carrier Settings

The following carrier settings are the default setup at installation of this carrier.

<Settings>

<MainFreightAPIKey>MyKeyFromMainfrieght</MainFreightAPIKey>
<MainFreightAccountCode>ACCT123</MainFreightAccountCode>
<MainFreightTestMode>false</MainFreightTestMode>
</Settings>


Example Carrier Settings with Reference Fields

The following carrier settings are an example of carrier settings with optional reference fields added.

<Settings>

<MainFreightAPIKey>MyKeyFromMainfrieght</MainFreightAPIKey>
<MainFreightAccountCode>ACCT123</MainFreightAccountCode>
<MainFreightTestMode>false</MainFreightTestMode>
<ReferenceData>
<Reference fieldname="UserField2" carrierfieldname="ShipperRef" ispath="false" />
<Reference fieldname="UserField1" carrierfieldname="ConsigneeRef" ispath="false" />
<Reference fieldname="UserField9" carrierfieldname="ProbillReference" ispath="false" />
</ReferenceData>
</Settings>


When These Settings are Most Useful

Reference pass-through: Use ShipperRef, ConsigneeRef, ProbillReference when these values need to travel end-to-end from Pacejet to Mainfreight.

Back to top