Can the lawyer get a refund if he loses the fee for obtaining the defendant's ID card?

According to relevant information, it is generally not refundable. However, if there is an agreement to return it, it shall be handled in accordance with the agreed circumstances. Before entrusting a lawyer to handle relevant business, both parties will sign an agency contract. If there is a clause in the contract to refund the expenses used in the case, the expenses can be refunded through negotiation if conditions permit.