An organism that obtains carbon from organic compounds but obtains energy from light is called a photoheterotroph, while an organism that obtains carbon from organic compounds but obtains energy from the oxidation of inorganic compounds is termed a chemoheterotroph.
A living being that gets carbon from living compounds but gets energy from light is called a photoheterotroph. A living being that gets carbon from living compounds but gets energy from non-living matter combining with oxygen is called a chemoheterotroph.