This endpoint creates a company.
To call any
/companies
endpoints, you need to use a JWT token or an intent token for authorization.
email
required
phone_number
optional
vat_number
required
coc_number
required
name
required
website
optional
contact_person
optional
{
"email": "string",
"name": "string",
"contact_person": "string",
"created_at": "string",
"id": "int",
"coc_number": "string",
"vat_number": "string",
"website": "string",
"phone_number": "string"
}
{
"code": 201,
"message": "Created; company created.",
"data": {
"email": "string",
"name": "string",
"contact_person": "string",
"created_at": "string",
"id": "int",
"coc_number": "string",
"vat_number": "string",
"website": "string",
"phone_number": "string"
},
"links": {},
"errors": []
}
201
Created; Company created.
401
Bad request
400
Error while inserting new company.