Get All Consignments
machship_get_all_consignmentsRetrieve all consignments for a company with date range, status, carrier, pagination, and child-company filters to review or manage freight shipments.
Instructions
Returns all consignments for a company with date range and status filtering.
Args:
companyId (number): Company ID
startIndex (number, optional): Pagination start index
retrieveSize (number, optional): Number to retrieve
carrierId (number, optional): Filter by carrier
includeChildCompanies (boolean, optional): Include sub-companies
includeDeletedConsignments (boolean, optional): Include deleted
fromDateTimeLocal (string, optional): Start date filter (local time)
toDateTimeLocal (string, optional): End date filter (local time)
filterByEtaCompletedOrDespatch (string, optional): Filter by ETA/despatch status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| carrierId | No | Filter by carrier ID | |
| companyId | Yes | Company ID | |
| startIndex | No | Pagination start index (default 1) | |
| retrieveSize | No | Number of results to return (default 40, max 200) | |
| toDateTimeLocal | No | End date filter (local time ISO 8601) | |
| fromDateTimeLocal | No | Start date filter (local time ISO 8601) | |
| includeChildCompanies | No | Include consignments from child companies | |
| includeDeletedConsignments | No | Include deleted consignments in results | |
| filterByEtaCompletedOrDespatch | No | Filter by ETA, completed, or despatch status |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation errors returned by Machship, if any | |
| object | No | Response payload from the Machship API |