Create vendor contact

POST /api/v1/vendors/{vendor_id}/contacts

Add a new contact to a vendor.

Operation ID: create_contact_api_v1_vendors__vendor_id__contacts_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

vendor_id string required

Request body

name string required

Contact name.

email string · email

Contact email address.

phone string

Contact phone number.

role string

Contact role (e.g., 'Billing', 'Technical').

is_primary boolean

Set as primary contact.

notes string

Notes about this contact.

Responses

201 Successful Response

id string required

Contact UUID.

entity_type string required

Type of parent entity.

entity_id string required

Parent entity UUID.

name string required

Contact name.

email string

Contact email.

phone string

Contact phone.

role string

Contact role.

is_primary boolean

Whether this is the primary contact.

notes string

Notes about this contact.

created_at string · date-time required

Creation timestamp.

updated_at string · date-time required

Last update timestamp.

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object