MID (Manufacturer Identification) Codes are used for customs documentation to identify the manufacturer or supplier of goods in international shipments. Starshipit supports importing MID Codes automatically from select platforms, or you can assign them via the Product Catalogue.
Understanding how and where to apply MID Codes ensures accurate Customs documentation, especially when shipping internationally with couriers such as DHL Express.
Why are MID Codes important?
MID Codes are required by Customs for international shipments to identify the manufacturer or supplier of goods. This information is particularly critical for couriers like DHL Express when submitting Electronic Commercial Invoices (eCIs).
A correctly assigned MID Code:
- Helps ensure smooth Customs clearance
- Prevents delays or rejected shipments
- Allows accurate reporting and tracking of supply chain data
Note: If a MID Code is required and not provided, the shipment may be held by Customs or returned to the sender.
Where can I find or create MID Codes?
MID Codes are not standardised like HS Codes. You’ll typically need to generate them using the following formula:
Country Code (2 letters) + Manufacturer Name (first 3 characters) + City (first 3 characters) + Street Address (first 4 numbers or characters)
Example:
A manufacturer located in Auckland, New Zealand, named “Acme Textiles Ltd” at “12 Queen Street” would have a MID like:
NZACMAUC12QU
You can also refer to your DHL Express account manager or customs broker for help generating or validating MID Codes.
Import MID Codes from your integrated platform
CSV Import
You can import MID Codes from your CSV file by mapping the manufacturer_code field.
- In your Starshipit account, go to Settings, then select CSV File Setup.
- Select Map your own customised CSV.
- Map your MID Code column to the field
manufacturer_code. - Click Save.
Refer to the CSV integration guide for more information.
Peoplevox
Starshipit can import MID Codes from Peoplevox using mapped item attributes.
- Go to Settings Integrations.
- Click Settings next to Peoplevox.
- Scroll down to Import Manufacturer Code from.
- Select the relevant item attribute that contains your MID Code.
- Click Save.
Public API
You can assign MID Codes to shipment items using the Starshipit Public API.
Both the order creation and order update endpoints support the mid_code field inside each item object. The API controller writes this value directly to the shipment item’s Manufacturer Code field.
Example payload:
{
"order_number": "ORDER12345",
"items": [
{
"sku": "ITEM001",
"description": "Test Item",
"quantity": 1,
"value": 20.0,
"mid_code": "NZACMAUC12QU"
}
]
}
Once submitted, the MID Code will appear in the order under the item's Manufacturer Code field.
Assign MID Codes using the Product Catalogue
If you’re not using a CSV import, Peoplevox, or importing via the API the best way to apply MID Codes is through the Product Catalogue in Starshipit.
- Go to Settings > Product Catalogue.
- Click Edit on the product you want to update.
- Enter the MID Code in the Manufacturer Code field.
- Click Save.
Tip If you manage a large catalogue, consider bulk updating via CSV using the Product Import feature.
Manually add a MID Code within an order
You can also edit an individual order and add a MID Code manually if needed.
- Open the order from the New orders grid.
- Click Expand next to the Items section.
- Select Edit next to the item you want to update.
- Enter the MID Code in the Manufacturer Code field.
- Click anywhere to save the item, then Save Order.
Things to consider
Common mistakes:
- Leaving the Manufacturer Code field blank for international shipments may result in Customs delays.
- Using an incorrect MID Code format may cause shipment rejections.
- MID Codes cannot be assigned via automation rules or defaults. They must be imported or entered per product.