1963, noun and verb, U.S. slang, a carnival term, of unknown origin. Perhaps related to 19c. British slang scamp "cheater, swindler" (see scamp (n.)).
what's the scam
[origin unknown; perhaps related to early 1800s British scamp, ''cheater, swindler'']