What you need to do
- Keep your identifiers in your catalog or PIM under whatever field names you already use (for example
ean,gtin,upc, manufacturer SKU). - When Global-e calls your GetCart endpoint at checkout, map those values onto each product line inside
MetaData.Attributes, using the exact keys below.
Key points
One set of values per cart line or variant. Each size or colour that appears as its own line must carry its own values, not just the parent product. Map from your own fields. Your catalog can name the barcode anything (ean, gtin, barcode); the response must still send it under standardcode.
Omit, don’t fake. When you have no value, leave the key out entirely. Never send an empty string, NA, 0 or -.
Use the right bag. These go on MetaData.Attributes (with AttributeKey / AttributeValue), not the separate per-product Attributes collection used for display and duties.
US MID keeps working alongside it. If you already send midcode / midname / midaddress, keep sending them and add standardcode and mididentifier to the same list.

