REST Order processing written in Erlang