Discount codes are created by sellers to be provided to potential buyers. They are useful in scenarios where a buyer is bargaining for a lower price, but the seller doesn't want to lower the price of the listing publicly. After creating a discount code, give it to the buyer to apply at checkout.