The PtyNAMi experiment is a scanning X-ray microscope optimized for ptychographic methods with resolution down to 10 nm. Several x-ray analytical techniques are available, such as x-ray fluorescence, diffraction/scattering, and absorption spectroscopy, giving elemental, structural, and chemical contrast. Tomographic scanning modes are routinely possible. The nanoprobe is located in the second experimental hutch (EH2) at 98m from the source. The experiment is based on nanofocusing refractive x-ray lenses (NFLs) with focus sizes down to 50 x 50 nm2 with a free working distance of several millimeter. It operated in the hard x-ray range between 10 and 30 keV. For experiments that require lower energies down to 7 keV Fresnel zone plates are used. The transverse coherence length of the beam is matched to the aperture of the focussing optics by a set of refractive x-ray lenses for prefocussing creating a secondary source. The sample is scanned by a three-axis piezo system (100nm travel range) on top of a air bearing rotation (for tomography applications) and large-scale stepper motors. An interferometric positioning system allows tracking the sample position in scanning microscopy and tomography on all relevant time scales (vibrations and long term drifts). An optical microscope can be used for visual alignment and observation of the sample. In order to exploit the various x-ray analytical contrasts, an energy dispersive silicon drift detector and various photon-counting pixel detectors for SAXS and WAXS measurements (Pilatus 300k, Lambda 750k, and in-vacuum Eiger X 4M ) are employed. While the energy dispersive detector is located on a separate table and points at the sample under 90 deg from the side, all other detectors are placed on a large detector table behind the scanner. An evacuated tube can be used to reduce the air scattering in SAXS and high-resolution WAXS geometry.