A stacked set of flattened membranes that modifies, sorts, and packages chemicals into vesicles for secretion or transport.