POST /company/categories/@category_id/copy
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
POST /company/categories/@category_id/copy HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
name | [Language: String] | Translated category name |
description | [Language: String] | Description of this category |
active | Bool | A boolean value |
only_order_in_store | Bool | Whether this product can only get ordered in the store with a separate UI for the shop employees, and not in the public webshop |
products | [company.Product.simple] | Array of company.Product.simple |
shops | [company.Shop.simple] | Array of company.Shop.simple |
code | String? | Nullable. A custom code. You can set this to your own code and use this field to map your categories to Bakeronline categories |
id | Int | ID of the category |
banner | Image? | Nullable. |
overview_image | Image? | Nullable. |
seo | company.SeoData | Optional. The category's webpage search engine metatags |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 18094
{
"name": "Sigrid Lesch",
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"active": true,
"only_order_in_store": false,
"products": [
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": false,
"active": false,
"only_order_in_store": true,
"price_type": "PER_UNIT",
"price": 18,
"target_price": true,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 10,
"maximum": 16,
"maximum_day": 14,
"maximum_week": 10
},
"weight": {
"minimum": 10,
"maximum": 16,
"maximum_day": 11,
"maximum_week": 18,
"suggested": 19
},
"persons": {
"minimum": 15,
"maximum": 16
}
},
"id": 15,
"allergens": [
{
"id": 15,
"name": "Mustard"
},
{
"id": 18,
"name": "Sesame"
},
{
"id": 10,
"name": "Mollusc"
}
],
"category_id": 18,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "Rem consequatur iusto optio impedit voluptas natus in ut."
},
"description": {
"en": "Occaecati ipsam modi eos explicabo sapiente. Sunt quod expedita deleniti provident et libero. Repellat fuga possimus voluptas explicabo harum qui quas. Iste quibusdam ut ut quo laborum."
},
"url": {
"en": "https://www.grimes.com/ipsam-omnis-dignissimos-velit-dolor-quaerat"
}
},
"origin": {
"nl": "...",
"en": "...",
"fr": "..."
},
"ingredients": {
"nl": "...",
"en": "...",
"fr": "..."
},
"temperature_type": "any",
"warranty_type": "none",
"warranty_price": 10,
"stock": {
"soldout": true,
"amount": 19,
"soldoutUntil": "2019-01-31 12:00"
},
"daysavailable": [
18,
15,
14
],
"upfront": {
"upfront_use_default": false,
"upfront_type": "days",
"upfront_days": 15,
"upfront_time": "12:00",
"upfront_hours": 11,
"upfront_minutes": 10
},
"use_pickup_after": true,
"pickup_after": "12:00",
"use_pickup_before": false,
"pickup_before": "12:00",
"related_products": [
12,
12,
12
]
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": true,
"active": false,
"only_order_in_store": false,
"price_type": "PER_UNIT",
"price": 17,
"target_price": true,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 18,
"maximum": 14,
"maximum_day": 12,
"maximum_week": 16
},
"weight": {
"minimum": 19,
"maximum": 15,
"maximum_day": 18,
"maximum_week": 12,
"suggested": 14
},
"persons": {
"minimum": 10,
"maximum": 14
}
},
"id": 18,
"allergens": [
{
"id": 16,
"name": "Fish"
},
{
"id": 13,
"name": "Peanut"
},
{
"id": 14,
"name": "Egg"
}
],
"category_id": 11,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "Sint dolores aspernatur fugit veniam velit corrupti quia vitae."
},
"description": {
"en": "Odio et nisi sequi. Quia unde molestiae voluptatibus rerum velit et. Asperiores adipisci omnis molestias sit."
},
"url": {
"en": "http://www.herzog.com/distinctio-ducimus-et-soluta-et-nostrum-rerum"
}
},
"origin": {
"nl": "...",
"en": "...",
"fr": "..."
},
"ingredients": {
"nl": "...",
"en": "...",
"fr": "..."
},
"temperature_type": "any",
"warranty_type": "none",
"warranty_price": 15,
"stock": {
"soldout": false,
"amount": 19,
"soldoutUntil": "2019-01-31 12:00"
},
"daysavailable": [
11,
11,
12
],
"upfront": {
"upfront_use_default": false,
"upfront_type": "days",
"upfront_days": 18,
"upfront_time": "12:00",
"upfront_hours": 10,
"upfront_minutes": 14
},
"use_pickup_after": true,
"pickup_after": "12:00",
"use_pickup_before": false,
"pickup_before": "12:00",
"related_products": [
10,
12,
18
]
},
{
"name": {
"nl": "...",
"en": "...",
"fr": "..."
},
"description": {
"nl": "...",
"en": "...",
"fr": "..."
},
"specialty": false,
"active": false,
"only_order_in_store": false,
"price_type": "PER_UNIT",
"price": 11,
"target_price": false,
"url_type": "none",
"url": "https://example.com",
"min_max": {
"amount": {
"minimum": 14,
"maximum": 19,
"maximum_day": 14,
"maximum_week": 10
},
"weight": {
"minimum": 16,
"maximum": 14,
"maximum_day": 10,
"maximum_week": 15,
"suggested": 14
},
"persons": {
"minimum": 12,
"maximum": 15
}
},
"id": 14,
"allergens": [
{
"id": 18,
"name": "Mustard"
},
{
"id": 19,
"name": "Mustard"
},
{
"id": 13,
"name": "Mollusc"
}
],
"category_id": 18,
"price_look_up_code": "...",
"code": "...",
"seo": {
"title": {
"en": "A adipisci dignissimos accusamus dolor sunt."
},
"description": {
"en": "Consequuntur pariatur ea et. Adipisci quas aliquid quis culpa laboriosam corrupti qui. Quae rerum tenetur sit consequuntur corrupti."
},
"url": {
"en": "http://www.abshire.org/voluptate-porro-optio-quia-qui-qui-qui-sint"
}
},
"origin": {
"nl": "...",
"en": "...",
"fr": "..."
},
"ingredients": {
"nl": "...",
"en": "...",
"fr": "..."
},
"temperature_type": "any",
"warranty_type": "none",
"warranty_price": 13,
"stock": {
"soldout": false,
"amount": 18,
"soldoutUntil": "2019-01-31 12:00"
},
"daysavailable": [
11,
14,
16
],
"upfront": {
"upfront_use_default": true,
"upfront_type": "days",
"upfront_days": 14,
"upfront_time": "12:00",
"upfront_hours": 10,
"upfront_minutes": 14
},
"use_pickup_after": true,
"pickup_after": "12:00",
"use_pickup_before": false,
"pickup_before": "12:00",
"related_products": [
12,
11,
11
]
}
],
"shops": [
{
"name": "Prof. Hilda Flatley",
"active": false,
"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": false,
"allow_invoices": false,
"allow_order_comments": false,
"allow_product_comments": false,
"takeout_use_intervals": true,
"allow_order_messages": true,
"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
}
],
"file_id": 17,
"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": 17,
"white_background": false
},
"url": "..."
},
{
"name": "Dr. Kolby Waters DVM",
"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": false,
"allow_invoices": false,
"allow_order_comments": false,
"allow_product_comments": true,
"takeout_use_intervals": true,
"allow_order_messages": true,
"id": 18,
"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": 14,
"white_background": true
},
"url": "..."
},
{
"name": "Mark Lynch",
"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": true,
"allow_invoices": true,
"allow_order_comments": false,
"allow_product_comments": true,
"takeout_use_intervals": false,
"allow_order_messages": false,
"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
}
],
"file_id": 17,
"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": true
},
"url": "..."
}
],
"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": 19,
"white_background": true
},
"seo": {
"title": {
"en": "Aut exercitationem excepturi aut fuga tempore autem."
},
"description": {
"en": "Eos nisi maxime dicta distinctio. Repudiandae exercitationem cum qui in nam et placeat. Ea qui quod quia quod voluptatem adipisci illo."
},
"url": {
"en": "http://jacobi.com/"
}
}
}