"The carriage of goods to New Zealand, including from Australia, Japan and Malaysia is important for the supply of goods and services throughout the New Zealand economy."
While the surcharges comprised only part of the total charges they would have affected price competition, said Justice Venning.
Relevant surcharge revenue was $4.2 million and the conduct of Air New Zealand was worse than several other airlines, with the exception of Qantas and Cargolux.
"Given its position in the New Zealand market place, the conduct of Air NZ is likely to have had a greater impact on the New Zealand markets and consumers."
Air New Zealand was the last airline to settle faced a maximum penalty of $10 million but the judge reduced the figure for its admissions, co-operation with the commission and its clean record on Commerce Act contravention.
In a statement the airline said the settlement avoided "further protracted and costly litigation" and none of the settlement related to cargo shipped from New Zealand to any other country.