legal ground
Article 687 of the Civil Code
If the parties agree in the suretyship contract that the surety shall bear the suretyship liability when the debtor fails to perform the debt, it is a general suretyship.
Article six hundred and eighty-eight
If the parties agree in the guarantee contract that the guarantor and the debtor shall be jointly and severally liable for the debt, it is a joint liability guarantee.
When the debtor of joint and several liability guarantee fails to perform the due debt or the circumstances agreed by the parties occur, the creditor may require the debtor to perform the debt, or may require the guarantor to assume the guarantee liability within the scope of its guarantee.
Article 700
After assuming the suretyship liability, unless otherwise agreed by the parties, the surety shall have the right to recover from the debtor within the scope of its suretyship liability and enjoy the rights of the creditor to the debtor, but it shall not harm the interests of the creditor.