Suppliers
POST
Create Suppliers
Create a new supplier.
Required Permission:
Create Supplier
POST
/suppliers
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 | numeric, optional | The initial balance |
Response
201 CreatedStatus Code
HTTP status code (201)
Message
Success confirmation message
Data
Created supplier details