The Township and County-Administered City Mediation Act Article 28

For the civil action pending in the court, where a successful mediation is reached and the mediation agreement is approved by the court before the judgment becomes final and binding, the action is concluded accordingly. The plaintiff may move for the return of two third of the court costs paid within three months from the day of the service of the successful mediation approved by the court.For the criminal cases instituted only upon the complaint, the successful mediation is reached during the investigation or before the conclusion of debate in the court of first instance and the intention of withdrawing the complaint of the party has been recorded in the mediation agreement, which is approved by the court, the complaint or private prosecution shall be deemed as withdrawn at the time the successful mediation is reached.
中文原文 鄉鎮市調解條例第28條
民事事件已繫屬於法院,在判決確定前,調解成立,並經法院核定者,訴訟終結。
原告得於送達法院核定調解書之日起三個月內,向法院聲請退還已繳裁判費三分之二。
告訴乃論之刑事事件於偵查中或第一審法院辯論終結前,調解成立,並於調解書上記載當事人同意撤回意旨,經法院核定者,視為於調解成立時撤回告訴或自訴。

English translation for reference only; the Chinese text prevails. Not legal advice.