Samsung Electronics Co. agreed to pay Apple Inc. $548 million this month in court-ordered damages, marking the first meaningful exchange of money from a nearly five-year-long patent dispute between the smartphone companies.

In a filing Thursday in U.S. District Court in San Jose, Calif., Samsung said it will pay the damages after a court denied the company’s latest appeal in the case. However, Samsung said it might seek reimbursement from Apple depending on any future rulings from the U.S. Patent and Trademark Office or the U.S. Supreme Court.

Apple first sued Samsung in April 2011, saying its Korean rival had copied the look and feel of the iPhone. A jury ruled in favor of Apple in 2012 and awarded $1.05 billion in damages.

Samsung agreed to pay roughly half that amount—represented by this month’s payment—following several other legal proceedings. In the spring, the two companies will face off in the San Jose court over an additional $400 million from the original award.

The two companies also sued each other in courts around the world after Apple first filed suit in 2011, but they agreed to drop all litigation outside the U.S. last year. Beyond that, Samsung is appealing a $120 million damage award for violating Apple software patents from a second U.S. trial in 2014.