When you buy something from a retailer — an auto parts store, for example — the cashier typically scans items using barcodes. Then, those items are automatically deducted from the store’s inventory.