API ReferenceVendor
vendor.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| legalName | string | Yes | — | Legal name |
| displayName | string | Yes | — | Display name |
| vendorType | enum(distributor, manufacturer, subcontractor, consultant) | Yes | — | Vendor type |
| status | enum(active, inactive, suspended) | Yes | "active" | Status |
| paymentTerms | enum(net_15, net_30, net_45, net_60, net_90, due_on_receipt, custom) | No | — | Payment terms |
| supplierCode | string | No | — | Supplier code |
| creditLimit | string | No | — | Credit limit |
| insuranceCertExpiry | string.date-time | No | — | Insurance cert expiry |
| w9OnFile | boolean | Yes | false | W9on file |
| licenseNumber | string | No | — | License number |
| licenseExpiry | string.date-time | No | — | License expiry |
| productLines | string[] | No | — | Product lines |
| defaultLeadTimeDays | integer | No | — | Default lead time days |
| rating | integer | No | — | Rating |
| billingPreferences | object | No | — | Billing preferences |
| taxProfile | object | No | — | Tax profile |
| ownerUserId | string | No | — | ID of the associated owner user |
| notesSummary | string | No | — | Notes summary |
| website | unknown | No | — | Website |
| primaryContactEmail | unknown | No | — | Primary contact email |
| primaryContactPhone | unknown | No | — | Primary contact phone |
| physicalAddress | unknown | No | — | Physical address |
| mailingAddress | unknown | No | — | Mailing address |
| billingAddress | unknown | No | — | Billing address |
| accountNumber | unknown | No | — | Account number |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"legalName": "example",
"displayName": "example",
"vendorType": "distributor",
"status": "active",
"paymentTerms": "net_15",
"supplierCode": "example",
"w9OnFile": false,
"visibilityMode": "global"
}