Legal basis:
People's Republic of China (PRC) Civil Code
Article 562 The parties may terminate the contract through consultation. The parties may agree on the reasons for one party to terminate the contract. When the reasons for the termination of the contract arise, the creditor may terminate the contract.
Article 582 Where the performance is not in conformity with the agreement, it shall bear the liability for breach of contract in accordance with the agreement of the parties. If the liability for breach of contract is not stipulated or clearly stipulated and cannot be determined according to the provisions of Article 510 of this Law, the injured party may reasonably choose to require the other party to bear the liability for breach of contract such as repair, rework, replacement, return, price reduction or remuneration according to the nature of the subject matter and the size of the loss.