Sell (Someone) a Bill of Goods

What does the idiom “sell someone a bill of goods” mean?

Definition: Trick someone; be deceptive

Example: I think I was sold a bill of goods. They promised me an office with a window, but all I got was a little cubicle.