Create vendor

POST/api/v1/vendors

Add a new supplier/vendor.

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

Vendor name (company or individual).

emailstring · emailrequired

Vendor email for communications.

addressstring

Vendor business address.

phonestring

Vendor phone number.

tax_idstring

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

websitestring

Vendor website URL.

notesstring

Internal notes about this vendor.

credit_limit_centsinteger

Credit limit in cents.

default_payment_term_idstring

Default payment term ID for new bills.

statusCounterpartyStatusCounterpartyStatus

Vendor status (active, inactive, blocked).

categorystring

Business category (e.g., 'Raw Materials', 'Services').

Responses

201Successful Response

successboolean
messagestring
codestring
dataVendorResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

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