But the commissioner then denied Alesco the interest deductions and treated the funding structure as a tax-avoidance arrangement.
Alesco went to the High Court over the issue, but the IRD's position was upheld by Justice Paul Heath in 2011.
Alesco then took the case to the Court of Appeal, where it was dismissed in a unanimous decision by Justices Mark O'Regan, Rhys Harrison and Douglas White.
"There is only one available inference: Alesco NZ adopted the OCNs solely in pursuit of the goal of tax avoidance," the trio's decision said.
University of Auckland Business School senior lecturer in tax law Mark Keating called the Court of Appeal decision a "complete slam dunk for the IRD". Alesco was now seeking leave to appeal to the Supreme Court and its lawyer, Lindsay McKay, said an application was filed late on Thursday.
While the amount disputed with Alesco is about $8.6 million of tax, penalties and interest, the stoush is viewed as a test case for other avoidance battles with Inland Revenue.
The IRD has viewed the use of OCNs by other entities - including Qantas and Toll - as a tax avoidance arrangement and 16 companies have challenged its assessment.