{
	"info": {
		"_postman_id": "ff9b9ff2-a716-41f0-8e5e-62b3945fbb88",
		"name": "API Server",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "19382483"
	},
	"item": [
		{
			"name": "Авторизация",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://6dsrf43q.iiko.it/resto/api/auth?login=Evgenii_Mazai&pass=53fd3e9e858b1e78d08c4db6b805a44f40d61220",
					"protocol": "https",
					"host": [
						"6dsrf43q",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"auth"
					],
					"query": [
						{
							"key": "login",
							"value": "Evgenii_Mazai"
						},
						{
							"key": "pass",
							"value": "53fd3e9e858b1e78d08c4db6b805a44f40d61220"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Авторизация Copy",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://6dsrf43q.iiko.it/resto/api/auth?login=Evgenii_Mazai&pass=53fd3e9e858b1e78d08c4db6b805a44f40d61220",
					"protocol": "https",
					"host": [
						"6dsrf43q",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"auth"
					],
					"query": [
						{
							"key": "login",
							"value": "Evgenii_Mazai"
						},
						{
							"key": "pass",
							"value": "53fd3e9e858b1e78d08c4db6b805a44f40d61220"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "edi",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://6dsrf43q.iiko.it/resto/api/auth?login=Evgenii_Mazai&pass=53fd3e9e858b1e78d08c4db6b805a44f40d61220",
					"protocol": "https",
					"host": [
						"6dsrf43q",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"auth"
					],
					"query": [
						{
							"key": "login",
							"value": "Evgenii_Mazai"
						},
						{
							"key": "pass",
							"value": "53fd3e9e858b1e78d08c4db6b805a44f40d61220"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "запрос тех. карт.",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/resto/api/assemblyCharts/getAll?dateFrom={dateFrom}&dateTo={dateTo}&includeDeletedProducts=true&includePreparedCharts=false",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"resto",
						"api",
						"assemblyCharts",
						"getAll"
					],
					"query": [
						{
							"key": "dateFrom",
							"value": "{dateFrom}"
						},
						{
							"key": "dateTo",
							"value": "{dateTo}"
						},
						{
							"key": "includeDeletedProducts",
							"value": "true"
						},
						{
							"key": "includePreparedCharts",
							"value": "false"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "запрос тех. карт. Copy",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/resto/api/assemblyCharts/getAll?dateFrom={dateFrom}&dateTo={dateTo}&includeDeletedProducts=true&includePreparedCharts=false",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"resto",
						"api",
						"assemblyCharts",
						"getAll"
					],
					"query": [
						{
							"key": "dateFrom",
							"value": "{dateFrom}"
						},
						{
							"key": "dateTo",
							"value": "{dateTo}"
						},
						{
							"key": "includeDeletedProducts",
							"value": "true"
						},
						{
							"key": "includePreparedCharts",
							"value": "false"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "получение сотрудников",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://la-veranda-anapa.iiko.it/resto/api/employees?key=11ce701a-3f86-f196-d5f8-1033831ff146",
					"protocol": "https",
					"host": [
						"la-veranda-anapa",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"employees"
					],
					"query": [
						{
							"key": "key",
							"value": "11ce701a-3f86-f196-d5f8-1033831ff146"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "получение типов оплаты",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://6dsrf43q.iiko.it:443/resto/api/v2/entities/list?rootType=PaymentType",
					"protocol": "https",
					"host": [
						"6dsrf43q",
						"iiko",
						"it"
					],
					"port": "443",
					"path": [
						"resto",
						"api",
						"v2",
						"entities",
						"list"
					],
					"query": [
						{
							"key": "rootType",
							"value": "PaymentType"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Выход из АПИ",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/resto/api/logout?key=[token]",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"resto",
						"api",
						"logout"
					],
					"query": [
						{
							"key": "key",
							"value": "[token]"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Запрос полей OLAP",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "4d8b9296-c7a3-657d-23f0-e013451d8ff3",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"url": {
					"raw": "http://localhost:8080/resto/api/v2/reports/balance/stores?key=4d8b9296-c7a3-657d-23f0-e013451d8ff3&timestamp=2021-04-17T23:59:00",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"resto",
						"api",
						"v2",
						"reports",
						"balance",
						"stores"
					],
					"query": [
						{
							"key": "key",
							"value": "4d8b9296-c7a3-657d-23f0-e013451d8ff3"
						},
						{
							"key": "timestamp",
							"value": "2021-04-17T23:59:00"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Запрос КС",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": ""
				}
			},
			"response": []
		},
		{
			"name": "OLAP по продажам",
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"reportType\": \"SALES\",\r\n    \"buildSummary\": \"true\",\r\n    \"groupByRowFields\": [\r\n        \"PayTypes\"\r\n    ],\r\n    \"groupByColFields\": [],\r\n    \"aggregateFields\": [\r\n        \"GuestNum\",\r\n        \"UniqOrderId\",\r\n        \"DishDiscountSumInt.average\"\r\n    ],\r\n    \"filters\": {\r\n        \"OpenDate.Typed\": {\r\n            \"filterType\": \"DateRange\",\r\n            \"periodType\": \"CUSTOM\",\r\n            \"from\": \"2021-08-02\",\r\n            \"to\": \"2021-08-19\",\r\n            \"includeLow\": true,\r\n            \"includeHigh\": true\r\n        },\r\n        \"OpenTime\": {\r\n            \"filterType\": \"DateRange\",\r\n            \"periodType\": \"CUSTOM\",\r\n            \"from\": \"2021-08-02T01:00:00.000\",\r\n            \"to\": \"2021-08-31T23:00:00.000\",\r\n            \"includeLow\": true,\r\n            \"includeHigh\": true\r\n        },\r\n        \"DeletedWithWriteoff\": {\r\n            \"filterType\": \"ExcludeValues\",\r\n            \"values\": [\r\n                \"DELETED_WITH_WRITEOFF\",\r\n                \"DELETED_WITHOUT_WRITEOFF\"\r\n            ]\r\n        },\r\n        \"OrderDeleted\": {\r\n            \"filterType\": \"IncludeValues\",\r\n            \"values\": [\r\n                \"NOT_DELETED\"\r\n            ]\r\n        }\r\n    }\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://6dsrf43q.iiko.it/resto/api/reports/olap?report=SALES&from=10.05.2023&to=10.05.2023&DeletedWithWriteoff=filterType=ExcludeValues&groupRow=RestorauntGroup=&groupRow=Department&groupRow=DeletedWithWriteoff&agr=DiscountSum&agr=fullSum&agr=DishReturnSum&agr=sumAfterDiscountWithoutVAT%30&agr=DishSumInt%30&agr=DishReturnSum%30&agr=DishDiscountSumInt&agr=DishDiscountSumInt.withoutVAT&agr=discountWithoutVAT&agr=ProductCostBase.ProductCost&agr=GuestNum &key=5cc3a348-649f-5b0c-7d8c-d6922b5e2c08",
					"protocol": "https",
					"host": [
						"6dsrf43q",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"reports",
						"olap"
					],
					"query": [
						{
							"key": "report",
							"value": "SALES"
						},
						{
							"key": "from",
							"value": "10.05.2023"
						},
						{
							"key": "to",
							"value": "10.05.2023"
						},
						{
							"key": "DeletedWithWriteoff",
							"value": "filterType=ExcludeValues"
						},
						{
							"key": "groupRow",
							"value": "RestorauntGroup="
						},
						{
							"key": "groupRow",
							"value": "Department"
						},
						{
							"key": "groupRow",
							"value": "DeletedWithWriteoff"
						},
						{
							"key": "agr",
							"value": "DiscountSum"
						},
						{
							"key": "agr",
							"value": "fullSum"
						},
						{
							"key": "agr",
							"value": "DishReturnSum"
						},
						{
							"key": "agr",
							"value": "sumAfterDiscountWithoutVAT%30"
						},
						{
							"key": "agr",
							"value": "DishSumInt%30"
						},
						{
							"key": "agr",
							"value": "DishReturnSum%30"
						},
						{
							"key": "agr",
							"value": "DishDiscountSumInt"
						},
						{
							"key": "agr",
							"value": "DishDiscountSumInt.withoutVAT"
						},
						{
							"key": "agr",
							"value": "discountWithoutVAT"
						},
						{
							"key": "agr",
							"value": "ProductCostBase.ProductCost"
						},
						{
							"key": "agr",
							"value": "GuestNum "
						},
						{
							"key": "key",
							"value": "5cc3a348-649f-5b0c-7d8c-d6922b5e2c08"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "OLAP по продажам в2",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "5cc3a348-649f-5b0c-7d8c-d6922b5e2c08",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"reportType\": \"SALES\",\r\n    \"buildSummary\": \"true\",\r\n    \"groupByRowFields\": [\r\n        \r\n    ],\r\n    \"groupByColFields\": [\"Department\"],\r\n    \"aggregateFields\": [\r\n        \"fullSum\",\r\n        \"DishSumInt\",\r\n        \"DiscountSum\",\r\n        \"ProductCostBase.ProductCost\"\r\n    ],\r\n    \"filters\": {\r\n        \"OpenDate.Typed\": {\r\n            \"filterType\": \"DateRange\",\r\n            \"periodType\": \"CUSTOM\",\r\n            \"from\": \"2023-05-10\",\r\n            \"to\": \"2023-05-11\",\r\n            \"includeLow\": true,\r\n            \"includeHigh\": true\r\n        },\r\n        \r\n        \"DeletedWithWriteoff\": {\r\n            \"filterType\": \"ExcludeValues\",\r\n            \"values\": [\r\n                \"DELETED_WITH_WRITEOFF\",\r\n                \"DELETED_WITHOUT_WRITEOFF\"\r\n            ]\r\n        },\r\n        \"OrderDeleted\": {\r\n            \"filterType\": \"IncludeValues\",\r\n            \"values\": [\r\n                \"NOT_DELETED\"\r\n            ]\r\n        }\r\n    }\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://6dsrf43q.iiko.it/resto/api/v2/reports/olap?=49dc00d6-9459-9bf3-cba3-7647db20b021",
					"protocol": "https",
					"host": [
						"6dsrf43q",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"v2",
						"reports",
						"olap"
					],
					"query": [
						{
							"key": "",
							"value": "49dc00d6-9459-9bf3-cba3-7647db20b021"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Получение полей для олап в2",
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"reportType\": \"SALES\",\r\n    \"buildSummary\": \"true\",\r\n    \"groupByRowFields\": [\r\n        \"PayTypes\"\r\n    ],\r\n    \"groupByColFields\": [],\r\n    \"aggregateFields\": [\r\n        \"GuestNum\",\r\n        \"UniqOrderId\",\r\n        \"DishDiscountSumInt.average\"\r\n    ],\r\n    \"filters\": {\r\n        \"OpenDate.Typed\": {\r\n            \"filterType\": \"DateRange\",\r\n            \"periodType\": \"CUSTOM\",\r\n            \"from\": \"2021-08-02\",\r\n            \"to\": \"2021-08-19\",\r\n            \"includeLow\": true,\r\n            \"includeHigh\": true\r\n        },\r\n        \"OpenTime\": {\r\n            \"filterType\": \"DateRange\",\r\n            \"periodType\": \"CUSTOM\",\r\n            \"from\": \"2021-08-02T01:00:00.000\",\r\n            \"to\": \"2021-08-31T23:00:00.000\",\r\n            \"includeLow\": true,\r\n            \"includeHigh\": true\r\n        },\r\n        \"DeletedWithWriteoff\": {\r\n            \"filterType\": \"ExcludeValues\",\r\n            \"values\": [\r\n                \"DELETED_WITH_WRITEOFF\",\r\n                \"DELETED_WITHOUT_WRITEOFF\"\r\n            ]\r\n        },\r\n        \"OrderDeleted\": {\r\n            \"filterType\": \"IncludeValues\",\r\n            \"values\": [\r\n                \"NOT_DELETED\"\r\n            ]\r\n        }\r\n    }\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://6dsrf43q.iiko.it/resto/api/v2/reports/olap/columns?key=5cc3a348-649f-5b0c-7d8c-d6922b5e2c08&reportType=SALES",
					"protocol": "https",
					"host": [
						"6dsrf43q",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"v2",
						"reports",
						"olap",
						"columns"
					],
					"query": [
						{
							"key": "key",
							"value": "5cc3a348-649f-5b0c-7d8c-d6922b5e2c08"
						},
						{
							"key": "reportType",
							"value": "SALES"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "склады",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://msk-0001-frw.iiko.it/resto/api/corporation/stores?key=7b315c93-e969-79b7-cd2f-7df94f0551fb",
					"protocol": "https",
					"host": [
						"msk-0001-frw",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"corporation",
						"stores"
					],
					"query": [
						{
							"key": "key",
							"value": "7b315c93-e969-79b7-cd2f-7df94f0551fb"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "склады Copy",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://msk-0001-frw.iiko.it/resto/api/corporation/stores?key=7b315c93-e969-79b7-cd2f-7df94f0551fb",
					"protocol": "https",
					"host": [
						"msk-0001-frw",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"corporation",
						"stores"
					],
					"query": [
						{
							"key": "key",
							"value": "7b315c93-e969-79b7-cd2f-7df94f0551fb"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "OLAP по проводки в2",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "5cc3a348-649f-5b0c-7d8c-d6922b5e2c08",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \"reportType\": \"TRANSACTIONS\",\r\n    \"buildSummary\": \"true\",\r\n    \"groupByRowFields\": [\r\n        \r\n    ],\r\n    \"groupByColFields\": [\"Document\",\r\n    \"TransactionType\",\r\n    \"Contr-Account.Name\",\r\n        \"Account.CounteragentType\",\r\n        \"Account.StoreOrAccount\",\r\n        \"Counteragent.Name\",\r\n        \"DateTime.DateTyped\",\r\n        \"Department\"],\r\n    \"filters\": {\r\n        \"DateTime.DateTyped\": {\r\n            \"filterType\": \"DateRange\",\r\n            \"periodType\": \"CUSTOM\",\r\n            \"from\": \"2023-06-16\",\r\n            \"to\": \"2023-06-17\",\r\n            \"includeLow\": true,\r\n            \"includeHigh\": true\r\n        },\r\n        \"TransactionType\": {\r\n            \"filterType\": \"IncludeValues\",\r\n            \"values\": [\"OUTGOING_INVOICE\",\r\n\"INVOICE\",\r\n\"OUTGOING_INVOICE_REVENUE\"]\r\n        }\r\n,\r\n\"Contr-Account.Name\":{\r\n    \"filterType\": \"IncludeValues\",\r\n    \"values\": [\"Перемещение между ТП\"]\r\n}\r\n        \r\n       \r\n    }\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://6dsrf43q.iiko.it/resto/api/v2/reports/olap?=c4c41f11-9c56-3a6c-8f15-95408b3ec6e3",
					"protocol": "https",
					"host": [
						"6dsrf43q",
						"iiko",
						"it"
					],
					"path": [
						"resto",
						"api",
						"v2",
						"reports",
						"olap"
					],
					"query": [
						{
							"key": "",
							"value": "c4c41f11-9c56-3a6c-8f15-95408b3ec6e3"
						}
					]
				}
			},
			"response": []
		}
	]
}