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

GET /company/companies HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.2
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

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

[
    {
        "id": 16,
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "active": false
    },
    {
        "id": 19,
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "active": false
    },
    {
        "id": 14,
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "active": true
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.5.2 stable