The border authorities that clear trucks and their cargo between countries: they receive advance manifests and customs declarations, collect duties and taxes, inspect for security and contraband, and run the transit and trusted-trader systems that decide how long a truck waits at the border.
Customs agencies are one player in the trucking & freight industry, and an industry of their own, with their own suppliers, customers, software, regulators, and money flows. This full map is on the roadmap.
Meanwhile: how customs agencies fit into trucking & freight