Basics of inventory and buying wholesale and selling retail

I have moved from only doing design work to selling products online. I buy at wholesale and sell for a profit. How do I claim only the profit when I get a 1099 for the retail amounts? I don't know even how to begin writting off those those wholesale costs.