The county auditor shall prepare an election certificate for every county candidate declared elected by the county canvassing board, and the secretary of state shall prepare a certificate for every state and federal candidate declared elected by either a county canvassing board or the State Canvassing Board. Except as otherwise provided in this section, the secretary of state or county auditor, as appropriate, shall deliver an election certificate on demand to the elected candidate. In an election for United States representative, the secretary of state shall deliver the original election certificate to the chief clerk of the United States House of Representatives. In an election for United States senator, the governor shall prepare an original certificate of election, countersigned by the secretary of state, and deliver it to the secretary of the United States Senate. In an election for state representative or state senator, the secretary of state shall deliver the original election certificate to the chief clerk of the house or the secretary of the senate. The chief clerk of the house or the secretary of the senate shall give a copy of the certificate to the representative-elect or senator-elect. Upon taking the oath of office, the representative or senator shall receive the original certificate of election. If a recount is undertaken by a canvassing board pursuant to section 204C.35, no certificate of election shall be prepared or delivered until after the recount is completed. In case of a contest, the court may invalidate and revoke the certificate as provided in chapter 209.
No certificate of election shall be issued until seven days after the canvassing board has declared the result of the election. In case of a contest, an election certificate shall not be issued until a court of proper jurisdiction has finally determined the contest. This subdivision shall not apply to candidates elected to the office of state senator or representative.