take the rap
• be punished or blamed, especially for something that is not one's fault.
• "it didn't worry him if someone else took the rap for his misdemeanours"
Similar:
be punished,
be blamed,
take the blame,
pay,
suffer,
suffer the consequences,
pay the price,
answer for something,
be for it,
carry the can,
Opposite:
get off scot-free,