Updated Order API

updated orderApi to avoid calling the API when no orderId and/or vendorId values can't be retrieved from the url