Menu

Create Supplier

Create a new supplier. Only available for admins.
To call any /suppliers endpoints, you need to use a JWT token or an API token for authorization.

POST https://api-staging-v2.logyx.it/v1/suppliers/{id}

Body


contact_person optional

email required

phone_number optional

vat_number optional

coc_number optional

name required

website required

Example

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

Response

{
    "code": 201,
    "message": "Created; supplier created.",
    "data": {
        "contact_person": "string",
        "website": "string",
        "email": "string",
        "id": "int",
        "coc_number": "string",
        "phone_number": "string",
        "name": "string",
        "vat_number": "string"
    },
    "links": {},
    "errors": []
}

Possible responses


201 Created; Supplier created.

409 Error while inserting new Supplier.

Menu