The first invertebrates to show both segmentation and a complete digestive system belong to the phylum Annelida that includes earthworms, leech, sandworms, etc.
These segmented worms have complete digestive system which is also known as tube-within a tube. These can be found in freshwater, marine water or can even be terrestrial.