Can I get a refund if my patent application is unsuccessful? How to withdraw?

Usually patent applications are non-refundable, regardless of whether the patent application is successful.

Patent application subsidies:

Examination procedures for invention patent applications:

Filing an application - acceptance, fees - preliminary examination - request for substantive examination - Substantive request - grant of patent rights - issuance of a patent certificate.

Examination procedures for utility model patent applications:

File the application - accept and pay the fee - preliminary examination - grant the patent right - issue the patent certificate.

Examination procedure for design patent application:

File the application - accept and pay the fee - preliminary examination - grant the patent right - issue the patent certificate.