Create customer

POST/api/v1/customers

Create a new customer record for the business.

Operation ID: create_customer_api_v1_customers_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.

Request body

namestringrequired

Customer name (person or company).

emailstring · emailrequired

Customer email for invoices and communications.

addressstring

Customer billing/shipping address.

phonestring

Customer phone number.

tax_idstring

Tax identification number (EIN, VAT, etc.).

websitestring

Customer website URL.

notesstring

Internal notes about this customer.

credit_limit_centsinteger

Credit limit in cents (e.g., 100000 = $1,000.00).

default_payment_term_idstring

Default payment term ID for new invoices.

statusCounterpartyStatusCounterpartyStatus

Customer status (active, inactive, blocked).

categorystring

Business category (e.g., 'Retail', 'Wholesale').

invoice_footerstring

Custom invoice footer/payment instructions for this customer. Overrides business default.

Responses

201Successful Response

successboolean
messagestring
codestring
dataCustomerResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

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