How to map UN/CEFACT package type codes in shipment data
Store the package type code, code list version, count and packaging level together. A shipment with two pallets holding ten cartons each does not have one interchangeable package count.
Pin the list and the receiver’s accepted values.
The UNECE code list index describes Recommendation 21 and its complementary package-name codes. Check which list and version the receiver accepts. Preserve raw WMS descriptions and explicit mappings rather than taking the first code with a similar label. Do not mix package names, packaging materials and unit-of-measure values in the same field.
Two pallets and twenty cartons are both correct at different levels.
In a synthetic record, a WMS reports twenty cartons arranged on two pallets. A carrier expects handling units while another interface asks for cartons. Send each count only where the profile expects it. Do not collapse the records into a total of twenty-two packages or overwrite the carton count after a pallet scan.
Make unknown mappings and hierarchy errors visible.
- Test a valid Recommendation 21 value that the partner profile does not accept.
- Check repacking and mixed loads without changing the historical shipment record.
- Route a vague source value such as “pack” to review. A package type code alone does not establish suitability for dangerous goods.