In Cox's book "Primes of the form $x^2 + ny^2$", he proves that in a quadratic imaginary field $K$, if $\mathcal O$ is an order of conductor $f \in \mathbb Z$, we have that the class group $\mathrm{Cl}(\mathcal O)$ of $\mathcal O$ is isomorphic to the quotient $I_K(f) / P_{K,\mathbb Z}(f)$, where $I_K(f)$ is the free abelian group generated by the prime ideals of $\mathcal O_K$ coprime to $f\mathcal O_K$, and $P_{K,\mathbb Z}(f)$ is the subgroup of principal ideals $\alpha \mathcal O_K$ where $\alpha$ is congruent mod $f\mathcal O_K$ to an integer coprime to $f$ (proposition 7.22). So $\mathrm{Cl}(\mathcal O)$ is a quotient of the ray class group relative to $f\mathcal O_K$.
I suspect a more general result, but I cannot find any reference. Let $K$ be a number field, and $\mathcal O$ an order of conductor $\mathfrak f \subset \mathcal O_K$,
Can $\mathrm{Cl}(\mathcal O)$ be expressed as a quotient of $\mathrm{Cl}_\mathfrak f(K)$, the ray class group of $K$ relative to $\mathfrak f$ ?
The problem actually boils down to proving that the map $$\varphi : I_K(\mathfrak f) \longrightarrow \mathrm{Cl}(\mathcal O) : \mathfrak a \longmapsto \mathfrak [\mathfrak a \cap \mathcal O]$$ is a surjection. Indeed, if it is the case, then $\mathrm{Cl}(\mathcal O) \cong I_K(\mathfrak f) / \ker(\varphi)$, but it is easy to see that $P_K(\mathfrak f) \subset \ker(\varphi)$ (where $P_K(\mathfrak f)$ is from the definition of the ray class group, i.e. $\mathrm{Cl}_\mathfrak f(K) \cong I_K(\mathfrak f) / P_K(\mathfrak f)$), so $\mathrm{Cl}(\mathcal O)$ would be a quotient of $\mathrm{Cl}_\mathfrak f(K)$.
Is $\varphi$ surjective ?