PATCH /company/shops/@id
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 update |
Pass the following properties via application/json or form encoding in the body of the request.
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 |
category_ids | [Int] | List of the categories (in the right order) 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 |
PATCH /company/shops/11 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.2
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 1455
{
"name": "Halle Hickle",
"active": true,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"allow_comments": true,
"allow_orders": true,
"delivery_use_intervals": true,
"allow_invoices": true,
"allow_order_comments": false,
"allow_product_comments": true,
"takeout_use_intervals": true,
"category_ids": [
18,
17,
16
],
"category_groups": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": false,
"category_ids": [
15,
16,
15
],
"uuid": "..."
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"category_ids": [
16,
14,
12
],
"uuid": "..."
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"category_ids": [
16,
15,
12
],
"uuid": "..."
}
],
"currency": "..."
}
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 |
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 |
id | Int | ID of the shop |
avatar | Image? | Nullable. |
banner | Image? | Nullable. |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 7150
{
"name": "Wilhelm Weimann",
"active": true,
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": false,
"allow_orders": false,
"delivery_use_intervals": true,
"allow_invoices": false,
"allow_order_comments": false,
"allow_product_comments": false,
"takeout_use_intervals": false,
"categories": [
{
"name": "Annabelle Larkin",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": false,
"only_order_in_store": false,
"id": 18,
"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": "Incidunt et et iste voluptatibus sapiente dolores."
},
"description": {
"en": "Et at amet voluptatem voluptatem inventore asperiores. Voluptatum nulla et eveniet sapiente a. Iste voluptatum autem aut molestiae voluptas sunt quis."
},
"url": {
"en": "http://www.erdman.org/eaque-aut-ab-eligendi-reiciendis"
}
}
},
{
"name": "Leslie Williamson",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": false,
"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
}
],
"white_background": false
},
"seo": {
"title": {
"en": "Perferendis cupiditate sapiente voluptatem non deleniti sunt sit nostrum."
},
"description": {
"en": "Itaque eaque et neque sint facilis sit. Et laboriosam nulla iste est aut. Deleniti soluta possimus tempora qui quia saepe voluptatibus. Sed et voluptatibus ex natus suscipit et non."
},
"url": {
"en": "http://www.runolfsson.com/alias-repudiandae-et-velit-adipisci-odit.html"
}
}
},
{
"name": "Dr. Jalen Ullrich V",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": false,
"id": 13,
"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": "Vitae earum facilis ut animi quis natus sapiente temporibus temporibus atque dolores."
},
"description": {
"en": "Quo sit vel ad laudantium aut quia ea. Ratione id minima aperiam cumque non aspernatur. Debitis molestiae et assumenda voluptatibus consequatur. Explicabo omnis placeat ab fuga eligendi dolor."
},
"url": {
"en": "http://www.koepp.com/molestiae-consequatur-sit-incidunt-nisi-quos-perferendis-debitis"
}
}
}
],
"category_groups": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"category_ids": [
15,
12,
16
],
"id": 16,
"uuid": "..."
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"category_ids": [
11,
14,
19
],
"id": 10,
"uuid": "..."
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": false,
"category_ids": [
17,
11,
10
],
"id": 15,
"uuid": "..."
}
],
"currency": "...",
"id": 14,
"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": 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
}
],
"white_background": true
}
}