A canned motor pump comprising: a magnetically driven part rotatably and pivotally supported by a shaft; an impeller formed on one end side of the magnetically driven part in an axial direction of the magnetically driven part; a pump body in which a pump chamber for housing the impeller is formed; a magnetically drive part having: coils disposed on an outer peripheral side of the magnetically driven part and generating a rotary magnetic field for rotating the magnetically driven part; and a stator core around which the coils are wound; a separator separating the magnetically driven part and the magnetically drive part from each other; coil terminals electrically connected to the coils; a spacer on which the coil terminals are mounted; and a control board electrically connected to the coil terminals, wherein the separator includes: a bottomed cylindrical portion which has one end side opened in the axial direction and in which a housing portion for housing the magnetically driven part is formed; and a flange portion disposed in an extending manner in a radially outward direction from an opening side of the bottomed cylindrical portion, the magnetically drive part is disposed on an other end side in the axial direction with respect to the flange portion on an outer peripheral side of the bottomed cylindrical portion, the separator, the magnetically drive part, and the spacer are embraced in a resin molded body by molding using a resin material, the spacer is extended in the axial direction, and the coil terminals are mounted on the spacer, portions of the coil terminals are disposed outside the resin molded body in an exposed manner, and the exposed portions of the coil terminals are electrically connected to the control board, the spacer includes: a plate portion disposed on the other end side in the axial direction of the bottomed cylindrical portion; and a leg portion extending toward one end side in an axial direction from the plate portion and being brought into contact with the flange portion, and the spacer is disposed in an inside of the resin molded body in a state where the leg portion is deflected. a magnetically driven part rotatably and pivotally supported by a shaft; an impeller formed on one end side of the magnetically driven part in an axial direction of the magnetically driven part; a pump body in which a pump chamber for housing the impeller is formed; a magnetically drive part having: coils disposed on an outer peripheral side of the magnetically driven part and generating a rotary magnetic field for rotating the magnetically driven part; and a stator core around which the coils are wound; a separator separating the magnetically driven part and the magnetically drive part from each other; coil terminals electrically connected to the coils; a spacer on which the coil terminals are mounted; and a control board electrically connected to the coil terminals, a bottomed cylindrical portion which has one end side opened in the axial direction and in which a housing portion for housing the magnetically driven part is formed; and a flange portion disposed in an extending manner in a radially outward direction from an opening side of the bottomed cylindrical portion, the magnetically drive part is disposed on an other end side in the axial direction with respect to the flange portion on an outer peripheral side of the bottomed cylindrical portion, the separator, the magnetically drive part, and the spacer are embraced in a resin molded body by molding using a resin material, the spacer is extended in the axial direction, and the coil terminals are mounted on the spacer, portions of the coil terminals are disposed outside the resin molded body in an exposed manner, and the exposed portions of the coil terminals are electrically connected to the control board, the spacer includes: a plate portion disposed on the other end side in the axial direction of the bottomed cylindrical portion; and a leg portion extending toward one end side in an axial direction from the plate portion and being brought into contact with the flange portion, and the spacer is disposed in an inside of the resin molded body in a state where the leg portion is deflected. a plate portion disposed on the other end side in the axial direction of the bottomed cylindrical portion; and a leg portion extending toward one end side in an axial direction from the plate portion and being brought into contact with the flange portion, and the spacer is disposed in an inside of the resin molded body in a state where the leg portion is deflected.