Menu

Allow Company to Supplier

This endpoint allows Company to Supplier 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/{id}/suppliers/{id}

Body


supplier_company_reference required

Example

{
    "supplier_company_reference": "string"
}

Response

{
    "code": 201,
    "message": "Created; supplier and company were linked.",
    "data": {
        "id": "int",
        "supplier_id": "int",
        "supplier_company_reference": "string",
        "company_id": "int"
    },
    "links": {},
    "errors": []
}

Possible responses


201 Created; Supplier and company were linked.

404 Company does not exist.

404 Supplier does not exist.

409 Error while inserting new Supplier-Company binding.

Menu