Peru will face the All Whites in Wellington in November.
The final round of South American qualifying matches was played on Wednesday afternoon (NZT), with five games across the continent.
With New Zealand to face the fifth placed South American team in the inter-continental playoffs next month, it was a crazy day for permutations, and New Zealand's possible opponent changed on five different occasions.
At the end it was the Peruvians who prevailed, and they could reach their first World Cup since 1982.
World No 12 Peru started the day in fifth, but Colombia had moved into the spot by halftime in all the games, as Argentina led Ecuador to jump into third.