# Получить список категорий с продуктами
# Запрос для получения списка
METHOD GET
URI /v1/category/with-products/
AUTH Bearer <token>
- not required
# Параметры
Название | Тип | Обязательный | Описание |
---|---|---|---|
date | dateTime | false | Время на которое предположительно будет сделан заказ |
paymentType | integer | false | Идентификатор типа оплаты, с которым предположительно будет сделан заказ |
cityId | integer | false | Идентификатор города |
source | range | false | Источник запроса. Возможные варианты можно посмотреть здесь |
selfDelivery | boolean | false | Будет ли самовывоз |
lang | string | false | Язык |
Ключевые моменты
Если какой то из параметров не будет приходить, то в ответе цена будет по умолчанию
Как получить спиок языков можно посмотреть здесь
Если язык не будет приходить, то будут переводы для языка по умолчанию
# Пример
Запрос
URI /v1/category/with-products?date=2019-11-04 12:10:13&paymentType=cash&cityId=1&source=app_client&selfDelivery=true&lang=en
Ответ
{
"success": true,
"data": [
{
"products": [
{
"id": 1,
"sequence": 30,
"name": "Water 1212",
"description": "1212 Water 1212",
"price": "121.50",
"premium_price": 0,
"volume": "19 литров",
"count": 1,
"is_visible": 1,
"created_at": "2018-12-23 23:00:00",
"updated_at": "2020-01-17 15:04:53",
"category_id": 1,
"image": "http://api.aqua-delivery.localhost/uploads_thumbs/product/1/main/1zp7hK-59032-200.png",
"image_thumbnail": "http://api.aqua-delivery.localhost/uploads_thumbs/200/product/1/main/1zp7hK-59032-200.png",
"images": [],
"type": "Вода",
"cash_back_percent": "10.25",
"cash_back_sum": 12,
"min_quantity": 2
},
{
"id": 3,
"sequence": 20,
"name": null,
"description": null,
"price": 180,
"premium_price": 0,
"volume": "19 литров",
"count": 1,
"is_visible": 1,
"created_at": "2018-12-24 08:51:01",
"updated_at": "2019-12-03 08:15:56",
"category_id": 1,
"image": "http://api.aqua-delivery.localhost/uploads_thumbs/product/3/main/yCsADD-bergen-200.jpg",
"image_thumbnail": "http://api.aqua-delivery.localhost/uploads_thumbs/200/product/3/main/yCsADD-bergen-200.jpg",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 25,
"sequence": 70,
"name": null,
"description": null,
"price": 160,
"premium_price": 1,
"volume": "19 литров",
"count": 1,
"is_visible": 1,
"created_at": "2018-12-24 08:50:49",
"updated_at": "2019-01-14 07:12:44",
"category_id": 1,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 34,
"sequence": 290,
"name": null,
"description": null,
"price": 400,
"premium_price": 1,
"volume": "19 л.",
"count": 1,
"is_visible": 1,
"created_at": "2019-02-05 14:16:38",
"updated_at": "2019-07-05 14:24:48",
"category_id": 1,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Экспресс",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 45,
"sequence": 200,
"name": null,
"description": null,
"price": 340,
"premium_price": 1,
"volume": "19",
"count": 1,
"is_visible": 1,
"created_at": "2019-09-04 11:38:37",
"updated_at": "2019-10-23 16:07:38",
"category_id": 1,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "",
"cash_back_percent": "3.00",
"cash_back_sum": 10,
"min_quantity": null
},
{
"id": 48,
"sequence": 350,
"name": null,
"description": null,
"price": 120,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2019-12-04 11:42:26",
"updated_at": "2019-12-04 11:42:26",
"category_id": 1,
"image": "http://api.aqua-delivery.localhost/uploads_thumbs/product/48/main/byY5Pb-bergen-200.jpg",
"image_thumbnail": "http://api.aqua-delivery.localhost/uploads_thumbs/200/product/48/main/byY5Pb-bergen-200.jpg",
"images": [],
"type": "",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 49,
"sequence": 360,
"name": null,
"description": null,
"price": 12,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2019-12-04 11:43:20",
"updated_at": "2019-12-04 11:43:20",
"category_id": 1,
"image": "http://api.aqua-delivery.localhost/uploads_thumbs/product/49/main/bsNTDK-5b0bc13f4c676.jpg",
"image_thumbnail": "http://api.aqua-delivery.localhost/uploads_thumbs/200/product/49/main/bsNTDK-5b0bc13f4c676.jpg",
"images": [
{
"image": "http://api.aqua-delivery.localhost/uploads_thumbs/product/49/k9rD1y-5b0bbeafa2607.jpg",
"image_thumbnail": "http://api.aqua-delivery.localhost/uploads_thumbs/200/product/49/k9rD1y-5b0bbeafa2607.jpg",
"description": ""
},
{
"image": "http://api.aqua-delivery.localhost/uploads_thumbs/product/49/W45hCf-5b0bc13f4c676.jpg",
"image_thumbnail": "http://api.aqua-delivery.localhost/uploads_thumbs/200/product/49/W45hCf-5b0bc13f4c676.jpg",
"description": ""
}
],
"type": "",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 51,
"sequence": 1,
"name": "Big water test",
"description": "Biggest water",
"price": 1000,
"premium_price": 1,
"volume": "19",
"count": 1,
"is_visible": 1,
"created_at": "2020-01-17 14:50:10",
"updated_at": "2020-01-17 14:52:19",
"category_id": 1,
"image": "http://api.aqua-delivery.localhost/uploads_thumbs/product/51/main/rs7eWi-5b0bc13f4c676.jpg",
"image_thumbnail": "http://api.aqua-delivery.localhost/uploads_thumbs/200/product/51/main/rs7eWi-5b0bc13f4c676.jpg",
"images": [],
"type": "Вода",
"cash_back_percent": "10.00",
"cash_back_sum": 100,
"min_quantity": 1
}
],
"id": 1,
"sequence": 10,
"name": "Water",
"description": null,
"is_visible": 1,
"is_promotion": 0,
"updated_at": "2020-01-16 10:58:53",
"created_at": "2018-12-08 11:56:16",
"parent_id": null,
"image": ""
},
{
"products": [
{
"id": 5,
"sequence": 40,
"name": "Water \"Every day\"",
"description": "",
"price": 13,
"premium_price": 1,
"volume": "1,5 литра",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:51:06",
"updated_at": "2020-01-16 13:17:06",
"category_id": 3,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Оборудование",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 7,
"sequence": 80,
"name": null,
"description": null,
"price": 19,
"premium_price": 1,
"volume": "1,5 литра",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:51:56",
"updated_at": "2018-12-24 08:51:56",
"category_id": 3,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 8,
"sequence": 90,
"name": null,
"description": null,
"price": 42,
"premium_price": 1,
"volume": "0,45 литра",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:52:00",
"updated_at": "2018-12-24 08:52:00",
"category_id": 3,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 9,
"sequence": 100,
"name": null,
"description": null,
"price": 106,
"premium_price": 1,
"volume": "0,75 литра",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:52:21",
"updated_at": "2018-12-24 08:52:21",
"category_id": 3,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 10,
"sequence": 110,
"name": null,
"description": null,
"price": 108,
"premium_price": 1,
"volume": "0,618 литра",
"count": 12,
"is_visible": 1,
"created_at": "2018-12-24 08:52:04",
"updated_at": "2020-01-15 16:25:52",
"category_id": 3,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 28,
"sequence": 230,
"name": null,
"description": null,
"price": 120,
"premium_price": 1,
"volume": "1",
"count": 1,
"is_visible": 1,
"created_at": "2018-12-24 09:08:11",
"updated_at": "2019-12-12 15:57:03",
"category_id": 3,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "10.00",
"cash_back_sum": 12,
"min_quantity": null
}
],
"id": 3,
"sequence": 20,
"name": "Services",
"description": null,
"is_visible": 1,
"is_promotion": 0,
"updated_at": "2020-01-16 13:16:21",
"created_at": "2018-12-10 11:56:20",
"parent_id": null,
"image": ""
},
{
"products": [
{
"id": 12,
"sequence": 130,
"name": null,
"description": null,
"price": 29000,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:52:16",
"updated_at": "2019-10-23 16:07:17",
"category_id": 4,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Оборудование",
"cash_back_percent": "1.00",
"cash_back_sum": 290,
"min_quantity": null
},
{
"id": 13,
"sequence": 140,
"name": null,
"description": null,
"price": 24000,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:52:35",
"updated_at": "2019-01-14 06:55:50",
"category_id": 4,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 14,
"sequence": 150,
"name": null,
"description": null,
"price": 45000,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:52:40",
"updated_at": "2019-01-14 07:01:40",
"category_id": 4,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 15,
"sequence": 160,
"name": null,
"description": null,
"price": 3500,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:52:46",
"updated_at": "2019-01-14 07:20:48",
"category_id": 4,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 16,
"sequence": 170,
"name": null,
"description": null,
"price": 800,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:51:16",
"updated_at": "2019-01-11 14:07:17",
"category_id": 4,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 17,
"sequence": 180,
"name": null,
"description": null,
"price": 3500,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:52:26",
"updated_at": "2019-01-14 07:06:14",
"category_id": 4,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
},
{
"id": 18,
"sequence": 190,
"name": null,
"description": null,
"price": 13000,
"premium_price": 1,
"volume": "",
"count": null,
"is_visible": 1,
"created_at": "2018-12-24 08:52:09",
"updated_at": "2019-01-14 07:07:52",
"category_id": 4,
"image": "",
"image_thumbnail": "",
"images": [],
"type": "Вода",
"cash_back_percent": "0.00",
"cash_back_sum": 0,
"min_quantity": null
}
],
"id": 4,
"sequence": 40,
"name": null,
"description": null,
"is_visible": 1,
"is_promotion": 0,
"updated_at": "2020-01-14 15:24:16",
"created_at": "2018-12-24 11:56:47",
"parent_id": null,
"image": ""
}
]
}