POST /company/shops/@id/placeholder
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 placeholder 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/placeholder 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: 42635
{
"name": "Javier Koss",
"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": true,
"delivery_use_intervals": false,
"allow_invoices": true,
"allow_order_comments": true,
"allow_product_comments": true,
"takeout_use_intervals": false,
"allow_order_messages": false,
"categories": [
{
"name": "Prof. Salma Bins IV",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"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
}
],
"file_id": 10,
"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": false
},
"seo": {
"title": {
"en": "Eum perspiciatis omnis dolorem earum reiciendis saepe rerum."
},
"description": {
"en": "Consequatur vitae modi quo voluptatem tenetur reiciendis. Distinctio nulla accusamus est id ullam ea. Corrupti autem sint et ea. Blanditiis aliquid eum nisi excepturi expedita ad adipisci et."
},
"url": {
"en": "http://www.feeney.com/magni-quo-in-eius.html"
}
}
},
{
"name": "Tamia Okuneva",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": false,
"only_order_in_store": true,
"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": 17,
"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": 11,
"white_background": true
},
"seo": {
"title": {
"en": "At aut qui qui et minima officiis mollitia ut est."
},
"description": {
"en": "Minus qui sed culpa error omnis asperiores. Et asperiores quis mollitia aut sequi. Autem et sunt ipsum assumenda. Ducimus ea pariatur veritatis doloribus placeat vel nihil."
},
"url": {
"en": "http://www.feil.com/quibusdam-ea-et-maiores-earum-ullam-voluptatum-enim.html"
}
}
},
{
"name": "Sean Kuhn",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": true,
"code": "...",
"id": 17,
"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": 19,
"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": "Dolores aliquid aperiam ipsam laborum facere eius dolor aliquam est excepturi."
},
"description": {
"en": "Quis exercitationem facilis aut quidem cumque corrupti. Fugit reprehenderit ipsum magnam ex. Amet consequatur rerum cum officia reprehenderit. Ratione ea non iure nihil."
},
"url": {
"en": "http://www.reichert.info/doloremque-cupiditate-cupiditate-quasi-ad-ratione-quo-rerum.html"
}
}
}
],
"category_groups": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"category_ids": [
16,
12,
12
],
"id": 18,
"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
},
"uuid": "...",
"order": 14
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": false,
"category_ids": [
18,
16,
19
],
"id": 11,
"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": false
},
"uuid": "...",
"order": 17
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"category_ids": [
11,
13,
15
],
"id": 13,
"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": 17,
"white_background": true
},
"uuid": "...",
"order": 15
}
],
"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": true,
"show_category_overview": false,
"show_category_group_overview": true
},
"spotlight": {
"enable": true,
"title": "...",
"type": "product",
"id": 10,
"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": 11,
"white_background": true
}
},
"comments": {
"disable_when_order_is_approved": true
},
"checkout": {
"warranty": {
"ask_for_bank_account_number": false
},
"invoicing": {
"allow": false,
"cost": 18,
"ignore_cost_if_above": 17,
"ignore_cost_if_above_enable": false,
"generate": {
"enable": false,
"expire_days": 15
}
},
"takeout": {
"enable": true,
"auto_approve_orders": true,
"payment_methods": {
"cash": true,
"cash_if_targetprice_isop": true,
"online": true,
"online_if_targetprice": true,
"banktransfer": true,
"banktransfer_with_invoice": false,
"bank_account_numbers": [
{
"name": "...",
"number": "..."
},
{
"name": "...",
"number": "..."
},
{
"name": "...",
"number": "..."
}
]
},
"max_orders": {
"items": [
{
"max_per": "hour",
"max_amount": 12,
"days": {
"all": false,
"custom": [
11,
13,
10
]
},
"intervals": [
{
"max_amount": 16,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 11,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 14,
"start": "12:00",
"end": "12:00"
}
]
},
{
"max_per": "hour",
"max_amount": 12,
"days": {
"all": false,
"custom": [
10,
15,
14
]
},
"intervals": [
{
"max_amount": 13,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 15,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 15,
"start": "12:00",
"end": "12:00"
}
]
},
{
"max_per": "hour",
"max_amount": 14,
"days": {
"all": true,
"custom": [
19,
17,
17
]
},
"intervals": [
{
"max_amount": 10,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 17,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 14,
"start": "12:00",
"end": "12:00"
}
]
}
]
}
},
"delivery": {
"enable": true,
"auto_approve_orders": false,
"info_message": "...",
"minimum_order_price": 14,
"payment_methods": {
"cash": true,
"cash_if_targetprice_isop": false,
"online": true,
"online_if_targetprice": true,
"banktransfer": true,
"banktransfer_with_invoice": false,
"bank_account_numbers": [
{
"name": "...",
"number": "..."
},
{
"name": "...",
"number": "..."
},
{
"name": "...",
"number": "..."
}
]
},
"max_orders": {
"items": [
{
"max_per": "hour",
"max_amount": 10,
"days": {
"all": false,
"custom": [
16,
17,
14
]
},
"intervals": [
{
"max_amount": 19,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 12,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 17,
"start": "12:00",
"end": "12:00"
}
]
},
{
"max_per": "hour",
"max_amount": 16,
"days": {
"all": false,
"custom": [
16,
17,
16
]
},
"intervals": [
{
"max_amount": 10,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 18,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 13,
"start": "12:00",
"end": "12:00"
}
]
},
{
"max_per": "hour",
"max_amount": 11,
"days": {
"all": true,
"custom": [
10,
18,
19
]
},
"intervals": [
{
"max_amount": 11,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 18,
"start": "12:00",
"end": "12:00"
},
{
"max_amount": 13,
"start": "12:00",
"end": "12:00"
}
]
}
]
},
"cost": {
"type": "fixed",
"cost_per_day": {
"d1": 12,
"d2": 13,
"d3": 12,
"d4": 11,
"d5": 11,
"d6": 18,
"d7": 12
},
"alternative": {
"enable": false,
"order_price": 14,
"cost_per_day": {
"d1": 18,
"d2": 11,
"d3": 12,
"d4": 15,
"d5": 12,
"d6": 17,
"d7": 12
}
},
"distance_alternatives": [
{
"distance": 17,
"cost_per_day": {
"d1": 12,
"d2": 19,
"d3": 15,
"d4": 14,
"d5": 18,
"d6": 12,
"d7": 19
}
},
{
"distance": 18,
"cost_per_day": {
"d1": 19,
"d2": 19,
"d3": 17,
"d4": 18,
"d5": 10,
"d6": 12,
"d7": 17
}
},
{
"distance": 13,
"cost_per_day": {
"d1": 17,
"d2": 14,
"d3": 17,
"d4": 14,
"d5": 18,
"d6": 14,
"d7": 10
}
}
]
},
"range": {
"everywhere": false,
"has_max_range": true,
"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": 14,
"close_at": "12:00"
},
"x_time": {
"hours": 17,
"minutes": 13
}
},
"d2": {
"method": "x_days",
"x_days": {
"days": 15,
"close_at": "12:00"
},
"x_time": {
"hours": 10,
"minutes": 12
}
},
"d3": {
"method": "x_days",
"x_days": {
"days": 16,
"close_at": "12:00"
},
"x_time": {
"hours": 17,
"minutes": 18
}
},
"d4": {
"method": "x_days",
"x_days": {
"days": 15,
"close_at": "12:00"
},
"x_time": {
"hours": 11,
"minutes": 13
}
},
"d5": {
"method": "x_days",
"x_days": {
"days": 18,
"close_at": "12:00"
},
"x_time": {
"hours": 11,
"minutes": 15
}
},
"d6": {
"method": "x_days",
"x_days": {
"days": 15,
"close_at": "12:00"
},
"x_time": {
"hours": 10,
"minutes": 18
}
},
"d7": {
"method": "x_days",
"x_days": {
"days": 12,
"close_at": "12:00"
},
"x_time": {
"hours": 12,
"minutes": 11
}
}
}
},
"delivery": {
"use_intervals": false,
"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": 13,
"minutes": 16
}
},
"d2": {
"method": "x_days",
"x_days": {
"days": 15,
"close_at": "12:00"
},
"x_time": {
"hours": 13,
"minutes": 13
}
},
"d3": {
"method": "x_days",
"x_days": {
"days": 10,
"close_at": "12:00"
},
"x_time": {
"hours": 15,
"minutes": 16
}
},
"d4": {
"method": "x_days",
"x_days": {
"days": 17,
"close_at": "12:00"
},
"x_time": {
"hours": 15,
"minutes": 12
}
},
"d5": {
"method": "x_days",
"x_days": {
"days": 18,
"close_at": "12:00"
},
"x_time": {
"hours": 12,
"minutes": 12
}
},
"d6": {
"method": "x_days",
"x_days": {
"days": 15,
"close_at": "12:00"
},
"x_time": {
"hours": 14,
"minutes": 10
}
},
"d7": {
"method": "x_days",
"x_days": {
"days": 19,
"close_at": "12:00"
},
"x_time": {
"hours": 16,
"minutes": 11
}
}
}
},
"timezone": "Europe/Brussels"
},
"discount": {
"general": 12,
"first_order": 12
},
"latches": {
"enable": false
},
"modules": {
"joyn": {
"enable": true,
"partner_reference": "..."
},
"paynl": {
"service_id": "...",
"merchant_id": "..."
},
"payconiq": {
"enable": true,
"merchant_id": "...",
"api_key": "...",
"api_secret": "..."
},
"paypal": {
"enable": true,
"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": false,
"merchant_id": "...",
"in_key": "...",
"out_key": "..."
},
"edenred": {
"enable": false,
"merchant_id": "..."
},
"qguard": {
"enable": true,
"contract_id": "..."
},
"viresmo": {
"enable": false,
"api_key": "...",
"organisation_id": "..."
},
"innovend": {
"enable": false
},
"mannamatic": {
"enable": true
}
},
"id": 11,
"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": 19,
"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
}
],
"file_id": 19,
"white_background": true
},
"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": 14,
"white_background": true
},
"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": 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": 13,
"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": 18,
"white_background": false
}
]
}