You level up by selling items! Each item you sell gives you a bit more experience.

The more an item is worth, the more experience you get for selling it! Note that this only cares about the base value of the item, though - while item quality matters, surcharging and discounting do not!