Suppliers

POST

Create Suppliers

Create a new supplier.

Required Permission: Create Supplier
POST /suppliers

Request Body

JSON

                        

Request Parameters

Parameter Type Required Validation Description
name String Required string, required The name
email 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 Created
Status Code
HTTP status code (201)
Message
Success confirmation message
Data
Created supplier details