dividing into brand & affiliate apis