add inv by agg id to REST