The resonant X-ray scattering (magnetic elastic, RXMS, and inelastic, RIXS) of Ir4+ at the L2,3 edges relevant to spin-orbit Mott insulators An+1IrnO3n+1 (A=Sr, Ba, etc.) are calculated using a single-ion model which treats the spin-orbit and tetragonal crystal-field terms on an equal footing. Both RXMS and RIXS in the spin-flip channel are found to display a non-trivial dependence on the direction of the magnetic moment, μ. Crucially, we show that for μ in the \emph{ab}-plane, RXMS at the L2 edge is zero \emph{irrespective} of the tetragonal crystal-field; spin-flip RIXS, relevant to measurements of magnons, behaves reciprocally being zero at L2 when μ is perpendicular to the \emph{ab}-plane. Our results provide important insights into the interpretation of X-ray data from the iridates, including that a jeff=1/2 ground state cannot be assigned on the basis of L2/L3 intensity ratio alone.