Customers

POST

Create Customers

Create a new customer.

Required Permission: Create Customer
POST /customers

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
nameStringRequiredstring, requiredThe name
emailStringOptionalstring, optionalThe email
phoneStringRequiredstring, requiredThe phone
date_of_birthDateOptionaldate, optionalThe date of birth
addressStringOptionalstring, optionalThe address
photoFileOptionalfile, optionalThe photo
noteStringOptionalstring, optionalThe note
initial_balanceNumberOptionalnumber, optionalThe initial balance

Response

201 Created
Status Code
HTTP status code (201)
Message
Human-readable description
Data
Created customer details