{"info":{"_postman_id":"25e50765-5ed4-4a9d-99b4-7aae4ae7e9c1","name":"Bypass API docs","description":"<html><head></head><body><p>API w systemie Bypass jest oparte o architekturę REST, zwraca:</p>\n<ol>\n<li><code>code</code> - kod odpowiedzi (określa powodzenie/ niepowodzenie zapytania) zgodny z kodami odpowiedzi <code>HTTP</code>,</li>\n<li><code>status</code> - informacja czy operacja się powiodła (<b>boolean<b>),</b></b></li>\n<li><code>message</code> - wiadomość,</li>\n<li><code>data</code> / <code>error</code> - dane/ błąd (<b>obiekt</b>).</li>\n</ol>\n<p>Format danych: <code>Content-Type: application/x-www-form-urlencoded</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18417878","collectionId":"25e50765-5ed4-4a9d-99b4-7aae4ae7e9c1","publishedId":"UVJZny6G","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"a3238e"},"publishDate":"2021-11-24T14:38:59.000Z"},"item":[{"name":"Autoryzacja","item":[{"name":"TOKEN","id":"8eae410f-5648-461d-b9be-f8a6b493c96d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{CLIENT_ID}}","type":"text"},{"key":"client_secret","value":"{{CLIENT_SECRET}}","type":"text"}]},"url":"https://bypass.avenirmed.com/api/token","description":"<p>Pobiera lub odnawia token, którego ważność wynosi 2 godziny.</p>\n<p>W celu uzyskania tymczasowego tokena <code>Bearer Token</code> należy wywołać zapytanie typu <code>POST</code> na powyższy adres. Przekazać należy również login oraz hasło użytownika API, które są wymagane do autoryzacji wykorzystującej HTTP BASE AUTH</p>\n<ul>\n<li>uwierzytelnienie to, dostępne jest tylko w aplikacji. Token jest tablicą o nieokreślonym formacie, generowaną za pomocą skryptu.</li>\n</ul>\n<p>Po poprawnym wywołaniu adresu, system zwraca token.</p>\n<p><code>CLIENT_ID</code>, <code>CLIENT_SECRET</code> - indywidualne parametry dostępu klienta.</p>\n","urlObject":{"protocol":"https","path":["api","token"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"48120101-9bf5-4cd2-beb9-cdd3035bff4f","name":"TOKEN - success","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{CLIENT_ID}}","type":"text"},{"key":"client_secret","value":"{{CLIENT_SECRET}}","type":"text"}]},"url":"https://bypass.avenirmed.com/api/token"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 09:54:31 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"194"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2Mzc1NzQ4NzIsImV4cCI6MTYzNzU4MjA3MiwianRpIjoiMGNmY2VjYWU0Yjk1OTMxZSJ9.qs26Scvq0zqnk6rjn8QQO4EglgORoYkgb3F8_jOGKJM\",\n    \"expires\": 1637582072\n}"},{"id":"0ca4e057-5e91-45cb-b856-bdf4d7dd7c1f","name":"TOKEN - error","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{CLIENT_ID}}","type":"text"},{"key":"client_secret","value":"{{CLIENT_SECRET}}","type":"text"}]},"url":"https://bypass.avenirmed.com/api/token"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Nov 2021 09:11:02 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"52"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Incorrect credentials\"\n}"}],"_postman_id":"8eae410f-5648-461d-b9be-f8a6b493c96d"}],"id":"755719f3-d0f0-47b6-a946-c88c45a4d384","_postman_id":"755719f3-d0f0-47b6-a946-c88c45a4d384","description":""},{"name":"Wizyty","item":[{"name":"VISIT - ALL","id":"73c62cae-be1b-43bd-a121-77dbbf6366dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://bypass.avenirmed.com/api/visit","description":"<p>Pobiera wszystkie wizyty za pomocą wywołania typu <code>GET</code>. Możliwe jest używanie filtrów, po których użyciu zakres zwracanych danych zostanie ograniczony zgodnie z przekazanymi wartościami. </p>\n<p>Dostępne parametry filtrowania:</p>\n<ol>\n<li><code>mpk</code> - numer mpk wizyty,</li>\n<li><code>id_client</code> - identyfikator klienta,</li>\n<li><code>email</code> - adres e-mail klienta,</li>\n<li><code>phone</code> - numer telefonu klienta jako ciąg 9 cyfr (bez znaków białych),</li>\n<li><code>visit_date</code> - data wizyty,</li>\n<li><code>status</code> - status wizyty.</li>\n<li><code>visit_type</code> - typ wizyty.</li>\n</ol>\n<p>W odpowiedzi system zwraca obiekt zawierający zestaw danych objęty w filtrze, lub gdy nie był użyty, wszystkie wizyty.</p>\n","urlObject":{"protocol":"https","path":["api","visit"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"0c5a1c82-bab4-4a39-9e9f-b053ee592998","name":"VISIT - ALL - success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://bypass.avenirmed.com/api/visit?visit_date=2021-09-01","protocol":"https","host":["bypass","avenirmed","com"],"path":["api","visit"],"query":[{"key":"visit_date","value":"2021-09-01"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 08:42:42 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"1355"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": true,\n    \"data\": [\n        {\n            \"id_visit\": \"7\",\n            \"visit_type\": \"1\",\n            \"id_client\": \"7\",\n            \"firstname\": \"Jan\",\n            \"lastname\": \"Nowak\",\n            \"email\": \"jan.nowak@test.pl\",\n            \"phone\": \"123456789\",\n            \"date_add\": \"2021-11-22 11:43:52\",\n            \"status\": \"0\",\n            \"mpk\": \"2724\",\n            \"visit_date\": \"2021-09-01\"\n        },\n        {\n            \"id_visit\": \"6\",\n            \"visit_type\": \"1\",\n            \"id_client\": \"6\",\n            \"firstname\": \"Jan\",\n            \"lastname\": \"Nowak\",\n            \"email\": \"jan.nowak@test.pl\",\n            \"phone\": \"123456789\",\n            \"date_add\": \"2021-11-19 15:13:27\",\n            \"status\": \"0\",\n            \"mpk\": \"2724\",\n            \"visit_date\": \"2021-09-01\"\n        },\n        {\n            \"id_visit\": \"5\",\n            \"visit_type\": \"1\",\n            \"id_client\": \"5\",\n            \"firstname\": \"Jan\",\n            \"lastname\": \"Nowak\",\n            \"email\": \"jan.nowak@test.pl\",\n            \"phone\": \"123456789\",\n            \"date_add\": \"2021-11-19 13:35:07\",\n            \"status\": \"0\",\n            \"mpk\": \"2724\",\n            \"visit_date\": \"2021-09-01\"\n        },\n        {\n            \"id_visit\": \"4\",\n            \"visit_type\": \"1\",\n            \"id_client\": \"4\",\n            \"firstname\": \"Jan\",\n            \"lastname\": \"Nowak\",\n            \"email\": \"jan.nowak@test.pl\",\n            \"phone\": \"123456789\",\n            \"date_add\": \"2021-11-19 12:43:21\",\n            \"status\": \"0\",\n            \"mpk\": \"2724\",\n            \"visit_date\": \"2021-09-01\"\n        },\n        {\n            \"id_visit\": \"2\",\n            \"visit_type\": \"1\",\n            \"id_client\": \"2\",\n            \"firstname\": \"Jan\",\n            \"lastname\": \"Nowak\",\n            \"email\": \"jan.nowak@test.pl\",\n            \"phone\": \"123456789\",\n            \"date_add\": \"2021-11-17 14:15:13\",\n            \"status\": \"0\",\n            \"mpk\": \"2724\",\n            \"visit_date\": \"2021-09-01\"\n        },\n        {\n            \"id_visit\": \"1\",\n            \"visit_type\": \"1\",\n            \"id_client\": \"1\",\n            \"firstname\": \"Jan\",\n            \"lastname\": \"Nowak\",\n            \"email\": \"jan.nowak@test.pl\",\n            \"phone\": \"123456789\",\n            \"date_add\": \"2021-11-17 13:49:22\",\n            \"status\": \"0\",\n            \"mpk\": \"2724\",\n            \"visit_date\": \"2021-09-01\"\n        }\n    ]\n}"},{"id":"eb84eeff-dd49-4008-8a61-3258c5325560","name":"VISIT - ALL - error","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://bypass.avenirmed.com/api/visit?test=test","protocol":"https","host":["bypass","avenirmed","com"],"path":["api","visit"],"query":[{"key":"test","value":"test"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 10:20:26 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"84"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": false,\n    \"message\": \"A parameter is not allowed in this location.\"\n}"}],"_postman_id":"73c62cae-be1b-43bd-a121-77dbbf6366dc"},{"name":"VISIT - GET","id":"c08aa2f0-c411-431d-acfa-dda1fbfc6877","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}","description":"<p>W celu pobrania konkretnej wizyty należy wykonać wywołanie typu <code>GET</code>, w którym jako parametr <code>VISIT_ID</code> jest przekazywany ID wizyty.</p>\n<p>W odpowiedzi system zwraca obiekt json zawierający dane wizyty. W skład wchodzą dane klienta oraz data i godzina wizyty.</p>\n","urlObject":{"protocol":"https","path":["api","visit","{{VISIT_ID}}"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"c9294428-408a-45a3-aed6-f716e46e7105","name":"VISIT - GET - success","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Nov 2021 13:40:00 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"359"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": true,\n    \"message\": \"Ok.\",\n    \"data\": {\n        \"id_visit\": 1,\n        \"id_client\": 1,\n        \"firstname\": \"Jan\",\n        \"lastname\": \"Nowak\",\n        \"email\": \"jan.nowak@test.pl\",\n        \"phone\": \"123456789\",\n        \"visit_date\": \"2021-09-01\",\n        \"slots\": [\n            {\n                \"id_slot\": 1,\n                \"user\": \"Jan Kowalski\",\n                \"time_start\": \"12:00\",\n                \"time_end\": \"12:15\"\n            }\n        ],\n        \"date_add\": {\n            \"date\": \"2021-11-17 13:49:22.000000\",\n            \"timezone_type\": 3,\n            \"timezone\": \"Europe/Berlin\"\n        },\n        \"status\": 0\n    }\n}"},{"id":"d016bcd5-837f-4335-a545-fc9f798b2555","name":"VISIT - GET - error","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 10:31:22 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"60"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": false,\n    \"message\": \"Incorrect Slot Data.\"\n}"}],"_postman_id":"c08aa2f0-c411-431d-acfa-dda1fbfc6877"},{"name":"VISIT - ADD","id":"b68a6c36-3e3c-4b62-8e64-dc7b34f7a257","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id_slot[]","value":"","description":"<p>SLOTS_ARRAY</p>\n","type":"text"},{"key":"visit_type","value":"","description":"<p>VISIT_TYPE</p>\n","type":"text"},{"key":"id_client","value":"","description":"<p>CUSTOMER_ID</p>\n","type":"text"},{"key":"firstname","value":"","description":"<p>CUSTOMER_FIRSTNAME</p>\n","type":"text"},{"key":"lastname","value":"","description":"<p>CUSTOMER_LASTNAME</p>\n","type":"text"},{"key":"email","value":"","description":"<p>CUSTOMER_EMAIL_ADDRESS</p>\n","type":"text"},{"key":"phone","value":"","description":"<p>CUSTOMER_PHONE_NUMBER</p>\n","type":"text"}]},"url":"https://bypass.avenirmed.com/api/visit","description":"<p>W celu dodania wizyty systemie Bypass należy wykonać wywołanie  typu <code>POST</code>.</p>\n<p>Wymagane parametry:</p>\n<ol>\n<li><code>id_slot[]</code> - integer (<b>required</b>)</li>\n<li><code>visit_type</code> - integer (<b>required</b>)</li>\n<li><code>id_client</code> - integer</li>\n<li><code>firstname</code> - string (<b>required</b>)</li>\n<li><code>lastname</code> - string (<b>required</b>)</li>\n<li><code>email</code> - email (<b>required</b>)</li>\n<li><code>phone</code> - numeric (9 znaków) (<b>required</b>)</li>\n<li><code>id_visit</code> - integer</li>\n</ol>\n<p>System zwraca odpowiedź wraz z kodem, wiadomością oraz ID wizyty w obiekcie json.</p>\n","urlObject":{"protocol":"https","path":["api","visit"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"5927f7b3-800c-4b3b-8c9b-0d02eeae88dd","name":"VISIT - ADD - success","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id_slot[]","value":"12","type":"text"},{"key":"id_slot[]","value":"13","type":"text"},{"key":"firstname","value":"Jan","type":"text"},{"key":"lastname","value":"Nowak","type":"text"},{"key":"email","value":"jan.nowak@test.pl","type":"text"},{"key":"phone","value":"665443221","type":"text"}]},"url":"https://bypass.avenirmed.com/api/visit"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 10:43:51 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"63"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"status\": true,\n    \"message\": \"Ok\",\n    \"data\": {\n        \"id_visit\": 7\n    }\n}"},{"id":"eb342f74-31f5-4911-87a4-f4cec793d578","name":"VISIT - ADD - error","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id_slot[]","value":"12","type":"text"},{"key":"id_slot[]","value":"13","type":"text"},{"key":"visit_type","value":"1","type":"text"},{"key":"firstname","value":"Jan","type":"text"},{"key":"lastname","value":"Nowak","type":"text"},{"key":"email","value":"jan.nowak@test.pl","type":"text"},{"key":"phone","value":"665443221","type":"text"}]},"url":"https://bypass.avenirmed.com/api/visit"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 10:45:04 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"87"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": false,\n    \"message\": \"Invalid data.\",\n    \"errors\": [\n        \"Lastname is required\"\n    ]\n}"}],"_postman_id":"b68a6c36-3e3c-4b62-8e64-dc7b34f7a257"},{"name":"VISIT - UPDATE","id":"68a739de-ba00-4746-bfaf-09d016d02ab0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id_slot[]","value":"","description":"<p>SLOTS_ARRAY</p>\n","type":"text"},{"key":"firstname","value":"","description":"<p>CUSTOMER_FIRSTNAME</p>\n","type":"text"},{"key":"lastname","value":"","description":"<p>CUSTOMER_LASTNAME</p>\n","type":"text"},{"key":"phone","value":"","description":"<p>CUSTOMER_PHONE_NUMBER</p>\n","type":"text"},{"key":"email","value":"","description":"<p>CUSTOMER_EMAIL</p>\n","type":"text"},{"key":"id_client","value":"","description":"<p>CUSTOMER_ID</p>\n","type":"text"},{"key":"status","value":"","description":"<p>VISIT_STATUS</p>\n","type":"text"},{"key":"visit_type","value":"","description":"<p>VISIT_TYPE</p>\n","type":"text"}]},"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}","description":"<p>Aby edytować wizytę, należy wykonać wywołanie typu <code>PATCH</code>, w którym zostanie przekazany ID aktualizowanej wizyty.</p>\n<p>Jako parametry system przyjmuje (<b>parametry są opcjonalne</b>):</p>\n<ol>\n<li><code>id_slot[]</code> - integer, tablica lub obiekt</li>\n<li><code>id_client</code> - integer</li>\n<li><code>firstname</code> - string (minimum 2 znaki)</li>\n<li><code>lastname</code> - string (minimum 2 znaki)</li>\n<li><code>email</code> - email</li>\n<li><code>phone</code> - numeric (9 znaków)</li>\n<li><code>status</code> - integer</li>\n<li><code>visit_type</code> - integer</li>\n</ol>\n<p>W odpowiedz system zwraca kod, wiadomość oraz obiekt json z danymi potwierdzającymi zmienioną zawartość lub w przypadku niepowodzenia z błędami.</p>\n","urlObject":{"protocol":"https","path":["api","visit","{{VISIT_ID}}"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"dc96ac12-7fc3-48f7-b890-d7f8560f8982","name":"VISIT - UPDATE - success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id_slot[]","value":"20","type":"text"},{"key":"id_slot[]","value":"21","type":"text"},{"key":"firstname","value":"Jacek","type":"text"},{"key":"lastname","value":"Kowalski","type":"text"}]},"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 11:12:52 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"496"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": true,\n    \"message\": \"Updated record: 4\",\n    \"data\": {\n        \"id_visit\": 4,\n        \"visit_type\": 1,\n        \"id_slot\": [\n            {\n                \"id_slot\": 20,\n                \"slot_date\": \"2021-09-01\",\n                \"time_from\": \"16:45\",\n                \"time_to\": \"17:00\",\n                \"mpk\": 2724\n            },\n            {\n                \"id_slot\": 21,\n                \"slot_date\": \"2021-09-01\",\n                \"time_from\": \"17:00\",\n                \"time_to\": \"17:15\",\n                \"mpk\": 2724\n            }\n        ],\n        \"id_client\": null,\n        \"firstname\": \"Jacek\",\n        \"lastname\": \"Kowalski\",\n        \"email\": \"jan.nowak@test.pl\",\n        \"phone\": \"665443221\",\n        \"date_add\": {\n            \"date\": \"2021-11-19 12:43:21.000000\",\n            \"timezone_type\": 3,\n            \"timezone\": \"Europe/Berlin\"\n        },\n        \"status\": 1\n    }\n}"},{"id":"ae98acee-441b-44a5-b30b-53447461a19b","name":"VISIT - UPDATE - error","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id_slot[]","value":"20","type":"text"},{"key":"id_slot[]","value":"21","type":"text"},{"key":"firstname","value":"Jacek","type":"text"},{"key":"lastname","value":"Kowalski","type":"text"},{"key":"phone","value":"test","type":"text"}]},"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 11:13:20 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"88"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": false,\n    \"message\": \"Invalid data.\",\n    \"errors\": [\n        \"Phone must be numeric\"\n    ]\n}"}],"_postman_id":"68a739de-ba00-4746-bfaf-09d016d02ab0"},{"name":"VISIT - DELETE","id":"9c57e9cb-23db-4701-9012-b3cf18ceaac7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}","description":"<p>W celu usunięcia wizyty w systemie Bypass, należy wykonać wywołanie typu <code>DELETE</code>. Jako parametr <code>VISIT_ID</code> należy przekazać ID wizyty, która zostanie usunięta. </p>\n<p>Po usunięciu, slot zostanie odblokowany wraz z możliwością ponownej jego rezerwacji.</p>\n<p>W odpowiedzi system zwraca kod zgodny ze statusem <code>HTTP</code>.</p>\n","urlObject":{"protocol":"https","path":["api","visit","{{VISIT_ID}}"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"a95e100b-0112-486f-bc52-ee7fc25b3792","name":"VISIT - DELETE - success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 22 Nov 2021 11:17:13 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":""},{"id":"4d90bee4-f2b0-4cf7-a1dd-5ce47a64db6a","name":"VISIT - DELETE - error","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://bypass.avenirmed.com/api/visit/{{VISIT_ID}}"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 11:16:44 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"60"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": false,\n    \"message\": \"Visit does not exist\"\n}"}],"_postman_id":"9c57e9cb-23db-4701-9012-b3cf18ceaac7"}],"id":"61aed46e-582e-449a-9ca4-9ede6a4296f0","_postman_id":"61aed46e-582e-449a-9ca4-9ede6a4296f0","description":""},{"name":"Harmonogram","item":[{"name":"SCHEDULE - GET","id":"17784d49-bf18-49cb-97b4-00b8f32c7c06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/schedule","description":"<p>Pobiera dostępne sloty, na bazie których dostajemy możliwość utworzyć wizytę.<br />Aby uzyskać dane, należy wykonać wywołanie typu <code>GET</code>. Możliwe jest używanie filtrów, po których użyciu zakres zwracanych danych zostanie ograniczony zgodnie z przekazanymi wartościami.</p>\n<p>System przyjmuje opcjonalne parametry:</p>\n<ol>\n<li><code>mpk</code> - mpk danego salonu</li>\n<li><code>slot_date</code> - data w formacie [\"yyyy-mm-dd\"]</li>\n<li><code>id_user</code> - numer id użytkownika</li>\n</ol>\n<p>W odpowiedzi system zwraca kod, status (boolean) oraz wiadomość w przypadku niepowodzenia lub obiekt json z danymi w przypadku powodzenia.</p>\n","urlObject":{"protocol":"https","path":["api","schedule"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"a884d02b-8276-4f18-bf38-886af21311b6","name":"SCHEDULE - GET - success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://bypass.avenirmed.com/api/schedule?mpk={{MPK}}&slot_date={{SLOT_DATE}}","protocol":"https","host":["bypass","avenirmed","com"],"path":["api","schedule"],"query":[{"key":"asd","value":"11","disabled":true},{"key":"mpk","value":"{{MPK}}"},{"key":"slot_date","value":"{{SLOT_DATE}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 11:25:47 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": true,\n    \"data\": [\n        {\n            \"id_slot\": \"1\",\n            \"id_user\": \"24\",\n            \"user_name\": \"Jan Kowalski\",\n            \"doctor\": \"0\",\n            \"blocked\": \"0\",\n            \"mpk\": \"2724\",\n            \"slot_date\": \"2021-09-01\",\n            \"time_from\": \"12:00\",\n            \"time_to\": \"12:15\",\n            \"deleted\": \"0\"\n        },\n        {\n            \"id_slot\": \"2\",\n            \"id_user\": \"25\",\n            \"user_name\": \"Piotr Nowak\",\n            \"doctor\": \"1\",\n            \"blocked\": \"0\",\n            \"mpk\": \"2724\",\n            \"slot_date\": \"2021-09-01\",\n            \"time_from\": \"12:15\",\n            \"time_to\": \"12:30\",\n            \"deleted\": \"0\"\n        },\n        {\n            \"id_slot\": \"3\",\n            \"id_user\": \"24\",\n            \"user_name\": \"Jan Kowalski\",\n            \"doctor\": \"0\",\n            \"blocked\": \"0\",\n            \"mpk\": \"2724\",\n            \"slot_date\": \"2021-09-01\",\n            \"time_from\": \"12:30\",\n            \"time_to\": \"12:45\",\n            \"deleted\": \"0\"\n        }\n    ]\n}"},{"id":"e02da41c-adbf-4145-a49a-98943e41db50","name":"SCHEDULE - GET - error","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://bypass.avenirmed.com/api/schedule?mpk={{MPK}}&slot_date={{SLOT_DATE}}","protocol":"https","host":["bypass","avenirmed","com"],"path":["api","schedule"],"query":[{"key":"mpk","value":"{{MPK}}"},{"key":"asd","value":"11","disabled":true},{"key":"slot_date","value":"{{SLOT_DATE}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 11:26:59 GMT"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19"},{"key":"X-Powered-By","value":"PHP/7.4.19"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"84"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": false,\n    \"message\": \"A parameter is not allowed in this location.\"\n}"}],"_postman_id":"17784d49-bf18-49cb-97b4-00b8f32c7c06"}],"id":"a9778a12-ea10-437e-b769-e1f6d5ddc1a0","_postman_id":"a9778a12-ea10-437e-b769-e1f6d5ddc1a0","description":""},{"name":"Translacja","item":[{"name":"VISIT - TYPE","id":"3416e53b-6647-4186-bf38-ddefcd854dbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/visit/type","description":"<p>W celu pobrania typów wizyty, należy wykonać wywołanie typu <code>GET</code>. System w odpowiedzi zwróci możliwe typy wizyty, wraz z czasem trwania oraz ilością potrzebnych wolnych slotów.</p>\n","urlObject":{"protocol":"https","path":["api","visit","type"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"994a4609-31dc-4918-9b3f-371d955834f8","name":"VISIT - TYPE - success","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/visit/type"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 08 Feb 2022 16:29:01 GMT"},{"key":"Server","value":"Apache"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"PHPSESSID=b700dd914379186b944db87c55d0df5a; path=/"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": true,\n    \"message\": \"Ok.\",\n    \"data\": {\n        \"1\": {\n            \"key\": \"exam\",\n            \"name\": \"Badanie wzroku\",\n            \"time\": 30,\n            \"slots\": 3\n        },\n        \"2\": {\n            \"key\": \"lenses\",\n            \"name\": \"Dobór soczewek\",\n            \"time\": 40,\n            \"slots\": 4\n        },\n        \"3\": {\n            \"key\": \"control\",\n            \"name\": \"Kontrola\",\n            \"time\": 20,\n            \"slots\": 2\n        },\n        \"4\": {\n            \"key\": \"eye_exam\",\n            \"name\": \"Badanie okulistyczne\",\n            \"time\": 20,\n            \"slots\": 2\n        }\n    }\n}"}],"_postman_id":"3416e53b-6647-4186-bf38-ddefcd854dbc"},{"name":"VISIT - STATUS","id":"79f0ee98-cdaa-4d20-bc77-c6c01ef49079","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/visit/status","description":"<p>W celu pobrania typów wizyty, należy wykonać wywołanie typu <code>GET</code>. System w odpowiedzi zwróci możliwe statusy wizyt, wykorzystywanych w systemie Bypass.</p>\n","urlObject":{"protocol":"https","path":["api","visit","status"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"558998b3-3d31-477a-b827-478243e62147","name":"VISIT - STATUS - success","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/visit/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 08 Feb 2022 16:29:53 GMT"},{"key":"Server","value":"Apache"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": true,\n    \"message\": \"Ok.\",\n    \"data\": {\n        \"1\": {\n            \"key\": \"planned\",\n            \"name\": \"Zaplanowana\"\n        },\n        \"2\": {\n            \"key\": \"completed\",\n            \"name\": \"Zrealizowana\"\n        },\n        \"3\": {\n            \"key\": \"cancelled_client\",\n            \"name\": \"Anulowana przez klienta\"\n        },\n        \"4\": {\n            \"key\": \"cancelled_cabinet\",\n            \"name\": \"Anulowana przez salon\"\n        }\n    }\n}"}],"_postman_id":"79f0ee98-cdaa-4d20-bc77-c6c01ef49079"}],"id":"b6e887f3-937c-494a-9ae7-8fc65eed3d8d","_postman_id":"b6e887f3-937c-494a-9ae7-8fc65eed3d8d","description":""},{"name":"Salony","item":[{"name":"STORE - ALL","id":"676d7808-9487-4991-a14c-bdcb7495c31a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/store","description":"<p>Pobiera wszystkie salony za pomocą wywołania typu <code>GET</code>.  </p>\n<p>W odpowiedzi system zwraca kod, status (boolean) oraz wiadomość. Dodatkowo w przypadku powodzenia zwraca zestaw danych (json).</p>\n","urlObject":{"protocol":"https","path":["api","store"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"956827d6-f16d-4041-b509-fbb93e8098cb","name":"STORE - ALL - success","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/store"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 08:42:42 GMT","description":"","type":"text"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19","description":"","type":"text"},{"key":"X-Powered-By","value":"PHP/7.4.19","description":"","type":"text"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"","type":"text"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"","type":"text"},{"key":"Pragma","value":"no-cache","description":"","type":"text"},{"key":"Content-Length","value":"5016","description":"","type":"text"},{"key":"Keep-Alive","value":"timeout=5, max=100","description":"","type":"text"},{"key":"Connection","value":"Keep-Alive","description":"","type":"text"},{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": true,\n    \"message\": \"Ok.\",\n    \"data\": [\n        {\n            \"mpk\": 2755,\n            \"name\": \"Wrocław Wroclavia\",\n            \"email\": \"wroclavia@gafas.pl\",\n            \"phone\": \"\",\n            \"seoTitle\": \"\",\n            \"description\": \"\",\n            \"active\": 1,\n            \"hours\": {\n                \"open\": {\n                    \"working_day\": \"09:00\",\n                    \"saturday\": \"09:00\",\n                    \"sunday\": \"09:00\"\n                },\n                \"close\": {\n                    \"working_day\": \"\",\n                    \"saturday\": \"\",\n                    \"sunday\": \"\"\n                }\n            },\n            \"images\": [],\n            \"address\": {\n                \"address\": \"\",\n                \"postocode\": \"\",\n                \"city\": \"Wrocław\"\n            },\n            \"services\": {\n                \"store_pickup\": \"Odbiór osobisty\"\n            },\n            \"specialists\": [],\n            \"activePersonel\": [\n                \"Krzysztof\",\n                \"Amanda\"\n            ]\n        },\n        {\n            \"mpk\": 2755,\n            \"name\": \"Wrocław Wroclavia\",\n            \"email\": \"wroclavia@gafas.pl\",\n            \"phone\": \"\",\n            \"seoTitle\": \"\",\n            \"description\": \"\",\n            \"active\": 1,\n            \"hours\": {\n                \"open\": {\n                    \"working_day\": \"09:00\",\n                    \"saturday\": \"09:00\",\n                    \"sunday\": \"09:00\"\n                },\n                \"close\": {\n                    \"working_day\": \"\",\n                    \"saturday\": \"\",\n                    \"sunday\": \"\"\n                }\n            },\n            \"images\": [],\n            \"address\": {\n                \"address\": \"\",\n                \"postocode\": \"\",\n                \"city\": \"Wrocław\"\n            },\n            \"services\": {\n                \"store_pickup\": \"Odbiór osobisty\"\n            },\n            \"specialists\": [],\n            \"activePersonel\": [\n                \"Krzysztof\",\n                \"Amanda\"\n            ]\n        },\n        {\n            \"mpk\": 2755,\n            \"name\": \"Wrocław Wroclavia\",\n            \"email\": \"wroclavia@gafas.pl\",\n            \"phone\": \"\",\n            \"seoTitle\": \"\",\n            \"description\": \"\",\n            \"active\": 1,\n            \"hours\": {\n                \"open\": {\n                    \"working_day\": \"09:00\",\n                    \"saturday\": \"09:00\",\n                    \"sunday\": \"09:00\"\n                },\n                \"close\": {\n                    \"working_day\": \"\",\n                    \"saturday\": \"\",\n                    \"sunday\": \"\"\n                }\n            },\n            \"images\": [],\n            \"address\": {\n                \"address\": \"\",\n                \"postocode\": \"\",\n                \"city\": \"Wrocław\"\n            },\n            \"services\": {\n                \"store_pickup\": \"Odbiór osobisty\"\n            },\n            \"specialists\": [],\n            \"activePersonel\": [\n                \"Krzysztof\",\n                \"Amanda\"\n            ]\n        },\n        {\n            \"mpk\": 2755,\n            \"name\": \"Wrocław Wroclavia\",\n            \"email\": \"wroclavia@gafas.pl\",\n            \"phone\": \"\",\n            \"seoTitle\": \"\",\n            \"description\": \"\",\n            \"active\": 1,\n            \"hours\": {\n                \"open\": {\n                    \"working_day\": \"09:00\",\n                    \"saturday\": \"09:00\",\n                    \"sunday\": \"09:00\"\n                },\n                \"close\": {\n                    \"working_day\": \"\",\n                    \"saturday\": \"\",\n                    \"sunday\": \"\"\n                }\n            },\n            \"images\": [],\n            \"address\": {\n                \"address\": \"\",\n                \"postocode\": \"\",\n                \"city\": \"Wrocław\"\n            },\n            \"services\": {\n                \"store_pickup\": \"Odbiór osobisty\"\n            },\n            \"specialists\": [],\n            \"activePersonel\": [\n                \"Krzysztof\",\n                \"Amanda\"\n            ]\n        },\n        {\n            \"mpk\": 2755,\n            \"name\": \"Wrocław Wroclavia\",\n            \"email\": \"wroclavia@gafas.pl\",\n            \"phone\": \"\",\n            \"seoTitle\": \"\",\n            \"description\": \"\",\n            \"active\": 1,\n            \"hours\": {\n                \"open\": {\n                    \"working_day\": \"09:00\",\n                    \"saturday\": \"09:00\",\n                    \"sunday\": \"09:00\"\n                },\n                \"close\": {\n                    \"working_day\": \"\",\n                    \"saturday\": \"\",\n                    \"sunday\": \"\"\n                }\n            },\n            \"images\": [],\n            \"address\": {\n                \"address\": \"\",\n                \"postocode\": \"\",\n                \"city\": \"Wrocław\"\n            },\n            \"services\": {\n                \"store_pickup\": \"Odbiór osobisty\"\n            },\n            \"specialists\": [],\n            \"activePersonel\": [\n                \"Krzysztof\",\n                \"Amanda\"\n            ]\n        }\n    ]\n}"},{"id":"d577b160-403c-459b-b624-4f89a7e6bb1e","name":"STORE - ALL - error","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/store"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 22 Nov 2021 10:20:26 GMT","description":"","type":"text"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19","description":"","type":"text"},{"key":"X-Powered-By","value":"PHP/7.4.19","description":"","type":"text"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"","type":"text"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"","type":"text"},{"key":"Pragma","value":"no-cache","description":"","type":"text"},{"key":"Content-Length","value":"84","description":"","type":"text"},{"key":"Connection","value":"close","description":"","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": false,\n    \"message\": \"Stores not found.\"\n}"}],"_postman_id":"676d7808-9487-4991-a14c-bdcb7495c31a"},{"name":"STORE - GET","id":"9e1e7048-a6a3-4745-9666-63f9aae5b433","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/store/{{MPK}}","description":"<p>W celu pobrania informacji dotyczących salonu należy wykonać wywołanie typu <code>GET</code>, w którym jako parametr <code>MPK</code> jest przekazywany ID oddziału w postaci numer \"MPK\".</p>\n<p>W odpowiedzi system zwraca obiekt json zawierający dane salonu.</p>\n","urlObject":{"protocol":"https","path":["api","store","{{MPK}}"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"56228d30-fc51-45ee-97a0-eaa5f5ae74d5","name":"STORE - GET - success","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/store/{{MPK}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"Keep-Alive"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"488"},{"key":"Date","value":"Mon, 23 May 2022 15:09:42 GMT"},{"key":"Server","value":"LiteSpeed"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": true,\n    \"message\": \"Ok.\",\n    \"data\": {\n        \"mpk\": 2755,\n        \"name\": \"Wrocław Wroclavia\",\n        \"email\": \"wroclavia@gafas.pl\",\n        \"phone\": \"\",\n        \"seoTitle\": \"\",\n        \"description\": \"\",\n        \"active\": 1,\n        \"hours\": {\n            \"open\": {\n                \"working_day\": \"09:00\",\n                \"saturday\": \"09:00\",\n                \"sunday\": \"09:00\"\n            },\n            \"close\": {\n                \"working_day\": \"\",\n                \"saturday\": \"\",\n                \"sunday\": \"\"\n            }\n        },\n        \"images\": [],\n        \"address\": {\n            \"address\": \"\",\n            \"postocode\": \"\",\n            \"city\": \"Wrocław\"\n        },\n        \"services\": {\n            \"store_pickup\": \"Odbiór osobisty\"\n        },\n        \"specialists\": [],\n        \"activePersonel\": [\n            \"Krzysztof\",\n            \"Amanda\"\n        ]\n    }\n}"},{"id":"b4908459-909e-480c-92ce-ee2bf132eeae","name":"STORE - GET - error","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/store/{{MPK}}"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"Keep-Alive"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"61"},{"key":"Date","value":"Mon, 23 May 2022 15:10:14 GMT"},{"key":"Server","value":"LiteSpeed"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Alt-Svc","value":"quic=\":443\"; ma=2592000; v=\"39,43,46\", h3-Q039=\":443\"; ma=2592000, h3-Q043=\":443\"; ma=2592000, h3-Q046=\":443\"; ma=2592000, h3-23=\":443\"; ma=2592000, h3-24=\":443\"; ma=2592000"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": false,\n    \"message\": \"Store does not exist.\"\n}"}],"_postman_id":"9e1e7048-a6a3-4745-9666-63f9aae5b433"}],"id":"0ef5cd73-c919-48c3-a7fc-684f81bd7aed","_postman_id":"0ef5cd73-c919-48c3-a7fc-684f81bd7aed","description":""},{"name":"Produkty","item":[{"name":"PRODUCT - ALL","id":"4a9609a8-9502-4f51-8e00-90677237f22a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/product/{{PAGE}}","description":"<p>Pobiera wszystkie produkty za pomocą wywołania typu <code>GET</code>.</p>\n<p>System przyjmuje opcjonalne parametry:</p>\n<ol>\n<li><code>page</code> - kolejna strona listingu</li>\n</ol>\n<p>W odpowiedzi system zwraca kod, status (boolean) oraz wiadomość. Dodatkowo w przypadku powodzenia zwraca pierwszych 100 produktów lub gdy został podany parametr <code>page</code> - kolejne 100 produktów zaczynając od 100 * <code>page</code> produktów</p>\n","urlObject":{"protocol":"https","path":["api","product","{{PAGE}}"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"0af2e19f-41d5-4a5b-a4fb-2f3fa9135d8b","name":"PRODUCT - ALL - success","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/product/{{PAGE}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"message\": \"Ok.\",\r\n    \"pagination\": {\r\n        \"page\": \"1\",\r\n        \"limit\": 100,\r\n        \"maxPage\": 14\r\n    },\r\n    \"data\": [\r\n        {\r\n            \"attributes\": [\r\n                {\r\n                    \"attributeId\": 151,\r\n                    \"attributeValues\": \"2330\"\r\n                },\r\n                {\r\n                    \"attributeId\": 15232,\r\n                    \"attributeValues\": \"152066\"\r\n                }\r\n            ],\r\n            \"id\": 115026,\r\n            \"name\": \"Armani Exchange-K 1014\",\r\n            \"taxAmount\": 23,\r\n            \"currency\": \"PLN\",\r\n            \"barcode\": null,\r\n            \"categoryId\": 11,\r\n            \"isDynamic\": 0,\r\n            \"variants\": [\r\n                {\r\n                    \"id\": \"557084\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672283365\",\r\n                    \"stockId\": null,\r\n                    \"stock\": null,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557084\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672283365\",\r\n                    \"stockId\": null,\r\n                    \"stock\": null,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"attributes\": [\r\n                {\r\n                    \"attributeId\": 151,\r\n                    \"attributeValues\": \"2329\"\r\n                },\r\n                {\r\n                    \"attributeId\": 15232,\r\n                    \"attributeValues\": \"157502,157494\"\r\n                }\r\n            ],\r\n            \"id\": 115027,\r\n            \"name\": \"Armani Exchange-K 1015\",\r\n            \"taxAmount\": 23,\r\n            \"currency\": \"PLN\",\r\n            \"barcode\": null,\r\n            \"categoryId\": 11,\r\n            \"isDynamic\": 0,\r\n            \"variants\": [\r\n                {\r\n                    \"id\": \"557083\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672800005\",\r\n                    \"stockId\": null,\r\n                    \"stock\": null,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557082\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672364668\",\r\n                    \"stockId\": null,\r\n                    \"stock\": null,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557082\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672364668\",\r\n                    \"stockId\": null,\r\n                    \"stock\": null,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557083\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672800005\",\r\n                    \"stockId\": null,\r\n                    \"stock\": null,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"attributes\": [\r\n                {\r\n                    \"attributeId\": 151,\r\n                    \"attributeValues\": \"2334\"\r\n                },\r\n                {\r\n                    \"attributeId\": 15232,\r\n                    \"attributeValues\": \"157507,152066,157502\"\r\n                }\r\n            ],\r\n            \"id\": 115036,\r\n            \"name\": \"Armani Exchange-K 1029\",\r\n            \"taxAmount\": 23,\r\n            \"currency\": \"PLN\",\r\n            \"barcode\": null,\r\n            \"categoryId\": 11,\r\n            \"isDynamic\": 0,\r\n            \"variants\": [\r\n                {\r\n                    \"id\": \"557067\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672866292\",\r\n                    \"stockId\": 1123719,\r\n                    \"stock\": 2,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557068\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672866322\",\r\n                    \"stockId\": null,\r\n                    \"stock\": null,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557069\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672866353\",\r\n                    \"stockId\": 1645213,\r\n                    \"stock\": 10,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557067\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672866292\",\r\n                    \"stockId\": 1123719,\r\n                    \"stock\": 2,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557068\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672866322\",\r\n                    \"stockId\": null,\r\n                    \"stock\": null,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                },\r\n                {\r\n                    \"id\": \"557069\",\r\n                    \"mainAttributeId\": null,\r\n                    \"taxAmount\": 23,\r\n                    \"currency\": \"PLN\",\r\n                    \"barcode\": \"8053672866353\",\r\n                    \"stockId\": 1645213,\r\n                    \"stock\": 6,\r\n                    \"categoryId\": 11,\r\n                    \"priceGross\": 599,\r\n                    \"priceNet\": 486.9918699186992\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},{"id":"260b5430-388e-4053-a792-3a319963971c","name":"PRODUCT - ALL - error","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/product/{{PAGE}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 24 Nov 2021 08:42:42 GMT","description":"","type":"text"},{"key":"Server","value":"Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19","description":"","type":"text"},{"key":"X-Powered-By","value":"PHP/7.4.19","description":"","type":"text"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","description":"","type":"text"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","description":"","type":"text"},{"key":"Pragma","value":"no-cache","description":"","type":"text"},{"key":"Content-Length","value":"84","description":"","type":"text"},{"key":"Connection","value":"close","description":"","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"status\": false,\n    \"message\": \"Products not found.\"\n}"}],"_postman_id":"4a9609a8-9502-4f51-8e00-90677237f22a"}],"id":"cd5d0116-4055-4282-9706-6033bf218422","_postman_id":"cd5d0116-4055-4282-9706-6033bf218422","description":""},{"name":"Użytkownicy","item":[{"name":"USER - ALL","id":"cf236389-0d6c-4c6e-9185-fedc6e5236db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/user","description":"<p>Pobiera wszystkich użytkowników za pomocą wywołania typu <code>GET</code>.</p>\n<p>W odpowiedzi system zwraca kod, status (boolean) oraz wiadomość. Dodatkowo w przypadku powodzenia zwraca zestaw danych (json).</p>\n","urlObject":{"protocol":"https","path":["api","user"],"host":["bypass","avenirmed","com"],"query":[],"variable":[]}},"response":[{"id":"08dc654a-85da-4778-91d8-de3da369244d","name":"USER - ALL - success","originalRequest":{"method":"GET","header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"message\": \"Ok.\",\r\n    \"data\": [\r\n        {\r\n            \"userId\": 1,\r\n            \"name\": \"Jan Nowak\",\r\n            \"mpk\": 2724,\r\n            \"email\": \"jan.nowak@test.pl\"\r\n        },\r\n        {\r\n            \"userId\": 2,\r\n            \"name\": \"Jan Nowak\",\r\n            \"mpk\": 2724,\r\n            \"email\": \"jan.nowak@test.pl\"\r\n        },\r\n        {\r\n            \"userId\": 3,\r\n            \"name\": \"Jan Nowak\",\r\n            \"mpk\": 2724,\r\n            \"email\": \"jan.nowak@test.pl\"\r\n        },\r\n        {\r\n            \"userId\": 4,\r\n            \"name\": \"Jan Nowak\",\r\n            \"mpk\": 2724,\r\n            \"email\": \"jan.nowak@test.pl\"\r\n        },\r\n        {\r\n            \"userId\": 5,\r\n            \"name\": \"Jan Nowak\",\r\n            \"mpk\": 2724,\r\n            \"email\": \"jan.nowak@test.pl\"\r\n        }\r\n    ]\r\n}"},{"id":"04a987d2-510e-43da-8e55-0d0fde600964","name":"USER - All - error","originalRequest":{"method":"GET","header":[],"url":"https://bypass.avenirmed.com/api/user"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"code\": 400,\r\n    \"status\": false,\r\n    \"message\": \"Users not found.\"\r\n}"}],"_postman_id":"cf236389-0d6c-4c6e-9185-fedc6e5236db"}],"id":"2a716a6a-9f4d-450a-918e-62d672157528","_postman_id":"2a716a6a-9f4d-450a-918e-62d672157528","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"50cef8c7-1f38-4404-ad65-a2ae7e147acf"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"eb4cfbdb-3779-4e5f-ad13-de490de0929d"}}]}