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:- Collect supplier information — obtain the manufacturer’s complete business name and postal address.
- Build the MID code using these parts (in order):
- The two-letter ISO country code for the supplier’s country (for example
GB,NL,DE). - The first three letters of the supplier’s first and second names (when applicable).
- The highest numerical digits (up to four) from the address line.
- The first three letters of the supplier’s city name.
- The two-letter ISO country code for the supplier’s country (for example
MID Address and MID Name
No special formatting is required for MIDAddress or MIDName. Use the values exactly as provided by the supplier. ExampleSending MID data from SFCC
The Global-e cartridges add product metadata to the SendCart payload from theglobale.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 forglobale.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
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
- SendCart and checkout flow
- Hooks reference —
globale.getPLICustomMetadata

