Amazon has been ordered by an American court to pay $51m (£31.2m) to Toys R Us after the e-tail giant terminated an exclusive distribution deal in 2004.

The partnership was due to last until 2010, with the toy retailer agreed as Amazon’s sole supplier of toys, games and baby goods.

The fine must be paid within 45 days. Amazon said that the “unanticipated” payment would be charged as “other operating expenses” in its second quarter.