Get a shop

GET /company/shops/@id

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int The ID of the shop you want to retrieve

Example request 1 Get a shop

GET /company/shops/2970 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 159be32b12fff73d39f5c57fa90a04ad5219d11b1e33c30e407350ee295bc94f673d59e2c3f66a73f892ecdd37933f3989406dae8411ac1ef6e97d271ce90efff773f34ddf87be06d178f8fe5709f542a17f16c6f08419872b74f5a87a8c18e3fe754d25
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Field Type Description
name String Name of the shop (not translateable for now)
active Bool A boolean value
address Address.detailed An address
allow_comments Bool A boolean value
allow_orders Bool A boolean value
delivery_use_intervals Bool A boolean value
categories [company.Category.simple] List of the categories of all the categories visible for the shop
category_groups [company.CategoryGroup] List of the category groups linked to the shop. More information can be found on the category group documentation page.
id Int ID of the shop
avatar Image? Nullable.
banner Image? Nullable.

Example response 1 Get a shop

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

{
    "id": 2970,
    "name": "Crumbs",
    "active": true,
    "address": {
        "street": "Descampsweg",
        "nr": "67",
        "zipcode": "6860",
        "city": "Beringen",
        "country": "BE",
        "position": {
            "latitude": 50.8503396,
            "longitude": 4.3517103
        }
    },
    "avatar": {
        "resolutions": [
            {
                "src": "https://bakeronline.be/uploads/shop-avatars/2970/180x180/bakkerij-arto.jpg",
                "width": 189,
                "height": 180
            },
            {
                "src": "https://bakeronline.be/uploads/shop-avatars/2970/360x360/bakkerij-arto.jpg",
                "width": 300,
                "height": 285
            }
        ]
    },
    "banner": null,
    "allow_comments": false,
    "allow_orders": true,
    "delivery_use_intervals": false,
    "categories": [
        {
            "id": 3970,
            "name": {
                "nl": "DarkTurquoise"
            },
            "description": {
                "nl": "This is a random description"
            },
            "banner": null,
            "active": true,
            "only_order_in_store": false,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        },
        {
            "id": 3971,
            "name": {
                "nl": "Darkorange"
            },
            "description": {
                "nl": "This is a random description"
            },
            "banner": null,
            "active": true,
            "only_order_in_store": false,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        }
    ],
    "category_groups": []
}
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable