Every business has unhappy customers sometimes. Handled well, a complaint can strengthen the relationship.
Respond quickly
Acknowledge the problem the same day, even if you need time to fix it.
Listen fully
Let them explain without interrupting or defending.
Own your part
Apologise clearly where you got something wrong.
Agree a fix
Say what you will do and by when, then do it.
Learn from it
Ask whether something in the sales process set the wrong expectations.