Recalled seamer Matt Henry and in-form opener Martin Guptill have combined to steer the Black Caps to a 15-run victory in the fifth and final ODI against Pakistan at the Basin Reserve in Wellington.
It was their 12th win on end across all formats, and left skipper Kane Williamson a satisfied man going into the three-match T20 series against Pakistan beginning on Monday at the same venue.
Guptill's 100 off 126 balls underpinned New Zealand's score of 7-271, while Henry's 4-53 kept Pakistan on the back foot as they were bowled out for 256 with an over remaining.
"One-day cricket is fickle in its nature, and it's great to have some success in recent times," Williamson said.
"It's about improving all the time, and challenging each other to get better."
Williamson said Henry's performance was a credit to his hard work, and showed the depth of the competition to earn a place in the New Zealand team.
"He's been champing at the bit to get a game, and he was outstanding today with the new ball," the skipper said.
"Whenever he's come in, he's performed really well for us and it's great to have so many fast bowlers raring to go."
Henry was making his first international appearance since the Boxing Day ODI against the West Indies, coming in for the rested Trent Boult.
The 26-year-old right-armer whistled through the Pakistan top order, removing Fakhar Zaman (12), Umar Amin (2) and Babar Azam (10) to leave the visitors teetering at 3-31 in the eighth over.
Pakistan battled to 5-57 after 17 overs, losing Mohammad Hafeez for six and Sarfraz Ahmed for three before Haris Sohail dug in with Shadab Khan to put on 105 for the sixth wicket.
Haris was dismissed early in the 38th over for 63, with Shadab disappearing two overs later for 54.
At 7-171, with a shade over 10 overs remaining, Pakistan's tailenders launched a valiant rearguard action via Mohammad Nawaz (23 off 12) and Aamer Yamin (32 off 27).
But Henry returned to remove Rumman Raees with the last ball of the 49th over to wrap up the game.
Earlier, Guptill had brought up his 13th ODI century at the end of the 41st over, but was out the next ball he faced, lofting Rumman to Hafeez at long-on.
Guptill and Ross Taylor's 112-run third-wicket stand set up a potential grandstand finish, but Taylor's dismissal for 59 two balls into the 45th over triggered a late New Zealand collapse.
From 3-242, the Black Caps lost four wickets for the addition of just 12 runs, with only Colin de Grandhomme providing late resistance.
The 31-year-old allrounder, who belted 74 off 40 balls in the fourth ODI, combined with Tim Southee to add 27 off the last 19 balls, ending the innings unbeaten on 29.