> For the complete documentation index, see [llms.txt](https://sravni-labs-ru.gitbook.io/sravni-labs.ru-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sravni-labs-ru.gitbook.io/sravni-labs.ru-docs/rko/rasschyotno-kassovoe-obsluzhivanie.-openapi-dlya-vashego-biznesa/metody-vzaimodeistviya/poluchenie-zayavok.md).

# Получение заявок

Метод для получения созданных заявок. Есть возможность фильтровать заявки по полям, указанным во входных параметрах.

Авторизация осуществляется по токену с актуальным сроком действия. Его требуется передать в заголовке Authorization при выполнении запроса.

Базовый URL dev: [https://sravni-apigateway-service.dev.sravni-team.ru](https://sravni-apigateway-service.dev.sravni-team.ru/)\
Базовый URL prod: [https://api.sravni.ru](https://api.sravni.ru/)

## GET /agents/v1/rko

> Получение черновиков РКО из АК

```json
{"openapi":"3.0.1","info":{"title":"Sravni.ApiGateway.Service 1.0","version":"1.0"},"paths":{"/agents/v1/rko":{"get":{"tags":["Агентский кабинет"],"summary":"Получение черновиков РКО из АК","parameters":[{"name":"DateFrom","in":"query","description":"Дата начала выборки","schema":{"type":"string","format":"date-time"}},{"name":"DateTo","in":"query","description":"Дата окончания выборки","schema":{"type":"string","format":"date-time"}},{"name":"CompanyId","in":"query","description":"Банк","schema":{"type":"integer","format":"int32"}},{"name":"Status","in":"query","description":"Фильтр по статусу заявки","schema":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.RkoStatusFilter"}},{"name":"LegalEntity","in":"query","description":"ИП/ЮЛ","schema":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.LegalEntityFieldFilter"}},{"name":"Filter","in":"query","description":"Текстовый фильтр для выборки заявок","schema":{"type":"string"}},{"name":"OrderBy","in":"query","description":"Сортировка выборки по названию поля в полисе","schema":{"type":"string"}},{"name":"SortPath","in":"query","description":"Направление сортировки (asc, desc)","schema":{"type":"string"}},{"name":"Take","in":"query","description":"Количество заявок, которое необходимо получить","schema":{"type":"integer","format":"int32"}},{"name":"Skip","in":"query","description":"Количество заявок, которое необходимо пропустить","schema":{"type":"integer","format":"int32"}},{"name":"ByUpdateStatusDate","in":"query","description":"Флаг фильтриции по UpdateStatusDate.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.AgentListResponse`1[[Sravni.ApiGateway.Service.Agents.Models.Rko.RkoQuery, Sravni.ApiGateway.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"}},"application/json":{"schema":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.AgentListResponse`1[[Sravni.ApiGateway.Service.Agents.Models.Rko.RkoQuery, Sravni.ApiGateway.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"}},"text/json":{"schema":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.AgentListResponse`1[[Sravni.ApiGateway.Service.Agents.Models.Rko.RkoQuery, Sravni.ApiGateway.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"}}}},"400":{"description":"Bad Request","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Sravni.Micro.Errors.ErrorModel"}},"application/json":{"schema":{"$ref":"#/components/schemas/Sravni.Micro.Errors.ErrorModel"}},"text/json":{"schema":{"$ref":"#/components/schemas/Sravni.Micro.Errors.ErrorModel"}}}},"500":{"description":"Internal Server Error","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Sravni.Micro.Errors.ErrorModel"}},"application/json":{"schema":{"$ref":"#/components/schemas/Sravni.Micro.Errors.ErrorModel"}},"text/json":{"schema":{"$ref":"#/components/schemas/Sravni.Micro.Errors.ErrorModel"}}}}}}}},"components":{"schemas":{"Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.RkoStatusFilter":{"enum":["new","refused","approved","opened","activated"],"type":"string"},"Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.LegalEntityFieldFilter":{"enum":["default","ooo","ip"],"type":"string","description":"Набор юридических статусов, по которым доступна фильтрация заявок"},"Sravni.ApiGateway.Service.Agents.Models.Rko.AgentListResponse`1[[Sravni.ApiGateway.Service.Agents.Models.Rko.RkoQuery, Sravni.ApiGateway.Service, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.RkoQuery"},"description":"Заявки","nullable":true},"total":{"type":"integer","description":"Общее количество заявок","format":"int32"}},"additionalProperties":false},"Sravni.ApiGateway.Service.Agents.Models.Rko.RkoQuery":{"type":"object","properties":{"id":{"type":"integer","description":"Идентификатор заявки","format":"int64"},"userId":{"type":"integer","description":"Идентификатор пользователя, создавшего заявку","format":"int32","nullable":true},"userName":{"type":"string","description":"ФИО пользователя, создавшего заявку","nullable":true},"dateCreating":{"type":"string","description":"Дата создания заявки","format":"date-time"},"updateStatusDate":{"type":"string","description":"Дата обновления статуса","format":"date-time","nullable":true},"organizationName":{"type":"string","description":"Наименование организации","nullable":true},"organizationId":{"type":"integer","description":"Идентификатор организации","format":"int32"},"organizationInn":{"type":"string","description":"ИНН организации","nullable":true},"city":{"type":"string","description":"Город","nullable":true},"bankName":{"type":"string","description":"Название банка","nullable":true},"productName":{"type":"string","description":"Название продукта","nullable":true},"productPrice":{"type":"integer","description":"Тариф","format":"int32"},"status":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.RkoListItemStatus"},"statusComment":{"type":"string","description":"Комментарий к статусу заявки","nullable":true},"profit":{"type":"number","description":"Доход","format":"double"},"profitDate":{"type":"string","description":"Дата начисления профита","format":"date-time","nullable":true},"legalEntity":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.ELegalEntityDto"},"rewardStatus":{"$ref":"#/components/schemas/Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.RkoListItemStatus"},"availablePayDate":{"type":"string","description":"Дата выплаты.","format":"date-time","nullable":true}},"additionalProperties":false},"Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.RkoListItemStatus":{"enum":["notSet","new","refused","confirmed","approved","finalApproved","rejected","reserved","activated"],"type":"string"},"Sravni.ApiGateway.Service.Agents.Models.Rko.Enums.ELegalEntityDto":{"enum":["default","legalEntity","individualEntrepreneur"],"type":"string"},"Sravni.Micro.Errors.ErrorModel":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/Sravni.Micro.Errors.Error"}},"additionalProperties":false},"Sravni.Micro.Errors.Error":{"type":"object","properties":{"code":{"type":"string","nullable":true},"target":{"type":"string","nullable":true},"message":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"attemptedValue":{"type":"string","nullable":true},"details":{"type":"array","items":{"$ref":"#/components/schemas/Sravni.Micro.Errors.Error"},"nullable":true}},"additionalProperties":false}}}}
```
