Get information about the authenticated user

GET /user

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Include extra data

Include extra data in the result by sending the "include" GET parameter

Key Value
company_permissions

[UserCompanyPermission]

Example request 1

GET /user HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.8.0
Accept-Language: en-US,en;q=0.5

Response

Information about a user

Field Type Description
firstname String A String value
lastname String A String value
email Email Email address
telephone Phone International phone number
notifications UserNotifications Information about the notifications a user want to receive
id Int An integer value
delivery_address Address.simple? Nullable. An address
company Checkout.Company? Nullable.
bank_account_number String? Nullable. A String value
tin_nr String A String value
company_permissions [UserCompanyPermission] Optional. Array of UserCompanyPermission

Example response 1

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

{
    "firstname": "...",
    "lastname": "...",
    "email": "example@domain.com",
    "telephone": "+32 475 00 00 00",
    "notifications": {
        "email_when_order": true,
        "email_when_comment": false,
        "email_when_order_confirmed": true,
        "email_when_order_cancel": false,
        "email_when_newsletter": false
    },
    "id": 12,
    "delivery_address": {
        "street": "Sint-Denijslaan",
        "nr": "96",
        "zipcode": "9000",
        "city": "Gent",
        "country": "BE"
    },
    "company": {
        "name": "...",
        "vat": "BE0123456789",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE"
        }
    },
    "bank_account_number": "...",
    "tin_nr": "...",
    "company_permissions": [
        {
            "shop_ids": [
                19,
                10,
                15
            ],
            "permissions": {
                "company_info": false,
                "holidays": false,
                "newsletters": true,
                "translations": true,
                "email_settings": true,
                "products": false,
                "shop_info": false,
                "checkout_settings": true,
                "time_settings": false,
                "discounts": true
            },
            "id": 13,
            "company_id": 16
        },
        {
            "shop_ids": [
                10,
                17,
                11
            ],
            "permissions": {
                "company_info": false,
                "holidays": false,
                "newsletters": true,
                "translations": false,
                "email_settings": true,
                "products": false,
                "shop_info": true,
                "checkout_settings": true,
                "time_settings": false,
                "discounts": true
            },
            "id": 10,
            "company_id": 17
        },
        {
            "shop_ids": [
                16,
                12,
                18
            ],
            "permissions": {
                "company_info": false,
                "holidays": false,
                "newsletters": false,
                "translations": true,
                "email_settings": false,
                "products": true,
                "shop_info": true,
                "checkout_settings": false,
                "time_settings": false,
                "discounts": true
            },
            "id": 14,
            "company_id": 11
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.8.0 stable