The multiyear agreement, which includes both e-books and print books, broadly follows a deal Amazon recently worked out with Simon & Schuster. A source with knowledge of that deal said it was negotiated relatively quickly and gave the publisher control over most of its pricing but offered incentives to sell at lower prices. Amazon got increased co-op funds, the payments for placement on the retailer’s website. Simon & Schuster declined to confirm the terms.

James L. McQuivey, a Forrester analyst, said that if Hachette won in the short term, it would be a different story in the long run.

“Hachette got Amazon to allow them to control pricing while also cutting the amount of money Amazon takes if the publisher does engage in discounts, which appears like a victory,” the analyst said. “But in the end this all cements Amazon’s ultimate long-term role in this business, which will only put Hachette right back in this situation every time they are up for renegotiation.”

Image Books and other items at an Amazon warehouse in Phoenix. Credit... Ralph D. Freso/Reuters

Neither side gave many details of the deal, but both pronounced themselves satisfied.

An Amazon executive, David Naggar, said Amazon was “pleased with this new agreement as it includes specific financial incentives for Hachette to deliver lower prices.”

Amazon feels publishers get too much of the revenue from e-books, so that was another major area of contention. In a letter Thursday to authors and agents, Michael Pietsch, Hachette’s chief executive, said the percentage of revenue on which Hachette authors’ e-book royalties are based “will not decrease under this agreement.”

The change for consumers might be slight.

“What does this mean for the publishing world? Not much,” J. A. Konrath, a fierce critic of traditional publishing houses, wrote on his blog. The big New York publishers, he added, “are no doubt going to continue to price e-books as high as they can to protect their paper sales.”