customer based routing with rest and json