Up to what age can a dog have puppies?
Up to as long as she still has a heat cycle. That doesn't mean that is what is healthy for her or a litter.
As far as when the heat cycles end in female dogs, I would guess it is different with each breed.
Most breeders retire a breeding female at 5 or 6 years old.