The parameter filters allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. This is similar in concept to using a WHERE clause in an SQL query.
What are the available filters?
Each data-source has its own set of attributes which are available as filters. Review the schema down below with the chosen data-source to view the available filter attributes and their corresponding type.
Each available filter is representative of an underlying data-point on a shipment record. As such, each underlying data-point (and its corresponding filter, if present) has a specific data-type.
The specific data-type dictates which filter constraints may be used to evaluate the underlying data-point. Listed below are the different data-types that filters will fall under, along with the corresponding constraints that are available for that data-type.
Date constraints must be specified in the format of YYYY-MM-DD
Using this range filter, shipments that are together between 10-20 KG and dating from the first half of 2023 will be matched.
{ "data_source":"global", "filters":{ // Only shipments that have a weight greater than 10 KG and less than or equal to 20 KG "weight_kg":{ "gt":10, "lte":20 }, // Only shipments that are on or after January 25th, 2023, but before July 1st, 2023. "record_date":{ "gte":"2023-01-25", "lt":"2023-07-01" }, } }
The bounding region for a geographical constraint may be specified in a number of ways, as described below.
Distance from a Point
Bounding Box
Custom Shape
Define a circular region by providing both a center point and a radial distance.
By default, all filters specified as properties on the base filter object must match in order for a shipment record to be returned.
However, filters may be placed into separate groups that dictate how the underlying shipment record is selected during its evaluation against the filter criteria.
The available filter groups are described below.
Filter Group
Definition
AND
All filter criteria defined in this group must match the shipment record
NOT
None of the filter criteria defined in this group must match the shipment record
OR
One of the filter groups defined in this array must match the shipment record
info
Every filter group must match in order for a record to be selected. This means that every filter in the AND group must match, every filter in the NOT group must not match, and at least one set of filters in the OR group must match, in order for a record to qualify.
Multiple Filter Example
In this example, we are searching for shipments that either have a weight greater than 20KG or an estimated value greater of $5,000, that are destined for the United States, and are being unloaded at a port which is not located on the west-coast.
Choose the desired data-source to view the available fields
Array of objects >= 2 items
object
object
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
object or Existence (string)
This field is of type date.
object or Existence (string)
This field is of type date.
object or Existence (string)
This field is of type numeric
object or Existence (string)
This field is of type numeric
object or Existence (string)
This field is of type numeric
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
boolean or Array of booleans or Existence (string)
This field is of type boolean
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
object or Existence (string)
This field is of type numeric
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
Existence (string) or Geo Distance (object) or Geo Distance (object) or (Geo Shape (Point (object) or Multi Point (object) or Polygon (object) or Multi Polygon (object) or Envelope (object)))
This field is of type geography
object or Existence (string)
This field is of type numeric
object or Existence (string)
This field is of type numeric
object or Existence (string)
This field is of type numeric
object or Existence (string)
This field is of type numeric
object or Existence (string)
This field is of type numeric
object or Existence (string)
This field is of type date.
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
string or Array of strings or Existence (string)
This field is of type string
Existence (string) or Geo Distance (object) or Geo Distance (object) or (Geo Shape (Point (object) or Multi Point (object) or Polygon (object) or Multi Polygon (object) or Envelope (object)))