The invention relates to a device (1) for receiving or dispensing a fluid (39), preferably containing a pharmaceutical, comprising a container that can be collapsed at least in some regions and a closure piece (2). The closure piece (2) comprises a dispensing channel (18) that fluidically connects a dispensing opening (2.1) to a removal opening (21), wherein a dispensing section (18.1) of the dispensing channel (18) communicates with the dispensing opening (2.1) and a removal section (18.2) of the dispensing channel (18) communicates with the removal opening (21). The dispensing channel (18) comprises a valve device (23) having two valve openings (22, 25), which are arranged next to one another on a valve surface (6.1). A first valve opening (25) of said valve device communicates with the dispensing opening (2.1) via the dispensing section (18.1) of the dispensing channel (18) and a second valve opening (22) communicates with the removal opening (21) via the removal section (18.2) of the dispensing channel (18), wherein a continuous flexible diaphragm (27) is provided, which in a closed position of the valve device (23) is seated against of the valve surface (6.1) and can be lifted in some regions and thus seals the valve openings (22, 25) with respect to one another in a fluid-tight manner.