Menu

Create Company

This endpoint creates a company.
To call any /companies endpoints, you need to use a JWT token or an intent token for authorization.

POST https://api-staging-v2.logyx.it/v1/companies

Body


email required

phone_number optional

vat_number required

coc_number required

name required

website optional

contact_person optional

Example

{
    "email": "string",
    "name": "string",
    "contact_person": "string",
    "created_at": "string",
    "id": "int",
    "coc_number": "string",
    "vat_number": "string",
    "website": "string",
    "phone_number": "string"
}

Response

{
    "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": []
}

Possible responses


201 Created; Company created.

401 Bad request

400 Error while inserting new company.

Menu