Machship MCP
v1.4.0Model Context Protocol server for the Machship freight management platform
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
machship_ping Ping / Check Auth Status
Determines the current user's login status and retrieves session properties from Machship. Use this to verify authentication is working and to get the current user/company context. Returns: session info including user details, company ID, and permissions.
machship_get_attachment Get Attachment
Downloads the raw attachment file from Machship by attachment ID. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - id (number): Attachment ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Attachment ID |
machship_get_attachment_pod_report Get Attachment POD Report
Downloads a Proof of Delivery (POD) report that includes attachment and consignment details. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - id (number): Attachment ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Attachment ID |
machship_get_attachments_by_consignment_ids Get Attachments by Consignment IDs
Downloads attachments for up to 40 consignments in bulk (returned as zip). Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - ids (number[]): Array of consignment IDs (max 40)
| Parameter | Type | Description |
|---|---|---|
ids * | array | Consignment IDs (max 40) |
machship_upload_attachments Upload Attachments
Uploads one or more attachments to Machship. Args: - attachments (array): Array of attachment objects. Each object should contain: - consignmentId (number): Consignment to attach to - fileName (string): File name with extension - fileBase64 (string): Base64-encoded file content - attachmentTypeId (number, optional): Type of attachment
| Parameter | Type | Description |
|---|---|---|
attachments * | array | Attachments to upload |
machship_get_carrier_invoices Get Carrier Invoices
Returns basic carrier invoice information (max 100 records per call). Args: - companyId (number, optional): Filter by company ID - carrierId (number, optional): Filter by carrier ID - fileName (string, optional): Filter by invoice file name - invoiceId (number, optional): Filter by specific invoice ID
| Parameter | Type | Description |
|---|---|---|
carrierId | integer | Filter by carrier ID |
companyId | integer | Filter by company ID |
fileName | string | Filter by invoice file name |
invoiceId | integer | Filter by invoice ID |
machship_get_carrier_invoice_entries Get Carrier Invoice Entries
Gets carrier invoice line entries with optional status filtering. Args: - carrierInvoiceId (number): The carrier invoice ID - status (string, optional): Filter entries by status
| Parameter | Type | Description |
|---|---|---|
carrierInvoiceId * | integer | Carrier invoice ID |
status | string | Filter by entry status |
machship_update_reprice_consignment Update and Reprice Consignment
Updates consignment items on a carrier invoice entry and triggers repricing. Use for reconciling carrier invoice discrepancies. Args: - body (object): Repricing request payload (consignmentId, items, etc.)
| Parameter | Type | Description |
|---|---|---|
body * | object | Repricing request payload |
machship_attempt_auto_reconciliation Attempt Auto Reconciliation
Attempts automatic reconciliation of carrier invoices based on configured carrier thresholds. Args: - body (object): Reconciliation request payload (carrierInvoiceId, etc.)
| Parameter | Type | Description |
|---|---|---|
body * | object | Reconciliation request payload |
machship_upload_commercial_invoice Upload Commercial Invoice
Uploads one or more commercial invoice files for a consignment (for international shipments). Files are provided as base64-encoded content. Args: - consignmentId (number): The consignment to attach the invoice to - files (array): Array of files, each with fileName and fileBase64 content
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
files * | array | Invoice files to upload |
machship_get_companies Get Companies
Returns all companies accessible to the authenticated user. Args: - atOrBelowCompanyId (number, optional): Filter to companies at or below this company in the hierarchy - response_format ('json' | 'markdown'): Output format (default: 'json') Returns: Array of company objects, each containing: { "id": number, // Company ID — use this in other tool calls "name": string, // Display name of the company "isActive": boolean, // Whether the company is active "parentCompanyId": number | null } Examples: - Use when: "List all companies I have access…
| Parameter | Type | Description |
|---|---|---|
atOrBelowCompanyId | integer | Limit to companies at or below this company ID in the hierarchy |
response_format | string | Output format: 'json' (machine-readable, default) or 'markdown' (human-readable) |
machship_get_company_carriers Get Company Carriers, Accounts and Services
Returns all available carriers, carrier accounts, and freight services for a company. Call this before creating consignments or quotes to discover which services and accounts are available. Args: - companyId (number): Company ID - response_format ('json' | 'markdown'): Output format (default: 'json') Returns: Array of carrier objects with nested accounts and services, each containing: { "carrierId": number, "carrierName": string, "accounts": [ { "accountId": number, "accountName": string, "services": [{ "serviceId": number, "serviceName": str…
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
response_format | string | Output format: 'json' (default) or 'markdown' |
machship_get_item Get Company Item
Returns a single saved item (product/SKU) with its dimensions by ID. Args: - id (number): Item ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Item ID |
machship_get_items Get All Company Items
Returns a paginated list of saved items for a company (max 200 per request). Args: - companyId (number): Company ID - startIndex (number, optional): Pagination start index (default 1) - retrieveSize (number, optional): Number of items to retrieve (default 200, max 200)
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
retrieveSize | integer | Items to retrieve (max 200) |
startIndex | integer | Pagination start index |
machship_get_item_by_sku Get Company Item by SKU
Returns a saved item matching the given SKU for a company. Args: - companyId (number): Company ID - sku (string): Product SKU code
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
sku * | string | Product SKU |
machship_get_item_complex Get Complex Company Item
Returns a single complex item (with detailed dimensions/packaging data) by ID. Args: - id (number): Item ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Item ID |
machship_get_items_complex Get All Complex Company Items
Returns a paginated list of complex items for a company (max 200 per request). Args: - companyId (number): Company ID - startIndex (number, optional): Pagination start index (default 1) - retrieveSize (number, optional): Number of items to retrieve (default 200, max 200)
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
retrieveSize | integer | Items to retrieve (max 200) |
startIndex | integer | Pagination start index |
machship_get_item_complex_by_sku Get Complex Company Item by SKU
Returns a complex item (detailed dimensions) by SKU for a company. Args: - companyId (number): Company ID - sku (string): Product SKU code
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
sku * | string | Product SKU |
machship_create_item_complex Create Complex Company Item
Creates a new complex item (product/SKU with detailed packaging info) for a company. Args: - companyId (number): Company ID to create item under - item (object): Item details including sku, description, weight, dimensions, etc.
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
item * | object | Complex item data (sku, description, weight, length, width, height, etc.) |
machship_delete_item Delete Company Item
Deletes a saved item from a company. This action is irreversible. Args: - companyItemId (number): The ID of the item to delete
| Parameter | Type | Description |
|---|---|---|
companyItemId * | integer | Company item ID to delete |
machship_get_items_by_skus Get Company Items by SKUs (Batch)
Returns a list of saved items matching any of the supplied SKUs (standard items only, max 100 SKUs). SKUs that don't match any item are silently omitted — compare returned Sku values against your input to detect misses. Args: - companyId (number): Company ID - skus (string[]): Array of SKU codes to look up (max 100)
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
skus * | array | SKU codes to look up (max 100) |
machship_get_company_location Get Company Location
Returns details for a single company location (warehouse, store, depot). Args: - id (number): Company location ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Company location ID |
machship_get_company_locations Get All Company Locations
Returns all locations (warehouses, stores, depots) for a given company. Args: - companyId (number): Company ID
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
machship_create_company_location Create Company Location
Creates a new company location (warehouse, store, depot pickup point). Args: - location (object): Location data including companyId, name, address, suburb, postcode, state, country, contactName, phone, etc.
| Parameter | Type | Description |
|---|---|---|
location * | object | Location data (companyId, name, address, suburb, postcode, state, country, contactName, phone) |
machship_edit_company_location Edit Company Location
Edits an existing company location. Args: - location (object): Updated location data including id and any fields to update
| Parameter | Type | Description |
|---|---|---|
location * | object | Updated location data including id |
machship_get_permanent_pickups Get Permanent Pickups for Company Location
Gets all permanent scheduled pickups configured for a company location. Args: - companyLocationId (number): Company location ID
| Parameter | Type | Description |
|---|---|---|
companyLocationId * | integer | Company location ID |
machship_add_permanent_pickups Add Permanent Pickups to Company Location
Adds permanent scheduled pickups to a company location. Args: - payload (object): Contains companyLocationId and pickup schedule details
| Parameter | Type | Description |
|---|---|---|
payload * | object | Permanent pickup configuration including companyLocationId and schedule |
machship_get_consignment Get Consignment
Returns full details for a single consignment by ID. Args: - id (number): Consignment ID - includeDeleted (boolean, optional): Include deleted consignments - includeRequestGuids (boolean, optional): Include request GUIDs in response
| Parameter | Type | Description |
|---|---|---|
id * | integer | Consignment ID |
includeDeleted | boolean | Include deleted consignments |
includeRequestGuids | boolean | Include request GUIDs |
machship_get_consignments_by_ids Get Consignments by IDs (Batch)
Returns details for multiple consignments by their IDs (max 100 per request). Args: - ids (number[]): Array of consignment IDs (max 100)
| Parameter | Type | Description |
|---|---|---|
ids * | array | Consignment IDs (max 100) |
machship_get_consignments_by_reference1 Get Consignments by Reference 1
Finds consignments by their Reference 1 field (order number, etc). Max 10 per request. Args: - references (string[]): Array of Reference 1 values (max 10)
| Parameter | Type | Description |
|---|---|---|
references * | array | Reference 1 values (max 10) |
machship_get_consignments_by_reference2 Get Consignments by Reference 2
Finds consignments by their Reference 2 field. Max 10 per request. Args: - references (string[]): Array of Reference 2 values (max 10)
| Parameter | Type | Description |
|---|---|---|
references * | array | Reference 2 values (max 10) |
machship_get_consignments_by_carrier_id Get Consignments by Carrier Consignment ID
Finds consignments by carrier's own consignment/tracking ID. Max 10 per request. Args: - carrierConsignmentIds (string[]): Array of carrier consignment IDs (max 10)
| Parameter | Type | Description |
|---|---|---|
carrierConsignmentIds * | array | Carrier consignment IDs (max 10) |
machship_get_consignment_statuses Get Consignment Tracking Statuses
Returns tracking/delivery statuses for a batch of consignments, with optional date filter. Args: - ids (number[]): Consignment IDs - sinceDateCreatedUtc (string, optional): Only return statuses since this UTC datetime (ISO 8601)
| Parameter | Type | Description |
|---|---|---|
ids * | array | Consignment IDs |
sinceDateCreatedUtc | string | Filter: only statuses since this UTC datetime (ISO 8601) |
machship_update_consignment_statuses Update Consignment Tracking Statuses
Manually updates tracking statuses for consignments (e.g. mark as delivered). Args: - statuses (array): Array of manual tracking status objects, each with consignmentId, status, and datetime
| Parameter | Type | Description |
|---|---|---|
statuses * | array | Tracking status updates |
machship_get_unmanifested_consignments Get Unmanifested Consignments
Returns consignments that have been created but not yet manifested (booked with carrier). 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
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
carrierId | integer | Filter by carrier ID |
includeChildCompanies | boolean | Include child companies |
retrieveSize | integer | Items to retrieve |
startIndex | integer | Pagination start index |
machship_get_active_consignments Get Active Consignments
Returns all active (in-transit) consignments for a company. 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
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
carrierId | integer | Filter by carrier ID |
includeChildCompanies | boolean | Include child companies |
retrieveSize | integer | Items to retrieve |
startIndex | integer | Pagination start index |
machship_get_all_consignments Get All Consignments
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 (…
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
carrierId | integer | Filter by carrier ID |
filterByEtaCompletedOrDespatch | string | Filter by ETA, completed, or despatch status |
fromDateTimeLocal | string | Start date filter (local time ISO 8601) |
includeChildCompanies | boolean | Include consignments from child companies |
includeDeletedConsignments | boolean | Include deleted consignments in results |
retrieveSize | integer | Number of results to return (default 40, max 200) |
startIndex | integer | Pagination start index (default 1) |
toDateTimeLocal | string | End date filter (local time ISO 8601) |
machship_get_recent_consignments Get Recently Created or Updated Consignments
Returns consignments created or updated within a UTC date range. Ideal for sync/polling workflows. Args: - companyId (number): Company ID - fromDateUtc (string): Start datetime in UTC (ISO 8601) - toDateUtc (string): End datetime in UTC (ISO 8601) - startIndex (number, optional): Pagination start index - retrieveSize (number, optional): Number to retrieve - carrierId (number, optional): Filter by carrier - includeChildCompanies (boolean, optional): Include sub-companies - getNotes (boolean, optional): Include notes in response - getReconciliationData (boolean, optional): Inc…
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
fromDateUtc * | string | Start datetime UTC (ISO 8601) |
toDateUtc * | string | End datetime UTC (ISO 8601) |
carrierId | integer | Filter by carrier ID |
getNotes | boolean | Include notes in the response |
getReconciliationData | boolean | Include reconciliation data in the response |
includeChildCompanies | boolean | Include consignments from child companies |
retrieveSize | integer | Number of results to return (default 40, max 200) |
startIndex | integer | Pagination start index (default 1) |
machship_get_completed_consignments Get Completed Consignments
Returns completed (delivered) consignments within a date range (max 2000 results). Args: - companyId (number): Company ID - startDate (string): Start date (ISO 8601) - endDate (string): End date (ISO 8601) - includeChildCompanies (boolean, optional): Include sub-companies
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
endDate * | string | End date (ISO 8601) |
startDate * | string | Start date (ISO 8601) |
includeChildCompanies | boolean | Include consignments from child companies |
machship_create_consignment Create Consignment
Creates a new unmanifested consignment in Machship. This is the core operation for booking freight. Args: - consignment (object): Full consignment details including: - companyId, fromCompanyLocationId, toAddress (suburb, postcode, state, country) - items (array of packages with weight, dimensions) - carrierId, serviceId, reference1, reference2, etc.
| Parameter | Type | Description |
|---|---|---|
consignment * | object | Consignment data (companyId, from/to locations, items, carrier, service, references) |
machship_create_consignment_with_complex_items Create Consignment with Complex Items
Creates a consignment using complex item definitions (with detailed packaging/dangerous goods data). Args: - consignment (object): Consignment data with complexItems array instead of standard items
| Parameter | Type | Description |
|---|---|---|
consignment * | object | Consignment data with complexItems array |
machship_create_consignment_existing_items Create Consignment with Existing Saved Items
Creates a consignment using previously saved company items (by item ID / SKU). Args: - consignment (object): Consignment data referencing existing saved item IDs
| Parameter | Type | Description |
|---|---|---|
consignment * | object | Consignment data referencing existing item IDs |
machship_edit_consignment Edit Unmanifested Consignment
Edits an existing unmanifested (not yet booked) consignment. Cannot edit manifested consignments. Args: - consignment (object): Updated consignment data including the consignment id
| Parameter | Type | Description |
|---|---|---|
consignment * | object | Updated consignment data including id |
machship_delete_consignments Delete Unmanifested Consignments
Deletes multiple unmanifested consignments. Cannot delete manifested consignments. Args: - ids (number[]): Array of consignment IDs to delete
| Parameter | Type | Description |
|---|---|---|
ids * | array | Consignment IDs to delete |
machship_search_consignments Search Consignments
Searches consignments by reference numbers (Reference 1, Reference 2, or carrier IDs). Args: - references (string[]): Array of reference strings to search for
| Parameter | Type | Description |
|---|---|---|
references * | array | Reference values to search |
machship_get_consignment_creation_settings Get Consignment Creation Settings
Returns settings and defaults needed for creating consignments for a company (required fields, defaults, etc.). Args: - companyId (number, optional): Company ID (defaults to authenticated company)
| Parameter | Type | Description |
|---|---|---|
companyId | integer | Company ID (optional) |
machship_get_consignment_attachments Get Consignment Attachments
Returns attachment metadata (not file contents) for a consignment. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_update_despatch_dates Update Despatch Dates for Manifest
Updates despatch dates and estimated time of arrival (ETA) for a set of consignments. Args: - updates (array): Array of objects with consignmentId and new despatch date/ETA
| Parameter | Type | Description |
|---|---|---|
updates * | array | Despatch date updates (consignmentId, despatchDate, eta) |
machship_get_consignment_by_pending_id Get Consignment by Pending Consignment ID
Get consignment details (if it exists) using a pending consignment ID that has been transformed (linked) into a consignment. Args: - id (number): Pending consignment ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Pending consignment ID |
machship_get_consignment_for_clone Get Consignment for Clone
Get the details of an existing consignment in a format that can be passed directly to the createConsignmentWithComplexItems endpoint to create a copy. Args: - id (number): Consignment ID to retrieve in clone format
| Parameter | Type | Description |
|---|---|---|
id * | integer | Consignment ID |
machship_get_unmanifested_consignment_for_edit Get Unmanifested Consignment for Edit
Get an unmanifested consignment in the same format required to perform an update via the editUnmanifestedConsignment endpoint. Args: - id (number): Consignment ID (must be in unmanifested state)
| Parameter | Type | Description |
|---|---|---|
id * | integer | Consignment ID (must be unmanifested) |
machship_get_consignments_by_pending_ids Get Consignments by Pending Consignment IDs (Batch)
Get consignment details for multiple consignments using Pending Consignment IDs as the lookup. Maximum of 100 consignments per request. Args: - ids (number[]): Array of pending consignment IDs (max 100)
| Parameter | Type | Description |
|---|---|---|
ids * | array | Pending consignment IDs (max 100) |
machship_group_consignments_for_consolidation Group Consignments for Consolidation
Automatically groups consignments into consolidation groups based on options (carrier, route, etc.). Returns groups without actually consolidating — preview step before consolidation. Args: - options (object): Consolidation grouping options (companyId, carrierId, etc.)
| Parameter | Type | Description |
|---|---|---|
options * | object | Consolidation grouping options |
machship_perform_consolidation Perform Consolidation
Consolidates a set of consignments into consolidated shipments. This merges multiple consignments into fewer shipment units for carrier efficiency. Args: - request (object): Consolidation request with consignment IDs and consolidation parameters
| Parameter | Type | Description |
|---|---|---|
request * | object | Consolidation request payload |
machship_group_and_perform_consolidation Group and Perform Consolidation
Groups and consolidates consignments in a single operation (combines grouping + performing). Args: - options (object): Consolidation options (companyId, carrierId, grouping rules, etc.)
| Parameter | Type | Description |
|---|---|---|
options * | object | Consolidation options |
machship_get_custom_schemas Get All Custom Schemas
Returns all custom schemas defined in the Machship organisation. Custom schemas extend Machship entities with additional fields.
machship_get_custom_schema Get Custom Schema by ID
Returns a specific custom schema by its DotNet class ID. Args: - id (string): The DotNet class ID of the schema
| Parameter | Type | Description |
|---|---|---|
id * | string | DotNet class ID of the schema |
machship_create_custom_schema Create Custom Schema
Creates a new custom schema to extend Machship entities with additional fields. Args: - name (string): Schema name - type (string): Schema type/entity to extend - schema (object): JSON schema definition
| Parameter | Type | Description |
|---|---|---|
name * | string | Schema name |
schema * | object | JSON schema definition |
type * | string | Schema type/entity |
machship_update_custom_schema Update Custom Schema
Updates an existing custom schema by its DotNet class ID. Args: - id (string): DotNet class ID of the schema to update - schema (object): Updated JSON schema definition
| Parameter | Type | Description |
|---|---|---|
id * | string | DotNet class ID |
schema * | object | Updated JSON schema definition |
machship_delete_custom_schema Delete Custom Schema
Deletes a custom schema by its DotNet class ID. This is irreversible. Args: - id (string): DotNet class ID of the schema to delete
| Parameter | Type | Description |
|---|---|---|
id * | string | DotNet class ID |
machship_get_posted_invoices Get Posted Financial Invoices
Returns posted financial invoices within an optional date range (max 100 per call). Args: - startDate (string, optional): Start date filter (ISO 8601) - endDate (string, optional): End date filter (ISO 8601) - startIndex (number, optional): Pagination start index (default 1) - retrieveSize (number, optional): Number to retrieve (default 100, max 100)
| Parameter | Type | Description |
|---|---|---|
endDate | string | End date filter (ISO 8601) |
retrieveSize | integer | Number of results to return (default 100, max 100) |
startDate | string | Start date filter (ISO 8601) |
startIndex | integer | Pagination start index (default 1) |
machship_get_invoice_by_document_number Get Financial Invoice by Document Number
Returns a specific financial invoice by document number, with optional PDF download. Args: - documentNumber (string): Invoice document number - returnPdfFileBytes (boolean, optional): Include PDF as base64 bytes in response
| Parameter | Type | Description |
|---|---|---|
documentNumber * | string | Invoice document number |
returnPdfFileBytes | boolean | Include PDF as base64 bytes |
machship_get_identities Get Identities
Get all identities owned by an organisation, with details on which companies they are linked to. Requires administrator access to the organisation. Args: - organisationId (number): Organisation ID - onlyUnlinkedIdentities (boolean, optional): Return only identities not linked to any company - identityProviderId (number, optional): Filter by identity provider
| Parameter | Type | Description |
|---|---|---|
organisationId * | integer | Organisation ID |
identityProviderId | integer | Filter by identity provider ID |
onlyUnlinkedIdentities | boolean | Return only unlinked identities |
machship_get_identity Get Identity
Get the identity with the given ID. Args: - id (number): Identity ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Identity ID |
machship_get_available_roles Get Available Roles
Get all roles that are available to assign to users of a certain company. Args: - companyId (number): Company ID
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
machship_create_identities Create Identities
Create identities in MachShip and assign companies and roles. All identities must belong to the same identityProvider and organisation. Requires administrator access. Args: - identities (array): Array of identity objects, each with: - givenName (string): First name (required) - familyName (string): Last name (required) - displayName (string): Display name (required) - emailAddress (string): Email (required) - identifyingClaim (string): Unique claim for identity provider (required) - organisationId (number): Organisation ID (required) - identityProviderId (number)…
| Parameter | Type | Description |
|---|---|---|
identities * | array | Identities to create |
machship_update_identity Update Identity
Updates properties on an identity. All fields except password are required; omitted fields are set to null. Args: - id (number): Identity ID (required) - givenName (string): First name (required) - familyName (string): Last name (required) - displayName (string): Display name (required) - emailAddress (string): Email address (required) - owningCompanyId (number): Owning company ID (required) - password (string, optional): New password - phone / businessPhone / mobile / position / notes (optional)
| Parameter | Type | Description |
|---|---|---|
displayName * | string | Display name |
emailAddress * | string | Email address |
familyName * | string | Last name |
givenName * | string | First name |
id * | integer | Identity ID |
owningCompanyId * | integer | Owning company ID |
businessPhone | string | Business phone number |
mobile | string | Mobile number |
notes | string | Additional notes about the identity |
password | string | New password (optional) |
phone | string | Phone number |
position | string | Job position or title |
machship_delete_identities Delete Identities
Delete the identities with the given IDs. This action is irreversible. Args: - ids (number[]): Array of identity IDs to delete
| Parameter | Type | Description |
|---|---|---|
ids * | array | Identity IDs to delete |
machship_disable_identities Disable Identities
Disable the identities with the given IDs, preventing them from logging in. Args: - ids (number[]): Array of identity IDs to disable
| Parameter | Type | Description |
|---|---|---|
ids * | array | Identity IDs to disable |
machship_reenable_identities Re-enable Identities
Re-enable previously disabled identities, restoring login access. Args: - ids (number[]): Array of identity IDs to re-enable
| Parameter | Type | Description |
|---|---|---|
ids * | array | Identity IDs to re-enable |
machship_link_identities_to_companies Link Identities to Companies
Assign companies and roles to identities to give them access to the system. Requires administrator access. Args: - links (array): Array of identity-company link objects, each with identityId, companyId, and roles
| Parameter | Type | Description |
|---|---|---|
links * | array | Identity-company links to create |
machship_unlink_identities_from_companies Unlink Identities from Companies
Remove company access from identities. Each entry specifies an identity and the company to revoke access from. Args: - unlinks (array): Array of objects with identityId and companyId to unlink
| Parameter | Type | Description |
|---|---|---|
unlinks * | array | Identity-company pairs to unlink |
machship_return_identity_public_keys Return Identity Public Keys
Get the public keys of the supplied identities. These keys can be used by a linked organisation to grant those identities access to companies in their organisation. Requires administrator access. Args: - ids (number[]): Array of identity IDs to retrieve public keys for
| Parameter | Type | Description |
|---|---|---|
ids * | array | Identity IDs |
machship_get_identity_provider Get Identity Provider
Get a specific identity provider by ID. Args: - identityProviderId (number): Identity provider ID
| Parameter | Type | Description |
|---|---|---|
identityProviderId * | integer | Identity provider ID |
machship_get_identity_providers_for_company Get Identity Providers for Company
Get all identity providers associated with a specific company. Args: - companyId (number): Company ID
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
machship_get_identity_providers_for_logged_user Get Identity Providers for Logged-in User
Returns all identity providers for the current user's organisation. No parameters required.
machship_get_identity_providers_for_organisation Get Identity Providers for Organisation
Returns all identity providers for the specified organisation. Args: - organisationId (number): Organisation ID
| Parameter | Type | Description |
|---|---|---|
organisationId * | integer | Organisation ID |
machship_get_consignment_label_pdf Get Consignment Label PDF
Returns the consignment label PDF. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_get_item_label_pdf Get Item Label PDF
Returns item/package labels for a consignment as a PDF. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentId (number): Consignment ID - printA4 (boolean, optional): Print in A4 format (default: label-size)
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
printA4 | boolean | Print in A4 format |
machship_get_item_labels_zip Get Item Labels ZIP (Batch)
Gets item labels as a zip file for up to 40 consignments. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentIds (number[]): Consignment IDs (max 40) - printA4 (boolean, optional): Print in A4 format - singlePdf (boolean, optional): Combine all labels into a single PDF inside the zip
| Parameter | Type | Description |
|---|---|---|
consignmentIds * | array | Consignment IDs (max 40) |
printA4 | boolean | Print in A4 format |
singlePdf | boolean | Combine into single PDF |
machship_get_manifest_label_pdf Get Manifest Label PDF
Returns the manifest document as a PDF by manifest ID. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - manifestId (number): Manifest ID
| Parameter | Type | Description |
|---|---|---|
manifestId * | integer | Manifest ID |
machship_get_manifest_label_pdf_by_consignment Get Manifest Label PDF by Consignment
Returns the manifest PDF for the manifest associated with a given consignment. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_get_commercial_invoice_pdf Get Commercial Invoice PDF
Returns the commercial invoice PDF for a consignment (used for international shipments). Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_get_dangerous_goods_pdf Get Dangerous Goods Document PDF
Returns the dangerous goods declaration document PDF for a consignment. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_send_labels_to_printer Send Labels to Printer
Sends labels directly to a configured printer in Machship. Args: - requests (array): Array of print requests, each with consignmentId, printerId, labelType, etc.
| Parameter | Type | Description |
|---|---|---|
requests * | array | Print requests (consignmentId, printerId, labelType) |
machship_group_consignments_for_printing Group Consignments for Printing
Groups consignments for batch label printing and returns print groups. Args: - consignmentIds (number[]): Consignment IDs to group for printing
| Parameter | Type | Description |
|---|---|---|
consignmentIds * | array | Consignment IDs |
machship_get_consignment_pdf_file_info Get Consignment PDF File Info
Returns the consignment label PDF as JSON. object.content holds the file as base64, with object.fileName and object.contentType. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_get_item_pdf_file_info Get Item Label PDF File Info
Returns the item/package label PDF as JSON. object.content holds the file as base64, with object.fileName and object.contentType. Args: - consignmentId (number): Consignment ID - printA4 (boolean, optional): Whether the label is in A4 format
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
printA4 | boolean | A4 format flag |
machship_get_manifest_pdf_file_info Get Manifest PDF File Info
Returns the manifest PDF as JSON. object.content holds the file as base64, with object.fileName and object.contentType. Args: - manifestId (number): Manifest ID
| Parameter | Type | Description |
|---|---|---|
manifestId * | integer | Manifest ID |
machship_get_dangerous_goods_pdf_file_info Get Dangerous Goods Document PDF File Info
Returns the dangerous goods declaration PDF as JSON. object.content holds the file as base64, with object.fileName and object.contentType. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_get_mo41_document_pdf Get MO41 Document PDF
Returns the MO41 document PDF for a consignment (used for specific carrier compliance documents). Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_get_mo41_document_pdf_file_info Get MO41 Document PDF File Info
Returns the MO41 document PDF as JSON. object.content holds the file as base64, with object.fileName and object.contentType. Args: - consignmentId (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
machship_get_special_instructions_pdf Get Special Instructions PDF
Returns the special instructions document PDF for a consignment. Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentId (number): Consignment ID - printA4 (boolean, optional): Print in A4 format
| Parameter | Type | Description |
|---|---|---|
consignmentId * | integer | Consignment ID |
printA4 | boolean | Print in A4 format |
machship_return_item_pdfs_for_consignments Return Item PDFs for Consignments (POST)
Returns item labels as a zip for up to 40 consignments (POST variant — use this when passing a body payload is preferred over query string). Returns { fileBase64, contentType, sizeBytes }. contentType comes from the response header. Args: - consignmentIds (number[]): Consignment IDs (max 40) - printA4 (boolean, optional): Print in A4 format
| Parameter | Type | Description |
|---|---|---|
consignmentIds * | array | Consignment IDs (max 40) |
printA4 | boolean | Print in A4 format |
machship_search_locations Search Locations
Returns up to 10 Machship locations matching a suburb or postcode search string. Use this to look up valid delivery/pickup locationIds before creating consignments. Args: - s (string): Search string — suburb name, postcode, or both (e.g. "Melbourne 3000") - response_format ('json' | 'markdown'): Output format (default: 'json') Returns: Array of location objects: { "id": number, "suburb": string, "postcode": string, "state": string, "country": string } Examples: - Use when: "What location ID is for Sydney 2000?" -> search "Sydney 2000", pick from results - Use when: Validating…
| Parameter | Type | Description |
|---|---|---|
s * | string | Search string: suburb name, postcode, or both (e.g. 'Melbourne 3000') |
response_format | string | Output format: 'json' (default) or 'markdown' |
machship_get_locations_exact Get Locations (Exact Match)
Returns locations that exactly match provided suburb/postcode combinations. Supports multiple location lookups in one call. Args: - locations (array): Array of suburb/postcode pairs to look up exactly
| Parameter | Type | Description |
|---|---|---|
locations * | array | Suburb/postcode pairs for exact matching |
machship_get_locations_with_options Get Locations with Search Options
Returns locations with additional search options/filters applied. Args: - s (string): Search string - options (object): Additional search options (country, state, etc.)
| Parameter | Type | Description |
|---|---|---|
s * | string | Search string |
options | object | Additional location search options |
machship_get_manifests Get Manifests
Returns a paginated list of manifests for a company (max 200 per call). A manifest represents a carrier pickup booking for a group of consignments. Args: - companyId (number, optional): Company ID - startIndex (number, optional): Pagination start index (default 1) - retrieveSize (number, optional): Number to retrieve (default 40, max 200) - carrierId (number, optional): Filter by carrier - includeChildCompanies (boolean, optional): Include sub-companies - startDate / endDate (string, optional): Date range filter (ISO 8601) - response_format ('json' | 'markdown'): Output format (…
| Parameter | Type | Description |
|---|---|---|
carrierId | integer | Filter by carrier ID |
companyId | integer | Company ID |
endDate | string | Filter to date (ISO 8601) |
includeChildCompanies | boolean | Include manifests from child companies |
response_format | string | Output format: 'json' (default) or 'markdown' |
retrieveSize | integer | Number of results to return (default 40, max 200) |
startDate | string | Filter from date (ISO 8601) |
startIndex | integer | Pagination start index (default 1) |
machship_group_all_for_manifest Group All Unmanifested Consignments for Manifest
Groups ALL unmanifested consignments for a company into manifest groups (preview before manifesting). Args: - companyId (number): Company ID
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
machship_group_consignments_for_manifest Group Consignments for Manifest
Groups a specific set of consignments into manifest groups (preview before manifesting). Args: - consignmentIds (number[]): Consignment IDs to group
| Parameter | Type | Description |
|---|---|---|
consignmentIds * | array | Consignment IDs to group |
machship_manifest_consignments Manifest / Book Consignments with Carrier
Books/manifests consignments with the carrier — creates the pickup booking and generates tracking numbers. This is the final step in the consignment workflow before physical pickup. Args: - manifests (array): Array of booked manifest objects with consignment IDs and carrier booking details
| Parameter | Type | Description |
|---|---|---|
manifests * | array | Manifest booking objects (consignmentIds, carrierId, despatchDate, etc.) |
machship_rebook_manifest_pickup Rebook Manifest Pickup
Rebooks the carrier pickup for an existing manifest (e.g. missed pickup or changed schedule). Args: - rebooking (object): Rebooking details including manifestId and new pickup datetime
| Parameter | Type | Description |
|---|---|---|
rebooking * | object | Rebooking details (manifestId, pickupDate, etc.) |
machship_get_consignment_notes Get Consignment Notes
Returns all notes attached to a consignment (internal comments, delivery instructions, etc.). Args: - id (number): Consignment ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Consignment ID |
machship_get_organisation_links Get Organisation Links
Returns all links (partnerships/integrations) that exist for an organisation. Args: - id (number, optional): Organisation ID (leave blank for current authenticated org)
| Parameter | Type | Description |
|---|---|---|
id | integer | Organisation ID (optional, defaults to current org) |
machship_get_linked_from_organisations Get Linked-From Organisations
Returns all organisations that have linked INTO this organisation (suppliers, partners). Args: - startIndex (number, optional): Pagination start index - retrieveSize (number, optional): Number to retrieve - sort (string, optional): Sort field - searchText (string, optional): Filter by name
| Parameter | Type | Description |
|---|---|---|
retrieveSize | integer | Number of results to return (max 100) |
searchText | string | Filter results by organisation name |
sort | string | Sort field name |
startIndex | integer | Pagination start index |
machship_get_linked_to_organisations Get Linked-To Organisations
Returns all organisations this organisation has linked TO (customers, subsidiaries). Args: - startIndex (number, optional): Pagination start index - retrieveSize (number, optional): Number to retrieve - sort (string, optional): Sort field - searchText (string, optional): Filter by name
| Parameter | Type | Description |
|---|---|---|
retrieveSize | integer | Number of results to return (max 100) |
searchText | string | Filter results by organisation name |
sort | string | Sort field name |
startIndex | integer | Pagination start index |
machship_get_organisation_public_key Get Organisation Public Key
Returns the public key for an organisation, used to set up inter-organisation links. Args: - id (number, optional): Organisation ID (defaults to current org)
| Parameter | Type | Description |
|---|---|---|
id | integer | Organisation ID (optional) |
machship_get_organisation_by_public_key Get Organisation Details by Public Key
Validates a public key and returns the corresponding organisation details. Use this to verify a partner's public key before linking. Args: - publicKey (string): Organisation public key to look up
| Parameter | Type | Description |
|---|---|---|
publicKey * | string | Organisation public key |
machship_add_organisation_link Add Organisation Link
Links another organisation into yours using their public key. Args: - request (object): Link request with the partner's publicKey and optional configuration
| Parameter | Type | Description |
|---|---|---|
request * | object | Link request (publicKey of partner organisation) |
machship_remove_organisation_link Remove Organisation Link
Removes an existing link between two organisations. This action is irreversible. Args: - request (object): Unlink request with organisationLinkId to remove
| Parameter | Type | Description |
|---|---|---|
request * | object | Unlink request (organisationLinkId) |
machship_reset_organisation_public_key Reset Organisation Public Key
Resets the public key for an organisation (generates new key). Does NOT affect existing links. Args: - id (number, optional): Organisation ID (defaults to current org)
| Parameter | Type | Description |
|---|---|---|
id | integer | Organisation ID (optional) |
machship_create_pending_consignment Create Pending Consignment
Creates a pending consignment — a draft/staging consignment that hasn't been rated or assigned to a carrier yet. Pending consignments can be converted to full consignments after quoting. Args: - consignment (object): Pending consignment data including companyId, from/to address, items, references, etc.
| Parameter | Type | Description |
|---|---|---|
consignment * | object | Pending consignment data (companyId, fromAddress, toAddress, items, reference1, reference2) |
machship_get_pending_consignment Get Pending Consignment
Returns details for a single pending consignment by ID. Args: - id (number): Pending consignment ID
| Parameter | Type | Description |
|---|---|---|
id * | integer | Pending consignment ID |
machship_get_pending_consignments_by_ids Get Pending Consignments by IDs (Batch)
Returns details for multiple pending consignments by IDs (max 10 per request). Args: - ids (number[]): Pending consignment IDs (max 10)
| Parameter | Type | Description |
|---|---|---|
ids * | array | Pending consignment IDs (max 10) |
machship_get_pending_consignments_by_reference1 Get Pending Consignments by Reference 1
Finds pending consignments by Reference 1 field. Max 10 per request. Args: - references (string[]): Reference 1 values (max 10)
| Parameter | Type | Description |
|---|---|---|
references * | array | Reference 1 values (max 10) |
machship_get_pending_consignments_by_reference2 Get Pending Consignments by Reference 2
Finds pending consignments by Reference 2 field. Max 10 per request. Args: - references (string[]): Reference 2 values (max 10)
| Parameter | Type | Description |
|---|---|---|
references * | array | Reference 2 values (max 10) |
machship_get_recent_pending_consignments Get Recently Created/Updated Pending Consignments
Returns pending consignments created or updated within a UTC date range. Useful for sync workflows. Args: - companyId (number): Company ID - fromDateUtc (string): Start datetime UTC (ISO 8601) - toDateUtc (string): End datetime UTC (ISO 8601) - startIndex (number, optional): Pagination start - retrieveSize (number, optional): Page size - carrierId (number, optional): Filter by carrier - includeChildCompanies (boolean, optional): Include sub-companies - getDeleted (boolean, optional): Include deleted pending consignments
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
fromDateUtc * | string | Start datetime UTC (ISO 8601) |
toDateUtc * | string | End datetime UTC (ISO 8601) |
carrierId | integer | Filter by carrier ID |
getDeleted | boolean | Include deleted pending consignments |
includeChildCompanies | boolean | Include pending consignments from child companies |
retrieveSize | integer | Number of results to return (max 200) |
startIndex | integer | Pagination start index |
machship_delete_pending_consignments Delete Pending Consignments
Deletes one or more pending consignments. Args: - ids (number[]): Pending consignment IDs to delete
| Parameter | Type | Description |
|---|---|---|
ids * | array | Pending consignment IDs to delete |
machship_create_quote Create Quote
Creates a freight quote in Machship — returns available carrier rates for a shipment. Use this to compare carrier prices and transit times before creating a consignment. Args: - quote (object): Quote request including: - companyId (number): Company to quote under - fromAddress or fromLocationId: Pickup address or location ID - toAddress: Delivery address (suburb, postcode, state, country) - items: Array of items with weight (kg), length/width/height (cm) - carrierId / serviceId (optional): Filter to a specific carrier/service Returns: Array of available rate options…
| Parameter | Type | Description |
|---|---|---|
quote * | object | Quote request body (companyId, fromAddress/fromLocationId, toAddress, items) |
machship_create_quote_complex_items Create Quote with Complex Items
Creates a freight quote using complex item definitions (detailed packaging, dangerous goods, serialisation data). Args: - quote (object): Quote request with complexItems array instead of standard items Returns: Same as machship_create_quote — array of rate options with cost and transit info. Examples: - Use when: Items have dangerous goods codes, serial numbers, or non-standard packaging - Use when: machship_create_quote returned a validation error about item structure
| Parameter | Type | Description |
|---|---|---|
quote * | object | Quote request with complexItems array |
machship_get_quotes Get All Quotes
Returns all quotes for a given company. Args: - companyId (number): Company ID - response_format ('json' | 'markdown'): Output format (default: 'json') Returns: Array of quote summary objects: { "id": number, "reference": string, "status": string, "createdDate": string } Examples: - Use when: "List all quotes for company 123" - Use when: You need a quote ID to pass to machship_get_quote for full details - Don't use when: You want to create a new quote (use machship_create_quote instead) Error Handling: - Error 404: companyId does not exist or is not accessible
| Parameter | Type | Description |
|---|---|---|
companyId * | integer | Company ID |
response_format | string | Output format: 'json' (default) or 'markdown' |
machship_get_quote Get Quote
Returns full details for a single quote by ID, including all carrier rate options. Args: - id (number): Quote ID - response_format ('json' | 'markdown'): Output format (default: 'json') Returns: Full quote object with all carrier rate options, addresses, and item details. Examples: - Use when: "Show me the full details for quote 456" - Use when: You have a quote ID and need the carrier rates to pick one for a consignment
| Parameter | Type | Description |
|---|---|---|
id * | integer | Quote ID |
response_format | string | Output format: 'json' (default) or 'markdown' |
machship_get_routes Get Available Routes
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 86…
| Parameter | Type | Description |
|---|---|---|
request * | object | Route request (companyId, from/to location, items with weight/dimensions, optional despatchDate) |
machship_get_routes_batch Get Available Routes (Batch)
Returns available routes for multiple shipment requests in a single call. Efficient for bulk rate shopping across multiple shipments. Args: - requests (array): Array of route request objects (same structure as single route request)
| Parameter | Type | Description |
|---|---|---|
requests * | array | Array of route requests |
machship_get_routes_complex_items Get Available Routes with Complex Items
Returns available routes for a shipment with complex item definitions (dangerous goods, specialised packaging). Args: - request (object): Route request with complexItems array (including dangerous goods classifications)
| Parameter | Type | Description |
|---|---|---|
request * | object | Route request with complexItems (dangerous goods, specialised packaging) |