Skip to main content
POST
/
api
/
v1
/
procurement
/
suppliers
Add new supplier
curl --request POST \
  --url http://localhost:3000/api/v1/procurement/suppliers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "contactPerson": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "products": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

JWT obtained from POST /api/v1/auth/login.

Body

application/json
name
string

name — see API source for exact type.

contactPerson
string

contactPerson — see API source for exact type.

email
string

email — see API source for exact type.

phone
string

phone — see API source for exact type.

products
string

products — see API source for exact type.

Response

Created

message
string
data
object