take the rap
take the rap {v. phr.}, {slang}
To receive punishment; to be accused and punished.
All of the boys took apples, but only John took the rap.
Joe took the burglary rap for his brother and went to prison for two years.
Categories:
Source: A Dictionary of American Idioms