{"openapi":"3.1.0","info":{"title":"Гринго · Партнерский API страхования","version":"0.4.0","description":"Предварительный расчет комплекта ОГПО и ДГПО по Excel, персональный расчет ДГПО и переход на оформление в Евразию. Дополнительные методы обслуживают операции с SMS и платежными ссылками."},"servers":[{"url":"https://gringo.con02.codetra.pro"}],"security":[{"ApiKey":[]}],"paths":{"/v1/renewal-handoffs":{"post":{"operationId":"createRenewalHandoff","summary":"Учитываемая ссылка на переоформление","description":"Номер заказа уникален у партнера. Повтор возвращает ту же действующую ссылку. Открывайте url из ответа для учета перехода.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"referralId":{"type":"string","format":"uuid"},"agentId":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,100}$"},"orderId":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,100}$"}},"required":["referralId","agentId","orderId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Ссылка действует один час","content":{"application/json":{"schema":{"type":"object","properties":{"purpose":{"const":"renewal"},"referralId":{"type":"string"},"agentId":{"type":"string"},"orderId":{"type":"string"},"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}},"required":["purpose","referralId","agentId","orderId","url","expiresAt"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/handoffs":{"post":{"operationId":"createHandoff","summary":"Ссылка на оформление по расчету. Повтор тех же параметров возвращает ту же ссылку.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"estimateId":{"type":"string","format":"uuid"},"agentId":{"type":"string"},"orderId":{"type":"string"}},"required":["estimateId","agentId","orderId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Ссылка действует до expiresAt","content":{"application/json":{"schema":{"type":"object","properties":{"estimateId":{"type":"string"},"agentId":{"type":"string"},"orderId":{"type":"string"},"commissionLabel":{"type":["string","null"]},"commissionForwarded":{"const":false},"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}},"required":["estimateId","agentId","orderId","commissionLabel","commissionForwarded","url","expiresAt"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/estimates/options":{"get":{"operationId":"estimateOptions","summary":"Регионы и тарифные параметры комплекта","responses":{"200":{"description":"Параметры и версия тарифа","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/estimates":{"post":{"operationId":"estimateBundle","summary":"Анонимный расчет комплекта для одного водителя без льготы","description":"Сначала получите свежие options ДГПО для referralId. Начало страхования завтра по времени Казахстана. Премии и итог в тенге, десятичными строками.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["product","tariffYear","regionCode","settlementType","vehicleAgeGroup","driverAgeGroup","experienceGroup","bonusMalusClass","firstContract","driverCount","hasPrivilege","dgpo","referralId"],"properties":{"product":{"type":"string","const":"ogpo_dgpo_vts"},"tariffYear":{"type":"integer","const":2026},"regionCode":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20"]},"settlementType":{"type":"string","enum":["regional_city","other"]},"vehicleAgeGroup":{"type":"string","enum":["up_to_7","over_7"]},"driverAgeGroup":{"type":"string","enum":["under_25","25_and_over"]},"experienceGroup":{"type":"string","enum":["up_to_2","over_2"]},"bonusMalusClass":{"type":"string","enum":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","M2","M1","M"]},"firstContract":{"type":"boolean"},"driverCount":{"type":"integer","const":1},"hasPrivilege":{"type":"boolean","const":false},"referralId":{"type":"string","format":"uuid"},"dgpo":{"type":"object","additionalProperties":false,"required":["insuranceSum","agentCommissionId","optionsVersion"],"properties":{"insuranceSum":{"type":"integer","minimum":1},"agentCommissionId":{"type":"integer","minimum":1},"optionsVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}}}}}},"responses":{"200":{"description":"ОГПО по Excel, ДГПО с сайта, итог для показа","content":{"application/json":{"schema":{"type":"object","required":["ogpo","dgpo","totalAmount"],"properties":{"ogpo":{"type":"object"},"dgpo":{"type":"object"},"totalAmount":{"type":"string"}}}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations/{id}/driver-details":{"post":{"operationId":"supplyDriverIssueDate","summary":"Передать дату прав, только если ее дополнительно потребовал страховщик","description":"Для DRIVER_LICENSE_DATE_REQUIRED. Индекс берется из requiredInputs. Уже подтвержденная SMS не повторяется.","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"driverIndex":{"type":"integer","minimum":0,"maximum":9},"licenseIssuedAt":{"type":"string","format":"date"}},"required":["driverIndex","licenseIssuedAt"],"additionalProperties":false}}}},"responses":{"200":{"description":"Продолженный расчет или следующее действие","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true}},"required":["operation"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations":{"get":{"operationId":"listOperations","summary":"Последние 20 операций партнера или поиск по externalReference","parameters":[{"in":"query","name":"externalReference","schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,100}$"}}],"responses":{"200":{"description":"Список без персональных данных","content":{"application/json":{"schema":{"type":"object","properties":{"operations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true}}},"required":["operations"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/quotes":{"post":{"operationId":"createQuote","summary":"Начать расчет по новым данным без HAR","description":"Сначала получите options для referralId. Сохраняет неизменяемый снимок ссылки и данных. Возвращает 202 и operation.id; далее опрашивайте GET операции. Idempotency-Key и externalReference изолированы по партнеру. Повтор с теми же данными не вызывает страховщика заново. Результат до SMS может содержать только премию ДГПО.","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"referralId":{"type":"string","format":"uuid","description":"Выбранная ссылка из /v1/referrals; необязательна только для локального черновика. При live-оформлении будет обязательна."},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,100}$"},"startDate":{"type":"string","format":"date","description":"Календарный день Казахстана, не раньше завтрашнего. Не переводить в UTC timestamp."},"durationMonths":{"type":"integer","minimum":1,"maximum":12},"insurer":{"type":"object","properties":{"iin":{"type":"string","pattern":"^\\d{12}$"},"phone":{"type":"string","pattern":"^\\+7\\d{10}$"},"email":{"type":"string","format":"email","maxLength":254},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["iin","phone","email","address"],"additionalProperties":false},"drivers":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","properties":{"iin":{"type":"string","pattern":"^\\d{12}$"},"phone":{"type":"string","pattern":"^\\+7\\d{10}$","description":"Обязателен для водителя, отличающегося от страхователя"},"licenseNumber":{"type":"string","minLength":1,"maxLength":40},"licenseIssuedAt":{"anyOf":[{"type":"string","format":"date"},{"type":"string","const":""},{"type":"null"}],"description":"Необязательно. Если даты нет в ответе и она потребуется страховщику, вернется DRIVER_LICENSE_DATE_REQUIRED."},"privilege":{"type":"boolean","description":"Запросить льготу; подтверждается методом страховщика"}},"required":["iin","licenseNumber"],"additionalProperties":false}},"vehicle":{"type":"object","properties":{"registrationNumber":{"type":"string","minLength":1,"maxLength":30},"registrationCertificate":{"type":"string","minLength":1,"maxLength":30},"vin":{"type":"string","pattern":"^[A-HJ-NPR-Za-hj-npr-z0-9]{17}$"}},"required":["registrationNumber","registrationCertificate"],"additionalProperties":false},"dgpo":{"type":"object","properties":{"insuranceSum":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Сумма в KZT. Варианты из insuranceSums справочника; допустимость сочетания проверит страховщик."},"agentCommissionId":{"type":"integer","minimum":1,"description":"Идентификатор варианта из agentCommissions, не процент."},"optionsVersion":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Версия справочника. Обязательна вместе с agentCommissionId и referralId при выборе комиссии."}},"required":["insuranceSum","agentCommissionId","optionsVersion"],"additionalProperties":false,"dependentRequired":{"agentCommissionId":["optionsVersion"],"optionsVersion":["agentCommissionId"]}},"consent":{"type":"object","properties":{"personalData":{"const":true,"type":"boolean"},"acceptedAt":{"type":"string","format":"date-time"},"documentVersion":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,40}$"}},"required":["personalData","acceptedAt","documentVersion"],"additionalProperties":false,"description":"Партнер подтверждает согласие всех субъектов на обработку и запрос их данных у страховщика/госисточников. GetClient может инициировать ожидание внешнего согласия."}},"required":["product","externalReference","startDate","durationMonths","insurer","drivers","vehicle","consent","referralId"],"additionalProperties":false,"allOf":[{"if":{"properties":{"product":{"const":"ogpo_dgpo_vts"}}},"then":{"required":["dgpo"]},"else":{"not":{"required":["dgpo"]}}},{"if":{"required":["dgpo"],"properties":{"dgpo":{"anyOf":[{"required":["agentCommissionId"]},{"required":["optionsVersion"]}]}}},"then":{"required":["referralId"]}}]}}}},"responses":{"200":{"description":"Повтор ранее принятой операции","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true},"replay":{"type":"boolean","const":true}},"required":["operation","replay"],"additionalProperties":false}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true},"replay":{"type":"boolean","const":false}},"required":["operation","replay"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations/{id}":{"get":{"operationId":"getOperation","summary":"Состояние операции и допустимые следующие действия","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Не содержит ИИН, телефона, прав, адреса, кода или proof","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true}},"required":["operation"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations/{id}/verification/request":{"post":{"operationId":"requestCustomerSms","summary":"Запросить SMS по действию клиента","description":"Пустой JSON. Одинаковый ключ возвращает состояние без повторной SMS. Для явного повторного запроса нужен новый ключ. Интервал 60 секунд, до 3 отправок на операцию и до 3 на телефон за 10 минут.","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"SMS запрошена либо возвращено состояние повтора","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true}},"required":["operation"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations/{id}/verification/confirm":{"post":{"operationId":"confirmCustomerSms","summary":"Проверить код и получить полный расчет","description":"Код не передавать в URL или логи. После успешной проверки сервис проверяет полис и рассчитывает ОГПО. Повтор после подтверждения возвращает состояние без новой проверки. До 5 попыток; локальное ожидание 10 минут.","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{4,8}$"}},"required":["code"],"additionalProperties":false}}}},"responses":{"200":{"description":"quoted, action_required или иной сохраненный результат","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true}},"required":["operation"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations/{id}/resume":{"post":{"operationId":"resumeCustomerConsent","summary":"Продолжить после внешнего согласия клиента","description":"Только для CUSTOMER_CONSENT_REQUIRED. Не обходит согласие и не запрашивает SMS автоматически. Интервал проверки 30 секунд.","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"202":{"description":"Проверка поставлена в очередь","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true}},"required":["operation"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations/{id}/continue-existing":{"post":{"operationId":"confirmEarlyRenewal","summary":"Выбор клиента: рассчитать продление заранее","description":"Только после EXISTING_POLICY_REVIEW. Не меняет действующий полис и не выполняет оплату.","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmEarlyRenewal":{"type":"boolean","const":true}},"required":["confirmEarlyRenewal"],"additionalProperties":false}}}},"responses":{"200":{"description":"Расчет продления либо сохраненное состояние","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true}},"required":["operation"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations/{id}/payment-documents":{"get":{"operationId":"getPaymentDocuments","summary":"Загрузить актуальные КИД до создания ссылки","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Покажите клиенту документы и сохраните подтверждение конкретной версии","content":{"application/json":{"schema":{"type":"object","properties":{"documents":{"type":"array","items":{"type":"object","properties":{"productCode":{"type":"string"},"versionId":{"type":"integer"},"version":{"type":"string"},"title":{"type":"string"},"url":{"type":"string","format":"uri"}}}},"version":{"type":"string"}}}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/operations/{id}/payment-links":{"post":{"operationId":"createPaymentLink","summary":"Сохранить неоплаченную заявку и получить ссылку Kaspi","description":"Только для существующей рассчитанной операции после SMS. На одну операцию создается одна ссылка. Повтор с теми же параметрами возвращает ее даже с другим ключом. После неопределенного ответа — сверка, повторная запись не запускается. Срок нашей ссылки — один час, срок у страховщика может отличаться.","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentType":{"type":"string","const":"Kaspi"},"documentsVersion":{"type":"string","description":"Версия комплекта из payment-documents"},"clientAcknowledged":{"type":"boolean","const":true,"description":"Подтверждение партнера: клиент ознакомился с обоими КИД. Не устанавливать автоматически."},"contactEmail":{"type":"string","format":"email"},"contactAddress":{"type":"string","minLength":1,"maxLength":500,"description":"Адрес клиента. Обязателен, если в результате поиска отсутствует; не подставлять фиктивный."}},"required":["paymentType","documentsVersion","clientAcknowledged","contactEmail"],"additionalProperties":false}}}},"responses":{"200":{"description":"Сохраненная ссылка","content":{"application/json":{"schema":{"type":"object","properties":{"paymentLink":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},"replay":{"type":"boolean","const":true}},"required":["paymentLink","replay"],"additionalProperties":false}}}},"201":{"description":"Ссылка создана","content":{"application/json":{"schema":{"type":"object","properties":{"paymentLink":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},"replay":{"type":"boolean","const":false}},"required":["paymentLink","replay"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/pay/{token}":{"get":{"security":[],"operationId":"openPaymentLink","summary":"Учесть первый технический переход и перенаправить в Евразию","parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Prefetch/prerender: без учета и без перенаправления"},"302":{"description":"Перенаправление; повторный GET увеличивает openCount, но не основной счетчик","headers":{"Location":{"schema":{"type":"string","format":"uri"}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"head":{"security":[],"operationId":"inspectPaymentLink","summary":"Проверить ссылку без учета перехода","parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"302":{"description":"Та же цель; переход не учитывается"},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{code}/options":{"get":{"operationId":"getProductOptions","summary":"Справочники для выбранной реферальной ссылки","parameters":[{"in":"path","name":"code","required":true,"schema":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]}},{"in":"query","name":"referralId","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Данные сайта с источником, версией и сроком свежести; для ОГПО списки ДГПО пусты","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"type":"string"},"options":{"type":"object","properties":{"currency":{"type":"string","const":"KZT"},"insuranceSums":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"integer"}},"required":["id","value"],"additionalProperties":false}},"agentCommissions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false}},"source":{"type":"string","enum":["live","har"]},"observedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"version":{"type":"string"},"referralId":{"type":"string"},"referralVersion":{"type":"integer"},"fresh":{"type":"boolean"},"quoteAvailable":{"type":"boolean"},"quoteUnavailableReason":{"type":["string","null"]},"eligibility":{"type":"string"},"description":{"type":"string"},"partnerSettings":{"type":["object","null"],"properties":{"isLegalEntity":{"type":"boolean"},"signatureRequired":{"type":"boolean"}}},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"optionsSource":{"type":"string"}},"required":["name","type","optionsSource"],"additionalProperties":false}},"otherParameters":{"type":"object","properties":{"status":{"type":"string"},"description":{"type":"string"}},"required":["status","description"],"additionalProperties":false}},"required":["currency","insuranceSums","agentCommissions","source","observedAt","expiresAt","version","referralId","referralVersion","fresh","quoteAvailable","quoteUnavailableReason","eligibility","description","partnerSettings","fields","otherParameters"],"additionalProperties":false}},"required":["product","options"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/referrals":{"get":{"operationId":"listReferrals","summary":"Профили нового оформления и переоформления","description":"Для расчета выберите id профиля new_policy. Для учета перехода передайте id профиля renewal в POST /v1/renewal-handoffs.","responses":{"200":{"description":"Профили","content":{"application/json":{"schema":{"type":"object","properties":{"referrals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"label":{"type":"string"},"version":{"type":"integer"},"active":{"type":"integer","const":1},"purpose":{"type":"string","enum":["new_policy","renewal"]},"url":{"type":"string","format":"uri","description":"Адрес Евразии для переоформления. Возвращается для renewal."}},"required":["id","label","version","active","purpose"],"additionalProperties":false}}},"required":["referrals"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products":{"get":{"operationId":"listProducts","summary":"Каталог продуктов","responses":{"200":{"description":"Каталог","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"],"additionalProperties":false}},"environment":{"type":"string","const":"local"},"providerConnected":{"const":true,"type":"boolean"}},"required":["products","environment","providerConnected"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/applications":{"post":{"operationId":"createApplication","summary":"Сохранить локальный черновик","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"},"description":"Один ключ для всех повторов одной операции у партнера. Другие данные с тем же ключом: 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationInput"}}}},"responses":{"200":{"description":"Повтор: та же заявка","content":{"application/json":{"schema":{"type":"object","properties":{"application":{"$ref":"#/components/schemas/Application"},"replay":{"const":true,"type":"boolean"}},"required":["application","replay"],"additionalProperties":false}}}},"201":{"description":"Создано","content":{"application/json":{"schema":{"type":"object","properties":{"application":{"$ref":"#/components/schemas/Application"},"replay":{"const":false,"type":"boolean"}},"required":["application","replay"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/applications/{id}":{"get":{"operationId":"getApplication","summary":"Прочитать статус своей заявки","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Заявка","content":{"application/json":{"schema":{"type":"object","properties":{"application":{"$ref":"#/components/schemas/Application"}},"required":["application"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/stats":{"get":{"operationId":"getStats","summary":"Статистика партнера и последние 100 локальных черновиков","responses":{"200":{"description":"quotesStarted — уникальные расчеты без HAR; текущий запрос учитывается после завершения ответа","content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string"},"metrics":{"type":"object","properties":{"apiRequests":{"type":"integer"},"drafts":{"type":"integer"},"quotesStarted":{"type":"integer"},"paymentLinksCreated":{"type":"integer"},"paymentOpened":{"type":"integer"},"paid":{"type":"integer","const":0},"issued":{"type":"integer","const":0}},"required":["apiRequests","drafts","quotesStarted","paymentLinksCreated","paymentOpened","paid","issued"],"additionalProperties":false},"byProduct":{"type":"object","properties":{"ogpo_vts":{"type":"object","properties":{"drafts":{"type":"integer"},"paymentOpened":{"type":"integer"}},"required":["drafts","paymentOpened"],"additionalProperties":false},"dgpo_vts":{"type":"object","properties":{"drafts":{"type":"integer"},"paymentOpened":{"type":"integer"}},"required":["drafts","paymentOpened"],"additionalProperties":false}},"required":["ogpo_vts","dgpo_vts"],"additionalProperties":false},"testMetrics":{"type":"object","properties":{"linksCreated":{"type":"integer"},"paymentOpened":{"type":"integer"},"byProduct":{"type":"object","properties":{"ogpo_vts":{"type":"integer"},"dgpo_vts":{"type":"integer"}},"required":["ogpo_vts","dgpo_vts"],"additionalProperties":false}},"required":["linksCreated","paymentOpened","byProduct"],"additionalProperties":false},"applications":{"type":"array","items":{"$ref":"#/components/schemas/Application"}},"environment":{"type":"string","const":"local"},"providerConnected":{"const":true,"type":"boolean"}},"required":["scope","metrics","byProduct","testMetrics","applications","environment","providerConnected"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/excel/options":{"get":{"operationId":"localTariffOptions","summary":"Поля формы и допустимые значения для расчета по Excel","responses":{"200":{"description":"Параметры Excel","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/excel/estimates":{"post":{"operationId":"localBundleEstimate","summary":"Предварительные премии ОГПО и ДГПО без персональных данных","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["product","tariffYear","regionCode","settlementType","vehicleAgeGroup","driverAgeGroup","experienceGroup","bonusMalusClass","firstContract","driverCount","hasPrivilege","insuranceSum","commissionPercent","referralId"],"properties":{"product":{"type":"string","const":"ogpo_dgpo_vts"},"tariffYear":{"type":"integer","const":2026},"regionCode":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20"]},"settlementType":{"type":"string","enum":["regional_city","other"]},"vehicleAgeGroup":{"type":"string","enum":["up_to_7","over_7"]},"driverAgeGroup":{"type":"string","enum":["under_25","25_and_over"]},"experienceGroup":{"type":"string","enum":["up_to_2","over_2"]},"bonusMalusClass":{"type":"string","enum":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","M2","M1","M"]},"firstContract":{"type":"boolean"},"driverCount":{"type":"integer","const":1},"hasPrivilege":{"type":"boolean","const":false},"insuranceSum":{"type":"integer","enum":[1000000,2000000,3000000,4000000]},"commissionPercent":{"type":"integer","enum":[0,10,15,20,25,30,35,40,45,50,55,60,65,70]},"referralId":{"type":"string","format":"uuid"}}}}}},"responses":{"200":{"description":"Обе премии и итог в тенге, расчет действует один час","content":{"application/json":{"schema":{"type":"object","required":["estimateId","expiresAt","ogpo","dgpo","totalAmount"],"properties":{"estimateId":{"type":"string","format":"uuid"},"expiresAt":{"type":"string","format":"date-time"},"totalAmount":{"type":"string"},"ogpo":{"type":"object","properties":{"amount":{"type":"string"}}},"dgpo":{"type":"object","properties":{"amount":{"type":"string"},"commissionPercent":{"type":"integer"}}}}}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/dgpo/quotes":{"post":{"operationId":"personalDgpoQuote","summary":"Персональный расчет ДГПО для комплекта","description":"Опрос операции до dgpo_priced. partialQuote.dgpoPremium в тиынах. Оформление в Евразии.","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"referralId":{"type":"string","format":"uuid","description":"Выбранная ссылка из /v1/referrals; необязательна только для локального черновика. При live-оформлении будет обязательна."},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,100}$"},"startDate":{"type":"string","format":"date","description":"Календарный день Казахстана, не раньше завтрашнего. Не переводить в UTC timestamp."},"durationMonths":{"type":"integer","minimum":1,"maximum":12},"insurer":{"type":"object","properties":{"iin":{"type":"string","pattern":"^\\d{12}$"},"phone":{"type":"string","pattern":"^\\+7\\d{10}$"},"email":{"type":"string","format":"email","maxLength":254},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["iin","phone","email","address"],"additionalProperties":false},"drivers":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","properties":{"iin":{"type":"string","pattern":"^\\d{12}$"},"phone":{"type":"string","pattern":"^\\+7\\d{10}$","description":"Обязателен для водителя, отличающегося от страхователя"},"licenseNumber":{"type":"string","minLength":1,"maxLength":40},"licenseIssuedAt":{"anyOf":[{"type":"string","format":"date"},{"type":"string","const":""},{"type":"null"}],"description":"Необязательно. Если даты нет в ответе и она потребуется страховщику, вернется DRIVER_LICENSE_DATE_REQUIRED."},"privilege":{"type":"boolean","description":"Запросить льготу; подтверждается методом страховщика"}},"required":["iin","licenseNumber"],"additionalProperties":false}},"vehicle":{"type":"object","properties":{"registrationNumber":{"type":"string","minLength":1,"maxLength":30},"registrationCertificate":{"type":"string","minLength":1,"maxLength":30},"vin":{"type":"string","pattern":"^[A-HJ-NPR-Za-hj-npr-z0-9]{17}$"}},"required":["registrationNumber","registrationCertificate"],"additionalProperties":false},"dgpo":{"type":"object","properties":{"insuranceSum":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Сумма в KZT. Варианты из insuranceSums справочника; допустимость сочетания проверит страховщик."},"agentCommissionId":{"type":"integer","minimum":1,"description":"Идентификатор варианта из agentCommissions, не процент."},"optionsVersion":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Версия справочника. Обязательна вместе с agentCommissionId и referralId при выборе комиссии."}},"required":["insuranceSum","agentCommissionId","optionsVersion"],"additionalProperties":false,"dependentRequired":{"agentCommissionId":["optionsVersion"],"optionsVersion":["agentCommissionId"]}},"consent":{"type":"object","properties":{"personalData":{"const":true,"type":"boolean"},"acceptedAt":{"type":"string","format":"date-time"},"documentVersion":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,40}$"}},"required":["personalData","acceptedAt","documentVersion"],"additionalProperties":false,"description":"Партнер подтверждает согласие всех субъектов на обработку и запрос их данных у страховщика/госисточников. GetClient может инициировать ожидание внешнего согласия."}},"required":["product","externalReference","startDate","durationMonths","insurer","drivers","vehicle","consent","referralId"],"additionalProperties":false,"allOf":[{"if":{"properties":{"product":{"const":"ogpo_dgpo_vts"}}},"then":{"required":["dgpo"]},"else":{"not":{"required":["dgpo"]}}},{"if":{"required":["dgpo"],"properties":{"dgpo":{"anyOf":[{"required":["agentCommissionId"]},{"required":["optionsVersion"]}]}}},"then":{"required":["referralId"]}}]}}}},"responses":{"200":{"description":"Повтор ранее принятой операции","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true},"replay":{"type":"boolean","const":true}},"required":["operation","replay"],"additionalProperties":false}}}},"202":{"description":"Принято в очередь","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true},"replay":{"type":"boolean","const":false}},"required":["operation","replay"],"additionalProperties":false}}}},"400":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Ошибка. Клиент обрабатывает error.code и requestId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer"}},"schemas":{"QuoteInput":{"type":"object","properties":{"referralId":{"type":"string","format":"uuid","description":"Выбранная ссылка из /v1/referrals; необязательна только для локального черновика. При live-оформлении будет обязательна."},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,100}$"},"startDate":{"type":"string","format":"date","description":"Календарный день Казахстана, не раньше завтрашнего. Не переводить в UTC timestamp."},"durationMonths":{"type":"integer","minimum":1,"maximum":12},"insurer":{"type":"object","properties":{"iin":{"type":"string","pattern":"^\\d{12}$"},"phone":{"type":"string","pattern":"^\\+7\\d{10}$"},"email":{"type":"string","format":"email","maxLength":254},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["iin","phone","email","address"],"additionalProperties":false},"drivers":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","properties":{"iin":{"type":"string","pattern":"^\\d{12}$"},"phone":{"type":"string","pattern":"^\\+7\\d{10}$","description":"Обязателен для водителя, отличающегося от страхователя"},"licenseNumber":{"type":"string","minLength":1,"maxLength":40},"licenseIssuedAt":{"anyOf":[{"type":"string","format":"date"},{"type":"string","const":""},{"type":"null"}],"description":"Необязательно. Если даты нет в ответе и она потребуется страховщику, вернется DRIVER_LICENSE_DATE_REQUIRED."},"privilege":{"type":"boolean","description":"Запросить льготу; подтверждается методом страховщика"}},"required":["iin","licenseNumber"],"additionalProperties":false}},"vehicle":{"type":"object","properties":{"registrationNumber":{"type":"string","minLength":1,"maxLength":30},"registrationCertificate":{"type":"string","minLength":1,"maxLength":30},"vin":{"type":"string","pattern":"^[A-HJ-NPR-Za-hj-npr-z0-9]{17}$"}},"required":["registrationNumber","registrationCertificate"],"additionalProperties":false},"dgpo":{"type":"object","properties":{"insuranceSum":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Сумма в KZT. Варианты из insuranceSums справочника; допустимость сочетания проверит страховщик."},"agentCommissionId":{"type":"integer","minimum":1,"description":"Идентификатор варианта из agentCommissions, не процент."},"optionsVersion":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Версия справочника. Обязательна вместе с agentCommissionId и referralId при выборе комиссии."}},"required":["insuranceSum","agentCommissionId","optionsVersion"],"additionalProperties":false,"dependentRequired":{"agentCommissionId":["optionsVersion"],"optionsVersion":["agentCommissionId"]}},"consent":{"type":"object","properties":{"personalData":{"const":true,"type":"boolean"},"acceptedAt":{"type":"string","format":"date-time"},"documentVersion":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,40}$"}},"required":["personalData","acceptedAt","documentVersion"],"additionalProperties":false,"description":"Партнер подтверждает согласие всех субъектов на обработку и запрос их данных у страховщика/госисточников. GetClient может инициировать ожидание внешнего согласия."}},"required":["product","externalReference","startDate","durationMonths","insurer","drivers","vehicle","consent","referralId"],"additionalProperties":false,"allOf":[{"if":{"properties":{"product":{"const":"ogpo_dgpo_vts"}}},"then":{"required":["dgpo"]},"else":{"not":{"required":["dgpo"]}}},{"if":{"required":["dgpo"],"properties":{"dgpo":{"anyOf":[{"required":["agentCommissionId"]},{"required":["optionsVersion"]}]}}},"then":{"required":["referralId"]}}]},"Operation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":["string","null"]},"createdAt":{"type":["string","null"]},"stage":{"type":"string"},"nextActions":{"type":"array","items":{"type":"string"}},"actionRequired":{"type":["string","null"]},"actionParticipant":{"type":["object","null"]},"error":{"type":["string","null"]},"quote":{"type":["object","null"],"description":"Суммы в тиынах: amountUnit=minor, 839500 соответствует 8395 KZT"},"partialQuote":{"type":["object","null"]},"paymentLink":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"firstOpenedAt":{"type":["string","null"],"format":"date-time"},"openCount":{"type":"integer"},"environment":{"type":"string","enum":["live","live_test"]}},"required":["id","path","createdAt","expiresAt","firstOpenedAt","openCount","environment"],"additionalProperties":false},{"type":"null"}]},"environment":{"type":"string","enum":["live","live_test"]}},"additionalProperties":true},"ApplicationInput":{"type":"object","properties":{"referralId":{"type":"string","format":"uuid","description":"Выбранная ссылка из /v1/referrals; необязательна только для локального черновика. При live-оформлении будет обязательна."},"product":{"type":"string","enum":["ogpo_vts","ogpo_dgpo_vts"]},"externalReference":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,100}$"},"startDate":{"type":"string","format":"date"},"durationMonths":{"type":"integer","minimum":1,"maximum":12},"insurer":{"type":"object","properties":{"iin":{"type":"string","pattern":"^\\d{12}$"},"phone":{"type":"string","pattern":"^\\+7\\d{10}$"},"email":{"type":"string","format":"email","maxLength":254}},"required":["iin","phone","email"],"additionalProperties":false},"drivers":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","properties":{"iin":{"type":"string","pattern":"^\\d{12}$"}},"required":["iin"],"additionalProperties":false}},"vehicle":{"type":"object","properties":{"registrationNumber":{"type":"string","minLength":1,"maxLength":30},"registrationCertificate":{"type":"string","minLength":1,"maxLength":30}},"required":["registrationNumber","registrationCertificate"],"additionalProperties":false},"dgpo":{"type":"object","properties":{"insuranceSum":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Сумма в KZT. Варианты из insuranceSums справочника; допустимость сочетания проверит страховщик."},"agentCommissionId":{"type":"integer","minimum":1,"description":"Идентификатор варианта из agentCommissions, не процент."},"optionsVersion":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Версия справочника. Обязательна вместе с agentCommissionId и referralId при выборе комиссии."}},"required":["insuranceSum"],"additionalProperties":false,"dependentRequired":{"agentCommissionId":["optionsVersion"],"optionsVersion":["agentCommissionId"]}},"consent":{"type":"object","properties":{"personalData":{"const":true,"type":"boolean"},"acceptedAt":{"type":"string","format":"date-time"},"documentVersion":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,40}$"}},"required":["personalData","acceptedAt","documentVersion"],"additionalProperties":false}},"required":["product","externalReference","startDate","durationMonths","insurer","drivers","vehicle","consent"],"additionalProperties":false,"allOf":[{"if":{"properties":{"product":{"const":"ogpo_dgpo_vts"}}},"then":{"required":["dgpo"]},"else":{"not":{"required":["dgpo"]}}},{"if":{"required":["dgpo"],"properties":{"dgpo":{"anyOf":[{"required":["agentCommissionId"]},{"required":["optionsVersion"]}]}}},"then":{"required":["referralId"]}}]},"Application":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"partner":{"type":"string"},"product":{"type":"string"},"externalReference":{"type":"string"},"status":{"type":"string","const":"draft"},"createdAt":{"type":"string","format":"date-time"},"environment":{"type":"string","const":"local"},"providerConnected":{"const":false,"type":"boolean"}},"required":["id","partner","product","externalReference","status","createdAt","environment","providerConnected"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}