Get Available Routes
machship_get_routesRetrieves available freight routes and carrier services for a shipment request, returning rates and ETAs so you can compare carrier options before creating a consignment.
Instructions
Returns a list of available freight routes and carrier services for a single shipment request. Use this to find all carrier options (rates, ETAs) before creating a consignment.
Args:
request (object): Route request including:
companyId: Company ID (required)
fromLocation: { suburb, postcode, state, country } — origin location
toLocation: { suburb, postcode, state, country } — destination location
items: Array of packages with weight (kg), length/width/height (cm), name (string), quantity (integer > 0)
despatchDate (optional): Planned despatch date (ISO 8601)
Example: { "companyId": 1790, "fromLocation": { "suburb": "Melbourne", "postcode": "3000", "state": "VIC", "country": "AU" }, "toLocation": { "suburb": "Sydney", "postcode": "2000", "state": "NSW", "country": "AU" }, "items": [{ "weight": 10, "length": 30, "width": 30, "height": 30, "name": "Parcel", "quantity": 1 }] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | Route request (companyId, from/to location, items with weight/dimensions, optional despatchDate) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation errors returned by Machship, if any | |
| object | No | Response payload from the Machship API |