added creating of order into API