refactoring to shopper endpoint