get order api, get orders api, some minor fix