Create Vendor
Create a new vendor.
Required fields:
- `name`: Vendor name
- `vendorType`: One of `CONSULTANT`, `FINANCING`, `LOGISTICS`, `MANUFACTURER`, `SUBCONTRACTOR`, `SUPPLIER`
Optional fields:
- `address`: Array containing a single string for the full vendor location/address
- `website`: Vendor website URL (max 2048 chars)
- `description`: Vendor description
- `isActive`: Whether the vendor is active (default: true)
- `contacts`: Array of contact IDs to associate
- `projectIds`: Array of project IDs to link this vendor to
- `custom`: Custom fields object
Authentication
x-api-keystring
API Key authentication via header
Query parameters
allow_new_options
Whether to allow creation of new dropdown options during record creation
Request
This endpoint expects an object.
name
Vendor name
vendorType
The type of vendor
address
An array containing a single string, which represents the full vendor location/address.
website
Vendor website URL
description
Vendor description
isActive
Whether the vendor is active
contacts
Contact IDs to associate with this vendor
projectIds
Project IDs to link this vendor to
custom
Custom fields
Response
Matching vendor found (upsert)
id
Unique identifier
createdAt
Creation timestamp
updatedAt
Last update timestamp
name
Vendor name
description
Vendor description
address
Vendor location/address
isActive
Whether the vendor is active
primaryEmail
Primary contact email
primaryPhone
Primary contact phone
number
Vendor number (e.g., 1234)
vendorType
The type of vendor
website
Vendor website URL
projectIds
IDs of projects this vendor is linked to
custom
Custom fields
Errors
400
Bad Request Error
401
Unauthorized Error
