Apple has reached a settlement in its ongoing e-book price-fixing case, which could result in it forking over $450 million.

The deal must still be approved by a New York district court, and the final amount owed by Cupertino depends on the outcome of its pending appeal. If Apple loses, it will pay $400 million into a consumer compensation fund, $20 million to settle state cases, and $30 million to the class counsel.

If the original court ruling, which found Apple guilty of price-fixing, is not affirmed and the liability part of the case must be re-tried, Apple will pay $50 million to consumers, and $10 million each to the states and class counsel. If Apple is ultimately determined not to be liable, it will not have to pay.

Apple has long maintained that it did nothing wrong.

Consumers who purchased Apple e-books between April 1, 2010 and May 21, 2012 will be eligible for any money that ends up in the consumer compensation fund.

Publishers have already paid out about $166 million to settle the case, which was pursued by the Department of Justice, so if Apple is hit with the highest penalty, the total cost of colluding could be $566 million.

News of a deal with the 33 states involved in the case emerged last month, but specific details were not revealed at the time.

New York Attorney General Schneiderman said in a statement that the "settlement proves that even the biggest, most powerful companies in the world must play by the same rules as everyone else."

New York stands to get about 7 percent, or up to $28 million, of whatever funds Apple has to pay to the states.

Other states and regions involved in the case include: Alabama, Alaska, Arizona, Arkansas, Colorado, Connecticut, Delaware, Idaho, Illinois, Indiana, Iowa, Kansas, Louisiana, Maryland, Massachusetts, Michigan, Missouri, Nebraska, New Mexico, North Dakota, Ohio, Pennsylvania, South Dakota, Tennessee, Texas, Utah, Vermont, Virginia, West Virginia, Wisconsin, as well as D.C. and Puerto Rico.

The case dates back to April 2012, when the DOJ sued Apple and five publishersMacmillan, Penguin, Hachette, HarperCollins, and Simon & Schusterover an alleged "illegal conspiracy" involving e-book price fixing. State-level suits were filed at the same time.

The publishers settled with the government, but Apple fought back and the case went to court. Last year, Apple was found guilty of e-book price fixing, but Cupertino is appealing the federal case.

Further Reading

Mobile App Reviews