According to the Los Angeles Times, Apple is paying out $400 million in refunds to some e-book buyers as part of a class-action lawsuit. A federal appeals court found that Apple fixed prices of e-books and made purchasing unfair for consumers by working with major publishers and overcharging consumers by millions of dollars, according to The Washington Post.

CNET reports that customers who bought e-books published by Hachette Book Group, HarperCollins, Penguin, Simon & Schuster and Macmillan from April 2010 to May 2012 will receive refunds of $1.57 for most books and $6.93 for bestsellers.

>> Click here to visit the settlement website

Amazon, Apple, Barnes & Noble and Kobo customers will automatically receive the credits in their accounts, according to the settlement website. If you bought an e-book from another retailer, find out how to get your refund here.

The credits are valid until June 24, 2017.

>> Click here and log in to see whether you have a refund waiting in your Amazon account

Learn more here or here.

Update June 22, 2017: This story has been updated to include when the settlement credits are no longer valid.