A lock device includes an inlet arranged in a vehicle and having an inlet housing into which a charge cable is insertable. A lock mechanism is capable of locking the charge cable to the inlet. The lock device includes a lock mechanism attachment portion arranged in the inlet housing and enabling attachment of the lock mechanism to the inlet housing. The lock device may be located on an outer surface of the inlet housing and may include a movable lock pin that serves to retain a lock arm of the charge cable and may also be used to retain a lid for closing the inlet. With this system the inlet housing and lock mechanism form a single unit for ease of assembly.