By
Mahmudullah made 38 while Tim Southee, Trent Boult and Neil Wagner took three wickets each.
New Zealand were all out in their first innings earlier in the day for 354, a lead of 65.
Henry Nicholls topscored with 98, Ross Taylor made 77 and Tom Latham 68.