Get Company Carriers, Accounts and Services
machship_get_company_carriersRetrieve a company's available carriers, accounts, and freight services before creating consignments or quotes so you can select valid service and account IDs.
Instructions
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": string }] } ] }
Examples:
Use when: "What carriers are available for company 123?"
Use when: You need a serviceId to pass to createConsignment
Don't use when: You just need a company list (use machship_get_companies instead)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company ID | |
| response_format | No | Output format: 'json' (default) or 'markdown' | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Validation errors returned by Machship, if any | |
| object | No | Response payload from the Machship API |