A prisoner exchange or prisoner swap is a deal between opposing sides in a conflict to release prisoners: prisoners of war, spies, hostages, etc. Sometimes, dead bodies are involved in an exchange. From Wikipedia
Months of secret diplomacy culminated in a swap that tested human rights safeguards in U.S.–Latin America migration policy.