About using the API for integration with insurance companies

This integration API is designed for insurance companies and insurance service aggregators. The goal is to allow users to purchase an insurance policy on the partner's site through a dedicated section in the search results.

Partners that have implemented the methods described in this document provide a quote for the insurance object in question. They then compete with other partners in the integration to offer their services. When a user selects an offer, the integration service sends a confirmation to the partner's API. The user can then proceed to the partner's site to fill in the policy details and make a payment.

Once payment is made, the insurance company or aggregator must send the user a link to a resource with the policy information.

External API

Integration with Yandex is implemented via REST API. If you have no other integrations, you need to implement these methods:

The main goal is to obtain and provide the information required to issue a policy through an external integration.

Appendix

List of statuses

Status

Description

draft

Draft

declined

Declined

pending

Pending

validation

Validation

calculation

Calculation

payment

Awaiting payment

paid

Paid

issued

Issued

Одобрено?данетdraftpendingcalculationvalidationpaymentpaidissueddeclined

External API workflow diagram

YandexCKБанкYandexCKБанкОбновление словарейGET /osago/mdsresponseобновление справочниковОформление полисазаполнение номера ТСпредварительный расчетGET /osago/policy/calculate/car_number&get_inforesponseзаполнение анкетыPOST /osago/policy/calculateРасчет по полной анкетеприходят все предложенияпользователь выбирает лучшееPOST /osago/policy/issuestatus: processingloop[status != issued]polling GET /osago/policy/request_hashstatusstatus: pending // обработкаstatus: calculation // расчетstatus: validation // согласование / проверкаstatus: payment // формирование ссылки на оплатуalt[status = payment]GET /osago/policy/request_hash/payment-linkссылка на оплатуОплатаstatus: paid // оплаченоПеренаправление на вертикалиstatus: issued // выпуск полисаотправка полиса поадресу контактовДополнительные методыGET /osago/policy/request_hash/statusstatus:statusGET /osago/policy/request_hash/draftссылка на pdf черновикаОбращение к отдельным справочникамGET /osago/mds/brandsbrandsGET /osago/mds/brands/brand_id/modelsmodels by brandGET /osago/mds/models/model_id/yearsyears by modelGET /osago/mds/brands/brand_id/years/year/models/model_id/engine-powersengine powers brand, year and model