Thermal X-ray emission from a baryonic jet: a self-consistent multicolour spectral model