Get all the companies of the authenticated user

GET /company/companies

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Example request 1 Retrieve companies

GET /company/companies HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 9de51a62f15b21557299aa7a12c91b26aa66a7133bf9af4728ed3a8b87ef01ea38a0cc7d42b69d5d50fc59aae48ae47da25f97f127567e281bdd7d41cc8df1b52ca1fcaf87ac7a88fb51b5531b2e503f7bd85dac24c4948f7a9d0214551db36cb6840da5
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Array of Company: [Company]

Company

Field Type Description
id Int Id of the company
name [Language: String] Name of the company
active Bool Whether this company is activated

Example response 1 Retrieve companies

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 468

[
    {
        "id": 143,
        "name": {
            "nl": "Roels & Zn"
        },
        "active": true
    },
    {
        "id": 144,
        "name": {
            "nl": "Parmentier Comm.V"
        },
        "active": true
    },
    {
        "id": 145,
        "name": {
            "nl": "Maréchal"
        },
        "active": true
    },
    {
        "id": 146,
        "name": {
            "nl": "Dierckx NV"
        },
        "active": true
    }
]
1.5.0 stable