How does tracking gather information about the order?

Via API’s from warehouse systems and TMS.