Half-centuries from Martin Guptill and Kane Williamson saw New Zealand beat Pakistan by three wickets (D/L) in the third ODI and wrap up a two-nil series victory in Auckland.
The Black Caps chased down a reduced target of 263 with seven wickets down after a brief rain delay in their innings had caused the Pakistan's total of 290 all out to be adjusted.
Guptill (82) and Williamson (84) put on 159 for the second wicket after the Kiwis lost captain Brendon with the first ball of the second over.
The Asian side fought back though and took wickets at regular intervals to peg the home side back but a crucial 35 off just 29 balls from allrounder Corey Anderson effectively sealed the game for the hosts.
Mitchell Santner (10*) hit the winning runs with two balls to spare and had tail-ender Adam Milne at the crease with him when the series-clinching runs were struck.
After they lost the first ODI by 70 runs and the second game was rained out, Pakistan put on a solid total after winning the toss and batting first.
Babar Azam (83) and Mohammad Hafeez (76) scored fifties as the visitors were determined to end the tour with a share of the ODI series spoils.
Fast bowler Milne however pulled the game back in New Zealand's favour as he took three for 49 to put slow Pakistan down.