Customers
POST
Create Customers
Create a new customer.
Required Permission:
Create Customer
POST
/customers
Request Body
JSONRequest Parameters
| Parameter | Type | Required | Validation | Description |
|---|---|---|---|---|
| name | String | Required | string, required | The name |
| String | Optional | string, optional | The email | |
| phone | String | Required | string, required | The phone |
| date_of_birth | Date | Optional | date, optional | The date of birth |
| address | String | Optional | string, optional | The address |
| photo | File | Optional | file, optional | The photo |
| note | String | Optional | string, optional | The note |
| initial_balance | Number | Optional | number, optional | The initial balance |
Response
201 CreatedStatus Code
HTTP status code (201)
Message
Human-readable description
Data
Created customer details