How to ask for a refund from the agency when the patent is rejected?

If the patent is rejected, you can't ask the agency for a refund. Because China National Intellectual Property Administration may reject your patent because it does not meet the patent requirements, such as novelty, creativity and practicality, which are not the responsibility of the patent agency. So you can't ask the patent agency for a refund.