Skip to main content
U.S. Customs requires the Manufacturer’s Identification Code (MID) for certain shipments to the United States. MID data describes the manufacturer of the goods and is sent to Global-e as product metadata on the SendCart request.
This is an optional feature. The Global-e cartridges expose the globale.getPLICustomMetadata hook so you can supply MID fields per product line item, but there is no out-of-the-box handler — you must implement the hook in your project cartridge.

What is Manufacturer’s Identification

Manufacturer’s Identification (MID) includes the full business name and postal address of the manufacturing supplier, plus a specific code derived from the manufacturer’s name and country. U.S. customs uses this information on qualifying shipments.

When MID is required

MID is required when either of the following applies:
  • Any order shipped to the United States that includes at least one product manufactured in China or Hong Kong, regardless of order value.
  • Any shipment to the United States with a declarative value to customs higher than USD 2,500, regardless of the country of origin of the products.

MID fields

Configure the following values for each product that needs MID data:

Generating an MID code

If the MID code is not already stored in your catalog or PIM, generate it from the supplier’s business name and postal address:
  1. Collect supplier information — obtain the manufacturer’s complete business name and postal address.
  2. Build the MID code using these parts (in order):
    1. The two-letter ISO country code for the supplier’s country (for example GB, NL, DE).
    2. The first three letters of the supplier’s first and second names (when applicable).
    3. The highest numerical digits (up to four) from the address line.
    4. The first three letters of the supplier’s city name.
Example

MID Address and MID Name

No special formatting is required for MIDAddress or MIDName. Use the values exactly as provided by the supplier. Example

Sending MID data from SFCC

The Global-e cartridges add product metadata to the SendCart payload from the globale.getPLICustomMetadata hook. For each product line item, the hook return object is merged into Product.MetaData.Attributes as AttributeKey / AttributeValue pairs (int_globale/cartridge/scripts/helpers/globaleProductLineItemHelpers.js). Important: the attribute keys must be set exactly as shown below (all lowercase): Example SendCart product metadata:

Required customization

Register a handler for globale.getPLICustomMetadata in your project cartridge (or in int_globale_sfra / int_globale_sitegenesis, depending on your architecture). ./hooks.json
./cartridge/scripts/globale/hooks/getPLICustomMetadata.js
The example assumes you define product custom attributes for MID data in your catalog metadata. You can source values from any system — ERP, PIM, supplier feed, or a custom object — as long as the hook returns the three lowercase keys for qualifying products. Return null or omit keys when MID does not apply to a line item (for example, domestic-only products or shipments that do not meet the U.S. customs thresholds above).

See also