We have added a multipole ion trap to the existing photon-ion spectrometer at PETRA III (PIPE). Its hybrid structure combines a ring-electrode trap with a segmented 16-pole trap. The interaction of gases and ions with extreme ultraviolet radiation from the beamline P04 is planned to be investigated with the newly installed multipole trap. The research focus lies on radiation-induced chemical reactions that take place in the interstellar medium or in the atmospheres of planets, including natural as well as man-made processes that are important in the Earth's atmosphere. In order to determine the mass-to-charge ratio of the stored ions as efficiently as possible, we are using an ion time-of-flight spectrometer. With this technique, all stored ions can be detected simultaneously. To demonstrate the possibilities of the trap setup, two experiments have been carried out: The photoionization of xenon and the ion-impact ionization of norbornadiene. This type of ion-impact ionization can, in principle, also take place in planetary atmospheres. In addition to ionization by photon or ion impact, chemical reactions of the trapped ions with neutral atoms or molecules in the gas phase have been observed. The operation of the trap enables us to simulate conditions similar to those in the ionosphere.