adapted customer endpoints to frontend requirements