Upload a shop avatar

POST /company/shops/@id/avatar

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 upload an avatar for

File upload

This endpoint requires uploaded files in the HTTP request. You can check the examples on the right for more information or read more about this on MDN.

Key Description
file Upload a single file

Example request 1

POST /company/shops/16/avatar HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.8.0
Accept-Language: en-US,en;q=0.5
Content-Type: multipart/form-data;boundary="boundary"

--boundary
Content-Disposition: form-data; name="single"; filename="test.png"
Content-Type: image/png

...<Binary file here depending on Content-Transfer-Encoding field>...
--boundary--

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
allow_invoices Bool A boolean value
allow_order_comments Bool A boolean value
allow_product_comments Bool A boolean value
takeout_use_intervals Bool A boolean value
allow_order_messages 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.
currency String A String value
emails Dictionary Email settings
id Int ID of the shop
avatar Image? Nullable.
banner Image? Nullable.
url String URL the shop in case it is using a platform

Example response 1

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

{
    "name": "Mr. Jefferey Hilpert",
    "active": false,
    "address": {
        "street": "Sint-Denijslaan",
        "nr": "96",
        "zipcode": "9000",
        "city": "Gent",
        "country": "BE",
        "position": {
            "latitude": 1.54361,
            "longitude": 0.45645
        }
    },
    "allow_comments": true,
    "allow_orders": true,
    "delivery_use_intervals": true,
    "allow_invoices": true,
    "allow_order_comments": true,
    "allow_product_comments": true,
    "takeout_use_intervals": true,
    "allow_order_messages": true,
    "categories": [
        {
            "name": "Mrs. Ena Lehner",
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "active": false,
            "only_order_in_store": false,
            "code": "...",
            "id": 11,
            "banner": {
                "resolutions": [
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    }
                ],
                "white_background": true
            },
            "seo": {
                "title": {
                    "en": "Exercitationem fugiat aut earum itaque vel nobis rerum."
                },
                "description": {
                    "en": "Ut harum voluptates distinctio. Molestiae earum eaque perspiciatis quam consequuntur fugiat et. Voluptatum pariatur possimus quia pariatur doloremque et."
                },
                "url": {
                    "en": "https://www.collier.net/veniam-rem-aperiam-pariatur-vitae-doloremque-sed"
                }
            }
        },
        {
            "name": "Prof. Brayan Leuschke",
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "active": false,
            "only_order_in_store": false,
            "code": "...",
            "id": 16,
            "banner": {
                "resolutions": [
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    }
                ],
                "white_background": false
            },
            "seo": {
                "title": {
                    "en": "Nesciunt mollitia temporibus quia autem eaque cupiditate adipisci sed exercitationem."
                },
                "description": {
                    "en": "Sed quasi qui possimus sit. Blanditiis a autem voluptates. Adipisci fuga eum quisquam dolorem dicta cum. Accusantium non amet sed qui rerum et et."
                },
                "url": {
                    "en": "http://www.steuber.com/perspiciatis-rerum-placeat-error-aliquam-ad.html"
                }
            }
        },
        {
            "name": "Dr. Micaela Goodwin Sr.",
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "active": false,
            "only_order_in_store": true,
            "code": "...",
            "id": 16,
            "banner": {
                "resolutions": [
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    },
                    {
                        "src": "https://example.com",
                        "width": 600,
                        "height": 350
                    }
                ],
                "white_background": true
            },
            "seo": {
                "title": {
                    "en": "Molestias velit ut neque laborum et eaque cum."
                },
                "description": {
                    "en": "Possimus ipsa est accusantium deserunt id et voluptas qui. Alias labore magnam et et. Incidunt unde quas odit aut quos doloribus dolore."
                },
                "url": {
                    "en": "http://www.cassin.com/deserunt-fugit-dolor-nesciunt-possimus-amet-modi"
                }
            }
        }
    ],
    "category_groups": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "active": true,
            "category_ids": [
                13,
                16,
                15
            ],
            "id": 15,
            "uuid": "..."
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "active": false,
            "category_ids": [
                19,
                16,
                16
            ],
            "id": 15,
            "uuid": "..."
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "active": false,
            "category_ids": [
                12,
                18,
                18
            ],
            "id": 15,
            "uuid": "..."
        }
    ],
    "currency": "...",
    "emails": {
        "note_for_customer": "..."
    },
    "id": 13,
    "avatar": {
        "resolutions": [
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            }
        ],
        "white_background": false
    },
    "banner": {
        "resolutions": [
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            },
            {
                "src": "https://example.com",
                "width": 600,
                "height": 350
            }
        ],
        "white_background": false
    },
    "url": "..."
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.8.0 stable