orders.fetchByExternalId doesn't work because you have to pass 'site' parameter into a body
I had to change the code to the following
var fetchByExternalId = function fetchByExternalId(externalId, siteCode) {
return {
uri: 'orders/' + externalId,
method: _constants.METHODS.GET,
qs: { by: 'externalId', site: siteCode }
};
};