get end points for order