POST /company/shops/@id/banner
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
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 a banner for |
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 |
POST /company/shops/11/banner HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.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--
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 |
internal_name | String | A name for the shop that's more clear to people working for the shop when navigating the shop settings, order lists or statistics. |
VAT | String | VAT number |
bank_account_number | String | A String value |
links | Dictionary | A dictionary with fields |
content | Dictionary | A dictionary with fields |
contact | Dictionary | A dictionary with fields |
display | Dictionary | A dictionary with fields |
spotlight | Dictionary | Set product or category in the spotlight. |
comments | Dictionary | Comment related settings |
checkout | Dictionary | Checkout related settings |
time | Dictionary | A dictionary with fields |
discount | Dictionary | A dictionary with fields |
latches | Dictionary | A dictionary with fields |
modules | Dictionary | A dictionary with fields |
id | Int | ID of the shop |
avatar | Image? | Nullable. |
banner | Image? | Nullable. |
url | String | URL the shop in case it is using a platform |
placeholder | Image? | Nullable. |
photos | [Image] | Array of Image |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 42342
{
"name": "Ethyl Dare",
"active": true,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": true,
"allow_orders": false,
"delivery_use_intervals": false,
"allow_invoices": true,
"allow_order_comments": true,
"allow_product_comments": false,
"takeout_use_intervals": false,
"allow_order_messages": true,
"categories": [
{
"name": "Anibal Yost",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": false,
"only_order_in_store": true,
"code": "...",
"id": 10,
"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
}
],
"file_id": 18,
"white_background": true
},
"overview_image": {
"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
}
],
"file_id": 16,
"white_background": true
},
"seo": {
"title": {
"en": "Architecto voluptatem necessitatibus voluptatum eos."
},
"description": {
"en": "Nisi ut et ut sed. Eos tempore dolore rerum quo pariatur est eius. Sapiente blanditiis expedita quisquam quidem. Eius est iste nihil ipsa."
},
"url": {
"en": "http://hickle.info/"
}
}
},
{
"name": "Alan Parisian",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": false,
"code": "...",
"id": 19,
"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
}
],
"file_id": 11,
"white_background": false
},
"overview_image": {
"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
}
],
"file_id": 10,
"white_background": true
},
"seo": {
"title": {
"en": "Et illo quo velit assumenda assumenda quia vel."
},
"description": {
"en": "Aut commodi eaque molestiae ipsa qui dolorem perferendis accusamus. Et possimus aliquam quae ut. Vel enim ut quia occaecati amet."
},
"url": {
"en": "http://miller.com/"
}
}
},
{
"name": "Mrs. Maggie Thompson II",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": true,
"code": "...",
"id": 14,
"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
}
],
"file_id": 14,
"white_background": false
},
"overview_image": {
"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
}
],
"file_id": 12,
"white_background": false
},
"seo": {
"title": {
"en": "Unde atque voluptas vero voluptatem voluptates."
},
"description": {
"en": "Deserunt et cupiditate repudiandae. Sed sit laborum atque voluptatem unde quam harum. In quia quos qui nobis exercitationem."
},
"url": {
"en": "http://hansen.com/voluptatum-tempora-hic-alias-est-in"
}
}
}
],
"category_groups": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"category_ids": [
13,
14,
15
],
"id": 12,
"overview_image": {
"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
}
],
"file_id": 15,
"white_background": false
},
"uuid": "...",
"order": 12
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"category_ids": [
19,
13,
16
],
"id": 14,
"overview_image": {
"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
}
],
"file_id": 18,
"white_background": false
},
"uuid": "...",
"order": 13
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": false,
"category_ids": [
11,
12,
17
],
"id": 10,
"overview_image": {
"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
}
],
"file_id": 15,
"white_background": false
},
"uuid": "...",
"order": 12
}
],
"currency": "...",
"emails": {
"note_for_customer": "..."
},
"internal_name": "...",
"VAT": "...",
"bank_account_number": "...",
"links": {
"website": "https://example.com",
"twitter": "https://example.com",
"facebook": "https://example.com",
"instagram": "https://example.com",
"youtube": "https://example.com",
"pinterest": "https://example.com",
"snapchat": "https://example.com"
},
"content": {
"specialties": "...",
"about_us": "...",
"customer_message": "..."
},
"contact": {
"telephone": "...",
"email": "..."
},
"display": {
"display_mode": "blocks",
"collapse_category_groups": false,
"show_category_overview": true,
"show_category_group_overview": false
},
"spotlight": {
"enable": true,
"title": "...",
"type": "product",
"id": 18,
"photo": {
"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
}
],
"file_id": 16,
"white_background": false
}
},
"comments": {
"disable_when_order_is_approved": false
},
"checkout": {
"warranty": {
"ask_for_bank_account_number": true
},
"invoicing": {
"allow": true,
"cost": 10,
"ignore_cost_if_above": 15,
"ignore_cost_if_above_enable": false,
"generate": {
"enable": true,
"expire_days": 18
}
},
"takeout": {
"enable": false,
"auto_approve_orders": true,
"payment_methods": {
"cash": true,
"cash_if_targetprice_isop": false,
"online": false,
"online_if_targetprice": false,
"banktransfer": true,
"banktransfer_with_invoice": true,
"bank_account_numbers": [
{
"name": "...",
"number": "..."
},
{
"name": "...",
"number": "..."
},
{
"name": "...",
"number": "..."
}
]
},
"max_orders": {
"items": [
{
"max_per": "hour",
"max_amount": 19,
"days": {
"all": false,
"custom": [
19,
18,
13
]
},
"intervals": [
{
"max_amount": 16,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 18,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 12,
"start": "12:00",
"end": "12:00"
}
]
},
{
"max_per": "hour",
"max_amount": 10,
"days": {
"all": false,
"custom": [
17,
19,
10
]
},
"intervals": [
{
"max_amount": 12,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 17,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 13,
"start": "12:00",
"end": "12:00"
}
]
},
{
"max_per": "hour",
"max_amount": 19,
"days": {
"all": false,
"custom": [
18,
11,
18
]
},
"intervals": [
{
"max_amount": 17,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 10,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 19,
"start": "12:00",
"end": "12:00"
}
]
}
]
}
},
"delivery": {
"enable": false,
"auto_approve_orders": true,
"info_message": "...",
"minimum_order_price": 19,
"payment_methods": {
"cash": true,
"cash_if_targetprice_isop": false,
"online": false,
"online_if_targetprice": false,
"banktransfer": false,
"banktransfer_with_invoice": false,
"bank_account_numbers": [
{
"name": "...",
"number": "..."
},
{
"name": "...",
"number": "..."
},
{
"name": "...",
"number": "..."
}
]
},
"max_orders": {
"items": [
{
"max_per": "hour",
"max_amount": 17,
"days": {
"all": false,
"custom": [
17,
10,
17
]
},
"intervals": [
{
"max_amount": 15,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 17,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 14,
"start": "12:00",
"end": "12:00"
}
]
},
{
"max_per": "hour",
"max_amount": 19,
"days": {
"all": true,
"custom": [
18,
13,
12
]
},
"intervals": [
{
"max_amount": 14,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 16,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 12,
"start": "12:00",
"end": "12:00"
}
]
},
{
"max_per": "hour",
"max_amount": 12,
"days": {
"all": true,
"custom": [
16,
16,
16
]
},
"intervals": [
{
"max_amount": 10,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 10,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 18,
"start": "12:00",
"end": "12:00"
}
]
}
]
},
"cost": {
"type": "fixed",
"cost_per_day": {
"d1": 14,
"d2": 18,
"d3": 18,
"d4": 12,
"d5": 17,
"d6": 13,
"d7": 18
},
"alternative": {
"enable": true,
"order_price": 14,
"cost_per_day": {
"d1": 12,
"d2": 17,
"d3": 16,
"d4": 15,
"d5": 10,
"d6": 17,
"d7": 16
}
},
"distance_alternatives": [
{
"distance": 11,
"cost_per_day": {
"d1": 13,
"d2": 19,
"d3": 16,
"d4": 13,
"d5": 19,
"d6": 14,
"d7": 16
}
},
{
"distance": 12,
"cost_per_day": {
"d1": 12,
"d2": 10,
"d3": 13,
"d4": 13,
"d5": 13,
"d6": 14,
"d7": 19
}
},
{
"distance": 16,
"cost_per_day": {
"d1": 10,
"d2": 15,
"d3": 16,
"d4": 10,
"d5": 16,
"d6": 11,
"d7": 15
}
}
]
},
"range": {
"everywhere": true,
"has_max_range": false,
"max_range": 11
}
}
},
"time": {
"open": {
"hours": {
"d1": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d2": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d3": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d4": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d5": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d6": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d7": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
}
},
"takeout": {
"use_intervals": true,
"hours": {
"d1": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d2": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d3": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d4": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d5": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d6": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d7": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"upfront": {
"d1": {
"method": "x_days",
"x_days": {
"days": 12,
"close_at": "12:00"
},
"x_time": {
"hours": 17,
"minutes": 17
}
},
"d2": {
"method": "x_days",
"x_days": {
"days": 11,
"close_at": "12:00"
},
"x_time": {
"hours": 11,
"minutes": 15
}
},
"d3": {
"method": "x_days",
"x_days": {
"days": 19,
"close_at": "12:00"
},
"x_time": {
"hours": 10,
"minutes": 12
}
},
"d4": {
"method": "x_days",
"x_days": {
"days": 18,
"close_at": "12:00"
},
"x_time": {
"hours": 11,
"minutes": 16
}
},
"d5": {
"method": "x_days",
"x_days": {
"days": 13,
"close_at": "12:00"
},
"x_time": {
"hours": 19,
"minutes": 10
}
},
"d6": {
"method": "x_days",
"x_days": {
"days": 17,
"close_at": "12:00"
},
"x_time": {
"hours": 12,
"minutes": 11
}
},
"d7": {
"method": "x_days",
"x_days": {
"days": 15,
"close_at": "12:00"
},
"x_time": {
"hours": 18,
"minutes": 10
}
}
}
},
"delivery": {
"use_intervals": true,
"hours": {
"d1": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d2": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d3": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d4": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d5": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d6": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"d7": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"upfront": {
"d1": {
"method": "x_days",
"x_days": {
"days": 17,
"close_at": "12:00"
},
"x_time": {
"hours": 18,
"minutes": 18
}
},
"d2": {
"method": "x_days",
"x_days": {
"days": 13,
"close_at": "12:00"
},
"x_time": {
"hours": 10,
"minutes": 16
}
},
"d3": {
"method": "x_days",
"x_days": {
"days": 14,
"close_at": "12:00"
},
"x_time": {
"hours": 13,
"minutes": 10
}
},
"d4": {
"method": "x_days",
"x_days": {
"days": 11,
"close_at": "12:00"
},
"x_time": {
"hours": 10,
"minutes": 13
}
},
"d5": {
"method": "x_days",
"x_days": {
"days": 19,
"close_at": "12:00"
},
"x_time": {
"hours": 13,
"minutes": 14
}
},
"d6": {
"method": "x_days",
"x_days": {
"days": 14,
"close_at": "12:00"
},
"x_time": {
"hours": 19,
"minutes": 10
}
},
"d7": {
"method": "x_days",
"x_days": {
"days": 13,
"close_at": "12:00"
},
"x_time": {
"hours": 18,
"minutes": 11
}
}
}
},
"timezone": "Europe/Brussels"
},
"discount": {
"general": 15,
"first_order": 18
},
"latches": {
"enable": false
},
"modules": {
"joyn": {
"enable": true,
"partner_reference": "..."
},
"paynl": {
"service_id": "...",
"merchant_id": "..."
},
"payconiq": {
"enable": false,
"merchant_id": "...",
"api_key": "...",
"api_secret": "..."
},
"paypal": {
"enable": false,
"client_id": "...",
"api_secret": "..."
},
"payu": {
"enable": true,
"provider": "",
"romania": {
"merchant_code": "...",
"secret_key": "..."
},
"brazil": {
"api_login": "...",
"api_key": "...",
"account_id": "...",
"merchant_id": "..."
},
"single_platform": {
"pos_id": "...",
"second_key": "...",
"secret_key": "..."
},
"iyzico": {
"api_key": "...",
"secret_key": "..."
}
},
"monizze": {
"enable": true,
"merchant_id": "...",
"in_key": "...",
"out_key": "..."
},
"edenred": {
"enable": true,
"merchant_id": "..."
},
"qguard": {
"enable": false,
"contract_id": "..."
},
"viresmo": {
"enable": true,
"api_key": "...",
"organisation_id": "..."
},
"innovend": {
"enable": true
},
"mannamatic": {
"enable": true
}
},
"id": 17,
"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
}
],
"file_id": 10,
"white_background": true
},
"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
}
],
"file_id": 11,
"white_background": false
},
"url": "...",
"placeholder": {
"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
}
],
"file_id": 16,
"white_background": false
},
"photos": [
{
"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
}
],
"file_id": 15,
"white_background": false
},
{
"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
}
],
"file_id": 16,
"white_background": false
},
{
"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
}
],
"file_id": 10,
"white_background": true
}
]
}