{
  "info": {
    "_postman_id": "db8d8ce4-ab56-4d20-86a7-a460edb49ed3",
    "name": "TKE CUSTOMER API (Variables needed) - STABLE (public)",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "15758469",
    "_collection_link": "https://go.postman.co/collection/15758469-db8d8ce4-ab56-4d20-86a7-a460edb49ed3?source=collection_link"
  },
  "item": [
    {
      "name": "Auth",
      "item": [
        {
          "name": "GetToken",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "// Extrai o token do body\r",
                  "let jsonData = pm.response.json();\r",
                  "let token = jsonData.access_token;\r",
                  "\r",
                  "// Salva como variável da collection\r",
                  "pm.collectionVariables.set(\"access_token\", token);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            },
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "grant_type",
                  "value": "password",
                  "type": "text",
                  "uuid": "629e1714-579a-43af-881a-a91624abbcc7"
                },
                {
                  "key": "username",
                  "value": "{{auth_username}}",
                  "description": "email (developer portal user)",
                  "type": "text",
                  "uuid": "abddeaab-9985-466d-a610-97ea8449c62b"
                },
                {
                  "key": "password",
                  "value": "{{auth_password}}",
                  "description": "password (developer portal password)",
                  "type": "text",
                  "uuid": "b8dd72ea-603a-4a4a-9d31-95a1963c7b82"
                },
                {
                  "key": "client_id",
                  "value": "{{auth_client_id}}",
                  "type": "text",
                  "uuid": "0cb8f776-c21d-40c2-b478-869f026efffa"
                },
                {
                  "key": "scope",
                  "value": "{{auth_scope}}",
                  "type": "text",
                  "uuid": "57020b95-6fe1-4dc3-8a51-70ca5f4065f6"
                }
              ]
            },
            "url": {
              "raw": "https://maxcustomerportal.b2clogin.com/maxcustomerportal.onmicrosoft.com/B2C_1_ROPC/oauth2/v2.0/token",
              "protocol": "https",
              "host": [
                "maxcustomerportal",
                "b2clogin",
                "com"
              ],
              "path": [
                "maxcustomerportal.onmicrosoft.com",
                "B2C_1_ROPC",
                "oauth2",
                "v2.0",
                "token"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Equipment API",
      "item": [
        {
          "name": "Equipment API - Gets a list AssetActiveMasterDto",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{environment}}/equipment/?contractNumbers&nicknameFilter&addressFilter&cityFilter&unitIdFilter=&contractNumberFilter&branchFilter&statusFilter&api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "equipment",
                ""
              ],
              "query": [
                {
                  "key": "contractNumbers",
                  "value": null
                },
                {
                  "key": "nicknameFilter",
                  "value": null
                },
                {
                  "key": "addressFilter",
                  "value": null
                },
                {
                  "key": "cityFilter",
                  "value": null
                },
                {
                  "key": "unitIdFilter",
                  "value": ""
                },
                {
                  "key": "contractNumberFilter",
                  "value": null
                },
                {
                  "key": "branchFilter",
                  "value": null
                },
                {
                  "key": "statusFilter",
                  "value": null
                },
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Equipment API - Gets a list AssetActiveMasterDto CP",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://tkcp-api-staging.azurewebsites.net/api/Assets/activeUnits?contractNumbers=&nicknameFilter&addressFilter&cityFilter&unitIdFilter&contractNumberFilter&branchFilter&statusFilter&api-version={{api-version}}",
              "protocol": "https",
              "host": [
                "tkcp-api-staging",
                "azurewebsites",
                "net"
              ],
              "path": [
                "api",
                "Assets",
                "activeUnits"
              ],
              "query": [
                {
                  "key": "contractNumbers",
                  "value": ""
                },
                {
                  "key": "nicknameFilter",
                  "value": null
                },
                {
                  "key": "addressFilter",
                  "value": null
                },
                {
                  "key": "cityFilter",
                  "value": null
                },
                {
                  "key": "unitIdFilter",
                  "value": null
                },
                {
                  "key": "contractNumberFilter",
                  "value": null
                },
                {
                  "key": "branchFilter",
                  "value": null
                },
                {
                  "key": "statusFilter",
                  "value": null
                },
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Equipment API - Gets a single AssetActiveMasterDto",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{environment}}/equipment/{{tenantId}}/{{unitId}}?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "equipment",
                "{{tenantId}}",
                "{{unitId}}"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Equipment API - Gets the count of available equipments matching the provided filter options",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{environment}}/equipment/count?contractNumbers&nicknameFilter&addressFilter&cityFilter&unitIdFilter&contractNumberFilter&branchFilter&statusFilter&api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "equipment",
                "count"
              ],
              "query": [
                {
                  "key": "contractNumbers",
                  "value": null
                },
                {
                  "key": "nicknameFilter",
                  "value": null
                },
                {
                  "key": "addressFilter",
                  "value": null
                },
                {
                  "key": "cityFilter",
                  "value": null
                },
                {
                  "key": "unitIdFilter",
                  "value": null
                },
                {
                  "key": "contractNumberFilter",
                  "value": null
                },
                {
                  "key": "branchFilter",
                  "value": null
                },
                {
                  "key": "statusFilter",
                  "value": null
                },
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Realtime API",
      "item": [
        {
          "name": "Realtime API - The Realtime REST API provides endpoints to query advanced real-time information about your accessible equipment.",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "\r",
                  "pm.test(\"Response status code is 200\", function () {\r",
                  "    pm.expect(pm.response.code).to.eql(200);\r",
                  "});\r",
                  "\r",
                  "\r",
                  "/*pm.test(\"Response time is less than 1000ms\", function () {\r",
                  "    pm.expect(pm.response.responseTime).to.be.below(1000);\r",
                  "});\r",
                  "\r",
                  "\r",
                  "pm.test(\"Response has required fields\", function () {\r",
                  "    const responseData = pm.response.json();\r",
                  "    \r",
                  "    pm.expect(responseData).to.be.an('object');\r",
                  "    pm.expect(responseData).to.have.all.keys('correlationId', 'payload', 'sentTo', 'statusCode', 'statusMessage');\r",
                  "});\r",
                  "\r",
                  "\r",
                  "pm.test(\"Payload is a valid JSON string\", function () {\r",
                  "    const responseData = pm.response.json();\r",
                  "    \r",
                  "    pm.expect(responseData).to.be.an('object');\r",
                  "    pm.expect(responseData.payload).to.exist;\r",
                  "    pm.expect(() => JSON.parse(responseData.payload)).to.not.throw(\"Payload should be a valid JSON string\");\r",
                  "});\r",
                  "\r",
                  "\r",
                  "pm.test(\"Status code is a non-negative integer\", function () {\r",
                  "    const responseData = pm.response.json();\r",
                  "    \r",
                  "    pm.expect(responseData).to.have.property('equipmentStatus').that.is.a('string').and.is.at.least(0);\r",
                  "});*/"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{environment}}/realtime/state/{{deviceId}}/car?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "realtime",
                "state",
                "{{deviceId}}",
                "car"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Event API",
      "item": [
        {
          "name": "Event API - The Event REST API provides endpoints to query event information send by your accessible equipment.",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{environment}}/events/{{tenantId}}/{{unitId}}?fromUtcTime&toUtcTime&take&skip&eventId&eventTypeFilter&api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "events",
                "{{tenantId}}",
                "{{unitId}}"
              ],
              "query": [
                {
                  "key": "fromUtcTime",
                  "value": null
                },
                {
                  "key": "toUtcTime",
                  "value": null
                },
                {
                  "key": "take",
                  "value": null
                },
                {
                  "key": "skip",
                  "value": null
                },
                {
                  "key": "eventId",
                  "value": null
                },
                {
                  "key": "eventTypeFilter",
                  "value": null
                },
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Service Record API",
      "item": [
        {
          "name": "Service Record API - Gets a list of OPEN service records matching the provided filter options.",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_service}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/service-record/open?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "service-record",
                "open"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Service Record API - Gets a list of service records matching the provided filter options",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_service}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"currentFrom\": \"{{dateFrom}}\",\r\n    \"currentTo\": \"{{dateTo}}\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"ticketStatus\": \"Closed\",\r\n    \"unitIds\": [{{unitId}}]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/service-record?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "service-record"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Elevator Statistics API",
      "item": [
        {
          "name": "MAX Elevator Statistics API - Gets day of the unit's last update",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/lastupdate?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "lastupdate"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the amount of traveled TRIPS",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"day\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/trips?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "trips"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the availability",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"year\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [\"{{unitId}}\"],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/availability?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "availability"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the equipment status counter",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"month\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [\"{{unitId}}\"],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/equipmentStatusCounter?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "equipmentStatusCounter"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the duration time after a call",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"returnAverage\": true,//use FALSE to have te result in HOURS. Use TRUE to have de result in Seconds\r\n    \"aggregation\": \"day\", \r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/callDurationTime?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "callDurationTime"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the fault distribution",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"returnAverage\": true,//use FALSE to have te result in HOURS. Use TRUE to have de result in Seconds\r\n    \"aggregation\": \"day\", \r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/faultDistribution?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "faultDistribution"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the number of calls",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"consideredFloors\": \"1\",//Necessary to have the floor ID from DSC\r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"year\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/calls?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "calls"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the number of Car Calls",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n   // \"consideredFloors\": \"1\",//Necessary to have the floor ID from DSC\r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"YEAR\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/carcalls?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "carcalls"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the number of door movements in total",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n   // \"consideredFloors\": \"1\",//Necessary to have the floor ID from DSC\r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"YEAR\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/totalDoorMovements?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "totalDoorMovements"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the number of door movements separated by the door side",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n   // \"consideredFloors\": \"1\",//Necessary to have the floor ID from DSC\r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"YEAR\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/doorMovementThroughput?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "doorMovementThroughput"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the number of relevels",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n   // \"consideredFloors\": \"1\",//Necessary to have the floor ID from DSC\r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"YEAR\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/relevels?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "relevels"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the operating time operational",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"day\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/operationalCounter?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "operationalCounter"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the time to destination of the corresponding device",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    // \"consideredFloors\": \"1\",//Necessary to have the floor ID from DSC\r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"day\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/databricks/timetodestination?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "databricks",
                "timetodestination"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the time to destination of the corresponding device",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    // \"consideredFloors\": \"1\",//Necessary to have the floor ID from DSC\r\n    \"returnAverage\": false,\r\n    \"aggregation\": \"day\",\r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/databricks/transittime?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "databricks",
                "transittime"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the time to destination of the corresponding device",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"consideredFloors\": \"\",\r\n    \"returnAverage\": false,//use FALSE to have te result in HOURS. Use TRUE to have de result in Seconds\r\n    \"aggregation\": \"day\", \r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/databricks/waitingtime?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "databricks",
                "waitingtime"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the trip distance",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"consideredFloors\": \"\",\r\n    \"returnAverage\": false,//use FALSE to have te result in HOURS. Use TRUE to have de result in Seconds\r\n    \"aggregation\": \"day\", \r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/tripDistance?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "tripDistance"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the trip duration",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"consideredFloors\": \"\",\r\n    \"returnAverage\": false,//use FALSE to have te result in HOURS. Use TRUE to have de result in Seconds\r\n    \"aggregation\": \"day\", \r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/tripDuration?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "tripDuration"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "MAX Elevator Statistics API - Gets the wait time after a call",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_add_on_iot}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{    \r\n    \"consideredFloors\": \"\",\r\n    \"returnAverage\": false,//use FALSE to have te result in HOURS. Use TRUE to have de result in Seconds\r\n    \"aggregation\": \"day\", \r\n    \"dateFrom\": \"{{dateFrom}}\",\r\n    \"dateTo\": \"{{dateTo}}\",\r\n    \"gapFillingBehaviour\": \"FillWithZero\",\r\n    \"tenantId\": \"{{tenantId}}\",\r\n    \"unitIds\": [{{unitId}}],\r\n    \"regions\": \"\",\r\n    \"branches\": \"\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/elevator-statistics/max/elevator/callWaitTime?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "elevator-statistics",
                "max",
                "elevator",
                "callWaitTime"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Touchless Command API",
      "item": [
        {
          "name": "Call",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "//let jsonData = pm.response.json();\r",
                  "//let varcorrelationId = jsonData.correlationId;\r",
                  "//pm.collectionVariables.set(\"CallcorrelationId\", varcorrelationId);\r",
                  "\r",
                  "\r",
                  "// Primeiro, obter o campo 'payload' da resposta\r",
                  "let response = pm.response.json();\r",
                  "let rawPayload = response.payload;\r",
                  "\r",
                  "// Converter o payload de string para objeto JSON\r",
                  "let parsedPayload = JSON.parse(rawPayload);\r",
                  "\r",
                  "// Extrair o correlationId\r",
                  "let correlationId = parsedPayload.correlationId;\r",
                  "\r",
                  "// Exibir no console do Postman\r",
                  "//console.log(\"Correlation ID:\", correlationId);\r",
                  "\r",
                  "// Armazenar como variável global ou de ambiente, se necessário\r",
                  "//pm.environment.set(\"correlationId\", correlationId);\r",
                  "pm.collectionVariables.set(\"CallcorrelationId\", correlationId);\r",
                  "\r",
                  "pm.test(\"Response status code is 200\", function () {\r",
                  "    pm.expect(pm.response.code).to.eql(200);\r",
                  "});\r",
                  "\r",
                  "\r",
                  "pm.test(\"Response time is less than 3000ms\", function () {\r",
                  "    pm.expect(pm.response.responseTime).to.be.below(3000);\r",
                  "});\r",
                  "\r",
                  "\r",
                  "pm.test(\"Response has required fields\", function () {\r",
                  "    const responseData = pm.response.json();\r",
                  "    \r",
                  "    pm.expect(responseData).to.be.an('object');\r",
                  "    pm.expect(responseData).to.have.all.keys('correlationId', 'payload', 'sentTo', 'statusCode', 'statusMessage');\r",
                  "});\r",
                  "\r",
                  "\r",
                  "pm.test(\"Payload is a valid JSON string\", function () {\r",
                  "    const responseData = pm.response.json();\r",
                  "    \r",
                  "    pm.expect(responseData).to.be.an('object');\r",
                  "    pm.expect(responseData.payload).to.exist;\r",
                  "    pm.expect(() => JSON.parse(responseData.payload)).to.not.throw(\"Payload should be a valid JSON string\");\r",
                  "});\r",
                  "\r",
                  "\r",
                  "pm.test(\"Status code is a non-negative integer\", function () {\r",
                  "    const responseData = pm.response.json();\r",
                  "    \r",
                  "    pm.expect(responseData).to.have.property('statusCode').that.is.a('number').and.is.at.least(0);\r",
                  "});\r",
                  "\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n   //\"fromStop\": 4, //The starting floor number, which should be a multiple of 4\r\n    \"toStop\": 4, //The destination floor number, which should also be a multiple of 4\r\n    \"callType\": 0, //0 - Car Call 1 - Hall Call 2 - Destination Call\r\n    //\"callDirection\": 0, //0 - Up 1 - Down 2 - Both\r\n    \"callerLatitude\": 33.88627, //The latitude of the caller's location\r\n    \"callerLongitude\": -84.4696 //The longitude of the caller's location\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/touchless-command/{{tenantId}}/{{deviceId}}/call?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "touchless-command",
                "{{tenantId}}",
                "{{deviceId}}",
                "call"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Assigned car",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/touchless-command/{{tenantId}}/{{deviceId}}/call/{{CallcorrelationId}}?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "touchless-command",
                "{{tenantId}}",
                "{{deviceId}}",
                "call",
                "{{CallcorrelationId}}"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Escalator API",
      "item": [
        {
          "name": "Get brakes current",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//brakesCurrent?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "brakesCurrent"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get brakes temperature",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//brakesTemperature?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "brakesTemperature"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get brakes voltage",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//brakesVoltage?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "brakesVoltage"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get current consumption",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//currentConsumption?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "currentConsumption"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get distance to handrail drive wheel (left/right)",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//handrailDriveWheelDistance?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "handrailDriveWheelDistance"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get energy consumption",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//energyConsumption?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "energyConsumption"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get handrail speed",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//handrailSpeed?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "handrailSpeed"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get motor and main shaft vibrations",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//motorAndMainShaftVibrations?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "motorAndMainShaftVibrations"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get motor speed",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//motorSpeed?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "motorSpeed"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get power consumption",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//powerConsumption?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "powerConsumption"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get temperature at handrail newel (top left/right and bottom left/right)",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//handrailNewelTemperature?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "handrailNewelTemperature"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get the distance to the step band tensor station (left/right)",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//stepBandTensorStationDistance?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "stepBandTensorStationDistance"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get the stopping distance",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//stoppingDistance?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "stoppingDistance"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get the temperature at the pit (top/bottom)",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//pitTemperature?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "pitTemperature"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get voltage at phase L3",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}//voltageAtPhase?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "",
                "voltageAtPhase"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get humidity at the pit",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}/humidityAtPit?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "humidityAtPit"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get main shaft speed",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}/mainShaftSpeed?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "mainShaftSpeed"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get noise at top pit",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{environment}}/escalator-sensor-data/{{tenantId}}/{{unitId}}/noiseAtTopPit?api-version={{api-version}}",
              "host": [
                "{{environment}}"
              ],
              "path": [
                "escalator-sensor-data",
                "{{tenantId}}",
                "{{unitId}}",
                "noiseAtTopPit"
              ],
              "query": [
                {
                  "key": "api-version",
                  "value": "{{api-version}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Gateway direct call",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {}
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              },
              {
                "key": "Ocp-Apim-Subscription-Key",
                "value": "{{subscription_key_touchless_app_development}}",
                "description": "Find this variable in the collection",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://gateway.proudglacier-69c86849.westeurope.azurecontainerapps.io/assets/event/escalatorevents/databricks/{{tenantId}}/{{unitId}}?eventTypes=HPitBt&amp;eventTypes=HPitTp",
              "protocol": "https",
              "host": [
                "gateway",
                "proudglacier-69c86849",
                "westeurope",
                "azurecontainerapps",
                "io"
              ],
              "path": [
                "assets",
                "event",
                "escalatorevents",
                "databricks",
                "{{tenantId}}",
                "{{unitId}}"
              ],
              "query": [
                {
                  "key": "eventTypes",
                  "value": "HPitBt"
                },
                {
                  "key": "amp;eventTypes",
                  "value": "HPitTp"
                }
              ]
            }
          },
          "response": []
        }
      ]
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "environment",
      "value": "https://max-customerapi-stable.azure-api.net/",
      "description": "Use one of the following values for production\nhttps://api.ams.tkelevator.com\nhttps://api.ea.tkelevator.com\nhttps://api.ap.tkelevator.com\nFor tests environment, use:\nhttps://max-customerapi-stable.azure-api.net/"
    },
    {
      "key": "api-version",
      "value": "3.0",
      "description": "API version. 2.0 or 3.0"
    },
    {
      "key": "tenantId",
      "value": "US",
      "description": "Country code. Ex: US, GE, FR"
    },
    {
      "key": "unitId",
      "value": "TQDUS010",
      "description": "used for filter especific device. You can get this ID from Equipment API - Get List (unitId)"
    },
    {
      "key": "deviceId",
      "value": "US-34746332",
      "description": "used for filter especific device. You can get this ID from Equipment API - Get List (deviceId)"
    },
    {
      "key": "access_token",
      "value": "",
      "description": "Not needed—it’s generated automatically"
    },
    {
      "key": "CallcorrelationId",
      "value": "",
      "description": "Not needed—it’s generated automatically"
    },
    {
      "key": "dateFrom",
      "value": "2025-09-01",
      "description": "Used to filter the Statistics API"
    },
    {
      "key": "dateTo",
      "value": "2025-09-30",
      "description": "Used to filter the Statistics API"
    },
    {
      "key": "auth_client_id",
      "value": "74c72ab2-3ade-45fe-83e0-cd5b90704539",
      "description": "Please check with the TKE team"
    },
    {
      "key": "auth_scope",
      "value": "https://maxcustomerportal.onmicrosoft.com/a2f5f882-a93d-495d-a583-bb4d38285cdc/API",
      "description": "Please check with the TKE team for you region"
    },
    {
      "key": "auth_username",
      "value": "elias.exner@tkelevator.com",
      "description": "your developer portal user/email"
    },
    {
      "key": "auth_password",
      "value": "Senhasites1*",
      "description": "your developer portal user password"
    },
    {
      "key": "subscription_key_add_on_iot",
      "value": "de38f96501044387987b965e494ca3a5",
      "description": "Your subscription key is available in the Developer Portal, under the Profile section. Please confirm if you have access to this product."
    },
    {
      "key": "subscription_key_add_on_service",
      "value": "2b8d7f4c814b4890a5bb908b4171aa32",
      "description": "Your subscription key is available in the Developer Portal, under the Profile section. Please confirm if you have access to this product."
    },
    {
      "key": "subscription_key_work_order_management",
      "value": "735fe90e217f4e6792bd83bf1bc421f9",
      "description": "Your subscription key is available in the Developer Portal, under the Profile section. Please confirm if you have access to this product."
    },
    {
      "key": "subscription_key_touchless_app_development",
      "value": "f9b205b06dbd43139536cdbdbcbc6ded",
      "description": "Your subscription key is available in the Developer Portal, under the Profile section. Please confirm if you have access to this product."
    }
  ]
}