Create customer contact

POST/api/v1/customers/{customer_id}/contacts

Add a new contact to a customer.

Operation ID: create_contact_api_v1_customers__customer_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

customer_idstringrequired

Request body

namestringrequired

Contact name.

emailstring · email

Contact email address.

phonestring

Contact phone number.

rolestring

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

is_primaryboolean

Set as primary contact.

notesstring

Notes about this contact.

Responses

201Successful Response

successboolean
messagestring
codestring
dataEntityContactResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject