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/181 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer cbdcf2fb7f91e11ec5a651370d5235322c79877c39112d712f2f7eac45b4076c33d7ceba4e139c31ead9cad9598d122eb5cd0c56dc86432d080da8135e9b5fc6304a4cc918088f96e8e0de8de3546b6999cb05220d685d185285d8ef2bee22bb2d633de8
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: 2221

{
    "id": 181,
    "name": "Flour Girl",
    "active": true,
    "address": {
        "street": "Martinring",
        "nr": "60",
        "zipcode": "9310",
        "city": "Châtelet",
        "country": "BE",
        "position": {
            "latitude": 50.8503396,
            "longitude": 4.3517103
        }
    },
    "avatar": {
        "resolutions": [
            {
                "src": "https://bakeronline.be/uploads/shop-avatars/181/180x180/keurslagerij-lavens.jpg",
                "width": 214,
                "height": 180
            },
            {
                "src": "https://bakeronline.be/uploads/shop-avatars/181/360x360/keurslagerij-lavens.jpg",
                "width": 300,
                "height": 252
            }
        ]
    },
    "banner": {
        "resolutions": [
            {
                "src": "https://bakeronline.be/uploads/banner/181/1300x315/delisse.jpg",
                "width": 298,
                "height": 300
            },
            {
                "src": "https://bakeronline.be/uploads/banner/181/900x250/delisse.jpg",
                "width": 298,
                "height": 300
            }
        ]
    },
    "allow_comments": true,
    "allow_orders": true,
    "delivery_use_intervals": false,
    "categories": [
        {
            "id": 287,
            "name": {
                "nl": "Chartreuse"
            },
            "description": {
                "nl": "This is a random description"
            },
            "banner": null,
            "active": true,
            "only_order_in_store": false,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        },
        {
            "id": 288,
            "name": {
                "nl": "PaleVioletRed"
            },
            "description": {
                "nl": "This is a random description"
            },
            "banner": null,
            "active": true,
            "only_order_in_store": false,
            "seo": {
                "title": [],
                "description": [],
                "url": []
            }
        }
    ],
    "category_groups": []
}
1.5.0 stable