{"openapi":"3.0.3","info":{"title":"ItDoc \u0425\u0422\u0418 \u00b7 \u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 API","version":"1.0.0","description":"API \u0434\u043b\u044f \u0441\u043e\u0444\u0442\u0430 \u043f\u0440\u0435\u0434\u0440\u0435\u0439\u0441\u043e\u0432\u044b\u0445 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u0432.\n\n\u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u2014 API-\u043a\u043b\u044e\u0447 \u0432\u0435\u043d\u0434\u043e\u0440\u0430 (Bearer). \u0414\u043b\u044f iframe \u043a\u043b\u044e\u0447 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c query-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c `token`.\n\n\u0414\u0435\u043c\u043e-\u043a\u043b\u044e\u0447 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b: `qzr_sandbox_demo_2026`."},"servers":[{"url":"\/api","description":"\u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u0445\u043e\u0441\u0442"}],"tags":[{"name":"\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b","description":"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435"}],"components":{"securitySchemes":{"vendorKey":{"type":"http","scheme":"bearer","description":"API-\u043a\u043b\u044e\u0447 \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u0438\u0437 terminal_vendor_api_keys"}},"schemas":{"Payload":{"type":"object","description":"\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0432\u0435\u043d\u0434\u043e\u0440\u0430 (\u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u043a\u043b\u044e\u0447\u0435\u0439).","properties":{"card_uid":{"type":"string","example":"CARD-00001"},"tab_no":{"type":"string","description":"\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 (\u041d\u043e\u0431\u0435\u043b\u0435\u0441)"},"rfid":{"type":"string","description":"RFID-\u043c\u0435\u0442\u043a\u0430 (\u0414\u0438\u043c\u0435\u043a\u0430)"},"personnel_number":{"type":"string","example":"\u0422\u041d-1135"},"snils":{"type":"string","example":"123-456-789 00"}}},"Driver":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid","nullable":true},"full_name":{"type":"string","example":"\u0418\u0432\u0430\u043d\u043e\u0432 \u0418\u0432\u0430\u043d \u041f\u0435\u0442\u0440\u043e\u0432\u0438\u0447"},"snils":{"type":"string","nullable":true},"personnel_number":{"type":"string","nullable":true}}},"Appointment":{"type":"object","nullable":true,"properties":{"number":{"type":"string","example":"A-6RXXN2"},"slot_at":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","example":"scheduled"},"clinic":{"type":"object","nullable":true,"properties":{"name":{"type":"string"},"address":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true}}}}},"PretripVerdict":{"type":"object","properties":{"verdict":{"type":"string","enum":["allow","must_pass_hti","blocked","unknown_driver"]},"reason":{"type":"string"},"external_id":{"type":"string","nullable":true},"driver":{"$ref":"#\/components\/schemas\/Driver"},"hti_status":{"type":"string","nullable":true},"hti_expires_at":{"type":"string","format":"date","nullable":true},"has_active_referral":{"type":"boolean"},"terminal_can_block":{"type":"boolean"}}},"Notice":{"type":"object","properties":{"state":{"type":"string","enum":["ok","upcoming","blocked","unknown"]},"block":{"type":"boolean"},"external_id":{"type":"string","nullable":true},"driver":{"$ref":"#\/components\/schemas\/Driver"},"hti":{"type":"object","properties":{"status":{"type":"string","nullable":true},"expires_at":{"type":"string","format":"date","nullable":true},"has_active_referral":{"type":"boolean"}}},"notice":{"type":"object","properties":{"severity":{"type":"string","enum":["ok","warning","danger","neutral"]},"title":{"type":"string"},"message":{"type":"string"}}},"appointment":{"$ref":"#\/components\/schemas\/Appointment"},"shown_count":{"type":"integer","description":"\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0443\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u044d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044e"}}},"ImpressionResult":{"type":"object","properties":{"ok":{"type":"boolean"},"impression_id":{"type":"string","format":"uuid"},"state":{"type":"string"},"shown_count":{"type":"integer"}}}}},"security":[{"vendorKey":[]}],"paths":{"\/terminal\/pretrip":{"post":{"tags":["\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b"],"summary":"\u041f\u0440\u0435\u0434-\u0440\u0435\u0439\u0441\u043e\u0432\u044b\u0439 \u0432\u0435\u0440\u0434\u0438\u043a\u0442 \u0434\u043e\u043f\u0443\u0441\u043a\u0430","description":"\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u043c\u0430\u0442\u0447\u0438\u0442 \u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u043e\u0442\u0434\u0430\u0451\u0442 \u0432\u0435\u0440\u0434\u0438\u043a\u0442 \u043f\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0425\u0422\u0418.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["payload"],"properties":{"serial_no":{"type":"string","nullable":true,"example":"QZR-2026-0001"},"payload":{"$ref":"#\/components\/schemas\/Payload"}}}}}},"responses":{"200":{"description":"\u0412\u0435\u0440\u0434\u0438\u043a\u0442","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PretripVerdict"}}}},"401":{"description":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432\u0435\u043d\u0434\u043e\u0440\u0430"}}}},"\/terminal\/notice":{"post":{"tags":["\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b"],"summary":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443","description":"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f + \u0434\u0435\u0442\u0430\u043b\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u043e\u0441\u043c\u043e\u0442\u0440\u0430 (\u0433\u0434\u0435\/\u043a\u043e\u0433\u0434\u0430). \u041f\u043e\u043a\u0430\u0437 \u043d\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["payload"],"properties":{"serial_no":{"type":"string","nullable":true,"example":"QZR-2026-0001"},"payload":{"$ref":"#\/components\/schemas\/Payload"}}}}}},"responses":{"200":{"description":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Notice"}}}},"401":{"description":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432\u0435\u043d\u0434\u043e\u0440\u0430"}}}},"\/terminal\/notice\/impression":{"post":{"tags":["\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b"],"summary":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f (\u0430\u0443\u0434\u0438\u0442)","description":"\u0412\u044b\u0437\u044b\u0432\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043e. channel=examination \u2014 \u043f\u043e\u043a\u0430\u0437 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0441\u043c\u043e\u0442\u0440\u0430.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["payload"],"properties":{"serial_no":{"type":"string","nullable":true},"channel":{"type":"string","enum":["widget","api","examination"]},"payload":{"$ref":"#\/components\/schemas\/Payload"}}}}}},"responses":{"200":{"description":"\u0417\u0430\u043f\u0438\u0441\u0430\u043d\u043e","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ImpressionResult"}}}}}}},"\/terminal\/widget":{"get":{"tags":["\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b"],"summary":"\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0439 iframe","description":"\u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d \u0434\u043b\u044f \u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f (ok\/upcoming\/blocked). \u0414\u043b\u044f \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b \u2014 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 demo.","parameters":[{"name":"identifier","in":"query","schema":{"type":"string"},"description":"\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f (\u043a\u0430\u0440\u0442\u0430\/\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439)"},{"name":"serial_no","in":"query","schema":{"type":"string"}},{"name":"token","in":"query","schema":{"type":"string"},"description":"\u043a\u043b\u044e\u0447 \u0432\u0435\u043d\u0434\u043e\u0440\u0430 (\u0434\u043b\u044f iframe)"},{"name":"context","in":"query","schema":{"type":"string","enum":["widget","examination"]}},{"name":"preview","in":"query","schema":{"type":"boolean"},"description":"\u043d\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437"},{"name":"demo","in":"query","schema":{"type":"string","enum":["ok","upcoming","blocked","unknown"]},"description":"\u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b"}],"responses":{"200":{"description":"HTML-\u044d\u043a\u0440\u0430\u043d","content":{"text\/html":{"schema":{"type":"string"}}}},"401":{"description":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432\u0435\u043d\u0434\u043e\u0440\u0430"}}}}}}