How to map GS1 GLNs to warehouses and delivery sites
A Global Location Number can identify a party or a location. Before routing a delivery, confirm what the supplied GLN identifies and which shipment field it belongs to. A valid company GLN is not necessarily the warehouse GLN.
Keep the legal party and physical stop distinct.
The GS1 GLN allocation rules distinguish legal entities, functions, physical locations and digital locations. Keep the GLN as text and retain the entity type, relevant partner reference and effective dates. Do not equate an internal site code or a UN/LOCODE with a GLN; cross-reference them only when their scopes are understood.
One buyer, two warehouses, one ambiguous order.
A synthetic order has the retail buyer’s GLN and the name of a city where the buyer operates two distribution centres. The buyer GLN is valid but does not choose a delivery stop. Request the receiving site reference and confirm it against master data before routing. Do not select a warehouse by name similarity or automatically reuse the billing address.
Test identity, time and routing independently.
- Test a valid check digit with the wrong entity type. Send it to the master-data owner instead of treating it as a valid destination.
- Test a site mapping that was valid last month but is no longer active; preserve the mapping used for historical movements.
- Check that two warehouses in the same city remain distinct when their shipment records reach the partner.