Amazon.com reported slowing online sales growth in the second quarter and said cautious consumers were seeking out cheaper options for purchases,