An apparatus for distributing medicines, vitamins and/or samples, including an organizer and dispensing units for medicines, vitamins and/or samples. The organizer includes seats in which to place the dispensing units. The apparatus includes an identification device connected to a data processing device and containing dispensing data on medicines, vitamins and/or samples, including detecting members controlled to a detecting state by detecting signals generated on the basis of dispensing data in the data processing device. The identification device is configured to be brought in connection with the organizer so that at least some of the detecting members are aligned with at least some of the seats of the organizer, wherein at least those dispensing units, which are aligned with at least one detecting member, can be identified by means of detecting signals generated on the basis of dispensing data in the data processing device.