have the goods on
• possess information about (someone) which may be used to their detriment.
• "you don't lie to the FBI when they already have the goods on you"
get the goods on
• obtain information about (someone) that may be used to their detriment.
• "he planned to hire a private eye to get the goods on his persecutors"