A lancing device for collecting body fluid samples with a body at the end of which an endcap is arranged. The endcap has a positioning surface with an outlet opening. The device further comprises a socket to receive at least one lancet, which is interchangeably clamped in the body, a clamping device, and a release mechanism, with which the lancet is clamped inside the body. The lancing procedure is initiated with the tip of the lancet emerging through the outlet opening. An ejection device is used to eject a used lancet. The endcap is functionally coupled with the ejection device in such a way that, when the ejection device is actuated, the endcap is held pivotably on the body so that it can swing out of the path of the lancet.