Company Search
Company entities may be searched for and retrieved through the company search endpoint. If a company identifier is already known, the company entity may be directly retrieved by using the company lookup endpoint.
How company search operates
The company search functions by first searching for shipments that match the provided criteria specified using Free-text queries and strict filters.
From these, the company entities found on the shipments are aggregated into the respective shippers and consignees buckets and only the company entities (not the shipment-level attributes of the shipments), are returned.
If a company is found as both the shipper and receiver on shipments the particular search,
then they may be present in both shipper and consignee buckets.
When using free-text queries, the default field group includes only the name, address, and industry type.
For advanced requirements, it may be desirable to use the shipment-rollup endpoint directly in order to categorize shipments by different company attributes or perform many levels of aggregations.
The record_count listed for each company is not representative of all shipments that exist for that company,
but is instead the amount of the company's shipment records that matched the provided selection criteria.
Sorting Company Results
Since the company search acts as a rollup aggregation on shipments, sorting company results is possible by providing a rollup sort.