Parcels
Retrieve Parcel
Retrieves detailed information about a specific parcel using its id
.
Path Parameters
parcel_id
(string, required): The unique identifier of the parcel to retrieve.
List Parcels
Retrieves a paginated list of parcels with comprehensive filtering, sorting, and search capabilities. This endpoint provides flexible querying options to find parcels based on various criteria.
Filtering
The API supports comprehensive filtering of parcels through query parameters. Multiple filters can be combined to refine your results.
Both created_at
and updated_at
support the following operators:
gt
: Greater thanlt
: Less thangte
: Greater than or equal tolte
: Less than or equal tobwi
: Between inclusive (requires comma-separated dates)bwe
: Between exclusive (requires comma-separated dates)
Format: {field}={operator}:{date} or {field}={operator}:{date1},{date2}
Filtering Examples
- Filtering by
location_id
andstatuses
:
- Filtering by
created_at
:
- Filtering by
item_id
:
- Filtering by
layout_id
:
- Filtering by
unpacked
:
Pagination
The response includes a pagination object with the following properties:
- has_more - Indicates if there are more parcels available
- page - Current page number (default: 1)
- limit - Number of results per page (default: 25)
- total_count - Total number of parcels in the database.
To retrieve the next page of results:
Sorting
Control the order of results using:
If no sorting parameter is specified, the system defaults to sorting by created_at
in ascending order asc
Example with sorting:
Search
The API provides advanced full-text search capabilities through the search parameter, allowing you to search parcels using fuzzy, typo-tolerant matching across multiple fields. The search functionality examines key parcel properties including:
tracking_number
container_number
Each parcel in the search results includes a special _search
object that provides detailed information about the match:
The _search
object includes highlighted matches using <mark>
tags, making it easy to emphasize matching text in user interfaces. It also provides a relevance score between 0 and 1, where higher values indicate better matches.
By default, search results are ordered by relevance score to show the best matches first. However, you can override this by specifying an order_by parameter to sort by other fields like created_at
, updated_at
. The search functionality can be combined with other filter parameters to refine your results further.