add rest id to orders