dealdesk.create_company
Creates a company in the customer directory from a legal name or alias; external ID is auto-generated when omitted, with optional tax ID and custom fields.
Instructions
Create a company in the customer directory. Send legalName or name at the top level (name maps to legalName). externalId is optional and auto-generated as local-company- when omitted — do not require fields.externalId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Alias for legalName when legalName is omitted (mapped server-side) | |
| taxId | No | ||
| fields | No | Optional extras (customFields, addresses, …). Prefer top-level legalName/name; fields.legalName/fields.name are also accepted. | |
| locale | No | ||
| legalName | No | Legal company name (required unless name is provided) | |
| projectId | No | DealDesk project id. Omit when the OAuth token or API key authorizes exactly one project. Required when Connect authorized several projects. | |
| externalId | No | Immutable business key. Omit to auto-generate local-company-<uuid> (UI default). Not required. | |
| displayName | No | Display name (defaults to legalName) | |
| emailDomains | No | ||
| registrationId | No |