How to configure Mainfreight NZ (MAINFREIGHTNZ) in techSHIP [Guide]

Last updated: November 27, 2026

This guide applies to the Mainfreight NZ integration, not Mainfreight LTL V2.

This guide explains how to add and configure this carrier connection, review its available carrier-specific settings, and understand the shipment requirements and operational constraints that apply.

Carrier Requirements and Specifications

This section summarizes onboarding requirements and lists confirmed carrier-specific constraints.

To review all supported carriers and their specific requirements, see: 📄 techSHIP supported Carriers - Master List [Guides List].

Onboarding Requirements

The Mainfreight NZ integration supports:

  • Rate Shopping

  • Void (when carrier shipment submission is enabled)

Information to be Provided

The following credentials and data points are mandatory to connect to Mainfreight NZ. Ensure you have these items available before starting the setup:

DATA ELEMENT

SOURCE (HOW TO OBTAIN)

API Key

Obtain the API key and applicable API permissions from Mainfreight.

Warehouse code and Customer code

Obtain the warehouse and customer codes from the carrier.

Induction address

Provide the warehouse address and contact information.

Confirm the receiver codes and whether the account is authorized to submit shipment and void requests to the carrier.

Specifications and Constraints

Operational Details

  • Shipment submission: When carrier shipment submission is enabled, orders are transmitted to the carrier and a carrier reference is returned. When disabled, techSHIP generates a local shipment reference and label without transmitting the shipment or void request.

  • Shipment information: Supply warehouse and customer codes, receiver code, receiver address and country, ship date, and order lines with product codes and quantities.

  • Rating: Complete the origin and destination suburbs in the third address line, along with the respective cities and countries. Provide package units, weights and dimensions.

  • Manifest: Carrier manifest generation is not supported.

Configuring a Baseline Account

A Baseline Account serves as the fundamental connection point between techSHIP and the carrier's system. It acts as a template that holds the credentials and fundamental properties required to process shipments.

The techSHIP AI Assistant is available from the Carrier page for supported Carrier configuration tasks. For detailed conceptual information and advanced configuration, refer to 📄 techSHIP AI Assistant: Overview & Availability [Information].

Adding a Carrier

Before adding an account, you must ensure the Carrier entity is available for your location.

  1. Click My Carriers from the left menu under the Carriers category.

  2. Click Add Carrier.

  3. Select the desired Carrier.

You may encounter additional messages depending on the carrier status or your plan:

  • Subscription Required (⭐): If the carrier has a star icon, you will see a message stating "To use this carrier, a subscription upgrade is required." Press Contact to Upgrade to proceed.

  • Carrier Suspended: If the carrier has not been used for an extended period, you will see a message stating “This carrier is currently on hold...” Click Request Assistance to reactivate it.

  • Setup Fee Waived: If a carrier from the same carrier group is already installed in your location, you can add this carrier without incurring additional fees.

  1. If needed, update the carrier Name.

  2. Click Add Carrier.

If the purchase confirmation appears, complete the following steps:

  • Review the purchase notice and any applicable charge information.

  • Optionally enter a PO Number.

  • Select I am authorized to complete this purchase on behalf of my organization.

  • Click Purchase to confirm the Carrier addition.

Preview

Once the Carrier is added, you will be automatically redirected to the Carrier page to continue setting it up.

  1. Enter the Code of the Carrier as it appears in your host system.

The Code of the Carrier must match exactly the value defined in the host system. Any discrepancy (including casing or extra spaces) may prevent the carrier from working correctly.

  1. Click Save.

If your facility utilizes the centralized Pickup Schedule, we highly recommend adding this new carrier to your calendar now. While not required to process labels, this ensures accurate induction metrics for your Insights dashboards. To learn more, see 📄 Understanding the Centralized Pickup Schedule & Expected Induction Logic [Information].

Adding a Baseline Account

From the Carrier page, click Add Account to create a new Baseline Account.

You will be redirected to the Baseline Account page to complete the setup.

Entering incorrect values will prevent the system from generating shipping labels.

General Tab

In the General tab, define the administrative properties:

  • Name: Enter a descriptive name for the account.

Enter a descriptive name based on unique properties. E.g.:

  • Carrier Name - Account Number (CarrierX - 123456789)

  • Carrier Name - Consolidator Name (CarrierY - MyConsolidator)

  • Carrier Name

  • Usage: Select the most suitable option:

    • Test: Used for sandbox or onboarding purposes.

    • Production: Used for live shipping.

Keep the Status field set to its default Active value. An account must be Active to remain fully editable. For detailed conceptual information on account statuses, refer to 📄 How to Inactivate and Activate a Carrier Baseline Account [Step-by-Step Guide].

Carrier Tab

  • API Key: Enter the carrier API key.

  • Send HTTP shipments/void requests to carrier (needs Warehousing rights): Enable when the account has the necessary Warehousing API permissions and shipment requests must be transmitted.

  • Warehouse code: Enter the assigned warehouse code. This field is displayed when carrier shipment submission is enabled. The warehouse code is required by shipment validation, including when submission is disabled. Confirm that a warehouse code is already configured before disabling submission.

  • Complete the Sender address.

Labels Tab

Select ZPL. techSHIP generates the label using the carrier-returned reference when submission is enabled, or a locally generated reference otherwise.

Finalizing the Setup

Once you have entered the required information, click Save.

After you save the Baseline Account, check whether the Registration tab or a registration status badge is available.

If neither is available, the Carrier does not use this Registration workflow in techSHIP. If registration is still pending, open the Registration tab and press Registration, then complete 📄 How to Register a Carrier Baseline Account [Step-by-Step Guide] before creating shipments.

From the Carrier page, you can now see the Baseline Account listed with the administrative status Active. The Active status is separate from the account's registration status.

The Baseline Account configuration is now saved. You can continue with Configuring a Client Account below to assign the Baseline Account to a specific Client.

Configuring a Client Account

Adding an Account

Before adding a Client Account, ensure that the Client has been created. For instructions creating a Client, see: 📄 10 - How to create a Client profile [Step-by-Step guide].

  1. Click Clients from the left menu under the Clients section.

  2. Click the Edit icon for the desired Client.

  3. Click Add Accounts.

  4. Optionally, use the Search box to search by Baseline Account Name or Carrier.

  5. Select the Baseline Accounts that will serve as the foundation for your new Client Accounts.

  6. Click Add Accounts.

    A toast notification will confirm the accounts were successfully assigned. Click the Refresh icon if recently added accounts are not displayed.

  1. Click Edit on each newly created account.

  2. Configure the available options in each tab (except Carrier).

For complete instructions on configuring this settings, see 📄 How to configure the Billing Account General Options tab [Step-by-Step guide].

Carrier Tab

  • Service code and Package type: Select the service and packaging type.

  • Customer code: Enter the customer code supplied by the carrier.

  • Specify the sender name and configure the sender address override if applicable.

Specifying Rate Shopping Service Codes

For detailed instructions on how to configure this, see: Include or exclude Service Codes when Rate Shopping [Step-by-Step Guide].

Finalizing the Setup

Once you have entered the required information, click Save.

With the account configured and requirements verified, you can now proceed to process orders as described below.

Configuring an Order

The steps described in this section are not required for carrier setup, and they are offered as an optional review if further order-level configuration is required.

Follow the UI Navigation steps in 📄 05 - How to edit an order’s information - [Step-by-Step guide], using the carrier-specific values provided in this guide.

In the Order's Carrier Tab:

  • Service code: Select the shipment service.

  • Freight class: Specify the applicable freight class.

  • Insurance: Enable carrier insurance when required and provide the declared value information.

  • Receiver code: Enter the carrier-assigned receiver code.

Click Save to apply the order-level changes. After the Order is updated, continue with the standard shipping workflow.

Troubleshooting

  • Authentication or authorization errors: Verify the API Key and the account's Warehousing API rights.

  • Shipment validation errors: Check Warehouse code, Customer code, Receiver code, receiver address, ship date and order line information.

  • Rate validation errors: Verify origin and destination suburbs in address line 3, cities, countries, package units, weight and dimensions.

  • Order not submitted to the carrier: Check Send HTTP shipments/void requests to carrier (needs Warehousing rights). A locally generated label is not evidence of carrier booking.