A dispensing apparatus adapted to dispense a cap for capping a container from a plurality of caps, the dispensing apparatus comprising: a holding portion for holding the plurality of caps; a retaining device comprising a gap, the gap expandable between a retaining configuration wherein the plurality of caps is prevented from passing through the gap thereby retaining the plurality of caps within the holding portion and a releasing configuration wherein the cap is releasable from the holding portion through said gap, wherein the retaining device comprises a pair of arms, wherein the gap is formed between the pair of arms, each arm of the pair of arms being rotatable about a first pivoting point; a positioning device configured to receive the cap from the retaining device, the positioning device comprising an opening, the opening expandable between a narrow configuration wherein the cap is not passable therethrough and a wide configuration wherein the cap is passable therethrough, wherein the positioning device comprises a pair of jaws, wherein the opening is formed between the pair of jaws, each of the pair of jaws being rotatable about a second pivoting point; and an actuating device connected to the retaining device and the positioning device, wherein the first pivoting point of the pair of arms and the second pivoting point of the pair of jaws coincide with each other, wherein the actuating device is configured to move from a first position to a second position to rotate the pair of arms of the retaining device away from each other to expand the gap of the retaining device to the releasing configuration to release the cap therethrough and rotate the pair of jaws of the positioning device towards each other to retract the opening of the positioning device to the narrow configuration to retain the cap within the positioning device when the positioning device receives the released cap, and wherein the actuating device is further configured to move from the second position to the first position to rotate the pair of arms of the retaining device towards each other to retract the gap of the retaining device to the retaining configuration to retain the plurality of caps within the holding portion and rotate the pair of jaws of the positioning device away from each other to expand the opening of the positioning device to the wide configuration to release and dispense the cap. a holding portion for holding the plurality of caps; a retaining device comprising a gap, the gap expandable between a retaining configuration wherein the plurality of caps is prevented from passing through the gap thereby retaining the plurality of caps within the holding portion and a releasing configuration wherein the cap is releasable from the holding portion through said gap, wherein the retaining device comprises a pair of arms, wherein the gap is formed between the pair of arms, each arm of the pair of arms being rotatable about a first pivoting point; a positioning device configured to receive the cap from the retaining device, the positioning device comprising an opening, the opening expandable between a narrow configuration wherein the cap is not passable therethrough and a wide configuration wherein the cap is passable therethrough, wherein the positioning device comprises a pair of jaws, wherein the opening is formed between the pair of jaws, each of the pair of jaws being rotatable about a second pivoting point; and an actuating device connected to the retaining device and the positioning device, wherein the first pivoting point of the pair of arms and the second pivoting point of the pair of jaws coincide with each other, wherein the actuating device is configured to move from a first position to a second position to rotate the pair of arms of the retaining device away from each other to expand the gap of the retaining device to the releasing configuration to release the cap therethrough and rotate the pair of jaws of the positioning device towards each other to retract the opening of the positioning device to the narrow configuration to retain the cap within the positioning device when the positioning device receives the released cap, and wherein the actuating device is further configured to move from the second position to the first position to rotate the pair of arms of the retaining device towards each other to retract the gap of the retaining device to the retaining configuration to retain the plurality of caps within the holding portion and rotate the pair of jaws of the positioning device away from each other to expand the opening of the positioning device to the wide configuration to release and dispense the cap.