Raiffeisenbank (Russia) Correspondences API

Переписка

Operations 4

POST /v1/correspondences Создание переписки #
POST /v1/correspondences/query Получение списка переписок #
GET /v1/correspondences/{id} Получение переписки из банка #
GET /v2/correspondences/{id} Получение переписки #

Documentation

📖
Documentation
https://developer.raiffeisen.ru/docs/api/019d728b-89c8-75f1-b40c-acf0a4c37d0f
📖
Documentation
https://developer.raiffeisen.ru/docs/api/aa8d5f34-610d-49b7-99e5-dd3258149bc8
📖
Documentation
https://developer.raiffeisen.ru/docs/api/d75569ab-740b-4c7d-a124-d0dc2f0e74aa
📖
Documentation
https://developer.raiffeisen.ru/docs/api/55c08ade-ed8a-49c2-83f3-b7e39c13d760
📖
Documentation
https://developer.raiffeisen.ru/docs/api/f534bb35-a6e1-4fb5-afd5-b01fbcdddda3
📖
Documentation
https://developer.raiffeisen.ru/docs/api/efaa116d-b797-458f-bd44-5936c5a32f1e
📖
Documentation
https://developer.raiffeisen.ru/docs/api/3d89f643-c91d-4c9f-81e4-297b39c8bb68
📖
Documentation
https://developer.raiffeisen.ru/docs/api/adddd098-b2cc-4363-a01c-3453b48998c9
📖
Documentation
https://developer.raiffeisen.ru/docs/api/f3d7b2d1-38e7-4ba3-9b65-83c7cccbd952
📖
Documentation
https://developer.raiffeisen.ru/docs/api/718b7a3c-53ff-43d5-af52-39fa94b715a3
📖
Documentation
https://developer.raiffeisen.ru/docs/api/fedfe52d-809d-41a2-9435-67465b79cd1d
📖
Documentation
https://developer.raiffeisen.ru/docs/api/4f8550fc-ca39-4b59-8070-93f1ecf61ecc
📖
Documentation
https://developer.raiffeisen.ru/docs/api/019d7290-8e16-7d78-8fc0-c0ab945618b1
📖
Documentation
https://developer.raiffeisen.ru/docs/api/019d7290-a844-7c60-b7ba-a7ceb9f4a57b
📖
Documentation
https://developer.raiffeisen.ru/docs/api/019d7290-4d7b-74e1-9c6b-547ab4a03a06
📖
Documentation
https://developer.raiffeisen.ru/docs/api/019d7290-7319-7ce4-99ef-4bcc6f028158
📖
Documentation
https://developer.raiffeisen.ru/docs/api/019d7290-bfcc-7574-8bf0-4bfeb7a0daf2
📖
Documentation
https://developer.raiffeisen.ru/docs/api/7790599d-5d5f-417b-b98b-46e4737f721b
📖
Documentation
https://developer.raiffeisen.ru/docs/api/f3fdfa78-7527-43c1-b2d6-b22126cbfa06
📖
Documentation
https://developer.raiffeisen.ru/docs/api/ad8956b8-45e5-444c-870d-9839208e8b68
📖
Documentation
https://developer.raiffeisen.ru/docs/api/eb0b1e0b-1652-45f4-bfa0-641ef2096223
📖
Documentation
https://developer.raiffeisen.ru/docs/api/af3bbb2c-6408-4aad-83f7-797f4fe8f651
📖
Documentation
https://developer.raiffeisen.ru/docs/api/eb2f13ea-5a3e-49f8-8f0c-c6ae876811b1
📖
Documentation
https://developer.raiffeisen.ru/docs/api/7ce56eac-bc03-4ae5-9179-4be9e1f8fe44
📖
Documentation
https://developer.raiffeisen.ru/docs/api/efaa116d-b797-458f-bd44-5936c5a32f3e
📖
Documentation
https://developer.raiffeisen.ru/docs/api/8c8310a7-0b8b-40fd-bd89-e93174359e47
📖
Documentation
https://developer.raiffeisen.ru/docs/api/a7f3c92b-5e4a-4b2a-9f0e-1d8a6c5e4b3f
📖
Documentation
https://developer.raiffeisen.ru/docs/api/efaa116d-b797-458f-bd44-5936c5a32f2e
📖
Documentation
https://developer.raiffeisen.ru/docs/api/0199c9b5-9049-798b-ac55-bb2591d09840
📖
Documentation
https://developer.raiffeisen.ru/docs/api/ff3106cf-e687-403a-9604-b81fae168756
📖
Documentation
https://developer.raiffeisen.ru/docs/api/05e25ce2-92ac-48be-90d6-a3845ee92d58
📖
Documentation
https://developer.raiffeisen.ru/docs/api/df4e9b73-2e52-48af-ae85-829b8e55c915
📖
Documentation
https://developer.raiffeisen.ru/docs/api/401659d2-2671-4016-ae96-bbe22dbd94d4
📖
Documentation
https://developer.raiffeisen.ru/docs/api/b8c81c1c-868c-4422-ab91-1a700f37970e
📖
Documentation
https://developer.raiffeisen.ru/docs/api/f897f15b-f0f2-4e20-9308-94739c41a830
📖
Documentation
https://developer.raiffeisen.ru/docs/api/8e0be7bf-8b00-4d65-8573-006ba615c4a4
📖
Documentation
https://developer.raiffeisen.ru/docs/api/fb0ccbf0-870a-4a3e-a36a-35541e85a111
📖
Documentation
https://developer.raiffeisen.ru/docs/api/f5ac1ac9-3743-48b5-aafd-506220be44ba
📖
Documentation
https://developer.raiffeisen.ru/docs/api/c0f99d73-2c2b-4e2e-a266-7af10cbbfd66
📖
Documentation
https://developer.raiffeisen.ru/docs/api/914b064e-2342-42da-91f5-3b4a77d8e36d
📖
Documentation
https://developer.raiffeisen.ru/docs/api/2753a4f1-81c1-46b5-aeb9-5129ab532f61
📖
Documentation
https://developer.raiffeisen.ru/docs/api/86175c5a-bbce-4dd8-8b8f-756f69d9351d
📖
Documentation
https://developer.raiffeisen.ru/docs/api/c9c9c4ce-36ed-4e51-aa98-451d5732763c
📖
Documentation
https://developer.raiffeisen.ru/docs/api/6adfcfe1-d74e-4a72-8f98-edd9de31010a
📖
Documentation
https://pay.raif.ru/doc/ecom.html
📖
Documentation
https://pay.raif.ru/doc/wl-ecom.html
📖
Documentation
https://pay.raif.ru/doc/sbp.html
📖
Documentation
https://pay.raif.ru/doc/fiscal.html
📖
Documentation
https://pay.raif.ru/doc/dcc.html
📖
Documentation
https://pay.raif.ru/doc/payout.html
📖
Documentation
https://pay.raif.ru/doc/adm.html
📖
Documentation
https://pay.raif.ru/doc/sbp_b2b.html
📖
Documentation
https://pay.raif.ru/doc/transfers.html

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-notification-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-notification-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-notification-settings-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-notification-settings-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-file-metadata-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-file-upload-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-file-upload-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-currency-contract-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-currency-contract-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-document-status-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-login-view-data-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-token-request-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-error-page-data-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-login-step-request-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-public-jwks-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-token-revocation-request-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-report-task-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-report-task-create-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-report-task-type-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-payment-order-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-payment-order-create-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-foreign-trade-contract-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-pdf-report-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-mt940-report-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create1-creport-request-v2-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create1-creport-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-excel-report-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-mt942-report-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-task-create-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-task-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-treasury-reports-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-report-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-user-eligible-companies-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-eligible-companies-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-statement-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-statement-status-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-statement-transfers-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-statement-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-webinar-v2-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-webinars-v2-resources-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-news-content-counter-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-read-status-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-stat-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-digest-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-digest-v2-resources-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-digest-stat-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-product-news-v2-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-product-news-v2-resources-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-color-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-supply-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-condition-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-notice-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-buyer-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-condition-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-supply-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-operation-dto-v2-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-client-tariff-plan-change-request-pre-sign-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-client-tariff-plan-change-request-body-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-page-response-client-tariff-plan-change-request-list-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-client-tariff-plan-change-request-state-history-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-deliverable-conversion-blotter-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-deliverable-conversion-blotter-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-comparison-summary-rep-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-report-refund-sbp-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-report-refund-card-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-report-payment-sbp-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-report-payment-card-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-get-external-correspondence-v2-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-get-external-correspondence-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-submit-external-mail-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-search-correspondences-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-external-mail-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-external-correspondence-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-permissions-context-v1-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-employee-role-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-acc-employee-permission-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-employee-role-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-api-process-import-full-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-api-process-import-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-api-short-process-import-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-tariff-plan-document-public-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-available-tariff-plans-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-page-response-future-client-tariff-plan-public-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-streaming-response-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-audit-order-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-create-audit-order-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-audit-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-rate-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-bill-details-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-page-bill-mini-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-updrequest-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-closing-document-details-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-closing-document-list-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-bill-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantee-change-log-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantee-commission-excel-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantee-short-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantee-filter-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-get-actives-by-cnum-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantees-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantee-renunciation-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantee-beneficiary-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantee-beneficiary-filter-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-guarantee-beneficiary-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-status-history-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-tfo-counter-result-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-agreement-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-ui-count-agreements-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-agreements-filter-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-agreements-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-fund-account-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-fund-info-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-client-info-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-code-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-get-code-list-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-update-code-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-deactivate-code-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-deactivate-code-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-order-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/refs/heads/main/json-schema/raiffeisen-ru-packet-response-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/raiffeisen-ru:raiffeisen-ru-correspondences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

raiffeisen-ru-correspondences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Письма Correspondences API
  description: API Входящих писем в банк
  version: 1.0.0
servers:
- url: https://api.raiffeisen.ru/letters
tags:
- name: Correspondences
  description: Переписка
paths:
  /v1/correspondences:
    post:
      summary: Создание переписки
      description: Метод создания переписки
      tags:
      - Correspondences
      operationId: createCorrespondence
      parameters:
      - $ref: '#/components/parameters/AuthorizationHeader'
      - $ref: '#/components/parameters/IdTokenHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateExternalCorrespondenceRequest'
            example:
              docExtId: '123456'
              topicId: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
              text: Текст письма
              docData:
                orgName: ООО Компания
                docNumber: '12345'
                docDate: '2021-07-10'
                account: '12345678901234567000'
                bic: '123456789'
                inn: '123412341234'
                kpp: '123456789'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateExternalCorrespondenceResponse'
              example:
                correspondenceId: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
                mailId: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/correspondences/query:
    post:
      summary: Получение списка переписок
      description: Метод получения списка переписок организации с фильтрацией, сортировкой и постраничной навигацией. Письма и вложения в ответе не возвращаются, статус прочтения писем не изменяется.
      tags:
      - Correspondences
      operationId: searchCorrespondences
      parameters:
      - $ref: '#/components/parameters/AuthorizationHeader'
      - $ref: '#/components/parameters/IdTokenHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchCorrespondencesRequest'
            example:
              filter:
                organization:
                  inn: '7707083893'
                directions:
                - TO_BANK
                createdAt:
                  from: '2026-07-01T00:00:00Z'
                  to: '2026-08-01T00:00:00Z'
                accounts:
                - '12345678901234567890'
                statuses:
                - OPEN
              sort:
                field: UPDATED_AT
                direction: DESC
              paging:
                offset: 0
                limit: 50
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchCorrespondencesResponse'
              example:
                items:
                - id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
                  direction: TO_BANK
                  status: OPEN
                  topic:
                    product: Торговое финансирование
                    theme: Заявки
                    clarification: Другие вопросы
                  createdAt: '2026-07-10T06:53:37Z'
                  updatedAt: '2026-07-11T09:15:02Z'
                  account: '12345678901234567890'
                  senderFirstName: Иван
                  senderMiddleName: Иванович
                  senderLastName: Иванов
                paging:
                  offset: 0
                  limit: 50
                  hasNext: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          $ref: '#/components/responses/InternalError'
  /v1/correspondences/{id}:
    get:
      summary: Получение переписки из банка
      description: Метод получения переписки из банка по идентификатору. Устарел, используйте GET /api/external/v2/correspondences/{id}
      deprecated: true
      tags:
      - Correspondences
      operationId: getCorrespondence
      parameters:
      - name: id
        schema:
          type: string
          format: uuid
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        description: Идентификатор переписки
        in: path
        required: true
      - $ref: '#/components/parameters/AuthorizationHeader'
      - $ref: '#/components/parameters/IdTokenHeader'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetExternalCorrespondenceResponse'
              example:
                id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
                status: CLOSED
                topicId: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
                createdAt: '2021-07-10T06:53:37Z'
                updatedAt: '2021-07-10T06:53:37Z'
                account: '123456789'
                senderFirstName: Иван
                senderMiddleName: Иванович
                senderLastName: Иванов
                correspondenceMails:
                - id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
                  type: TO_BANK
                  text: Текст письма
                  number: 1
                  createdAt: '2021-07-10T06:53:37Z'
                  updatedAt: '2021-07-10T06:53:37Z'
                  senderFirstName: Иван
                  senderMiddleName: Иванович
                  senderLastName: Иванов
                  attachments:
                  - number: 1
                    name: file.txt
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
  /v2/correspondences/{id}:
    get:
      summary: Получение переписки
      description: Метод получения переписки по идентификатору с поддержкой произвольной тематики и переписок без счета
      tags:
      - Correspondences
      operationId: getCorrespondenceV2
      parameters:
      - name: id
        schema:
          type: string
          format: uuid
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        description: Идентификатор переписки
        in: path
        required: true
      - $ref: '#/components/parameters/AuthorizationHeader'
      - $ref: '#/components/parameters/IdTokenHeader'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetExternalCorrespondenceV2Response'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ExternalSearchDateTime:
      type: string
      pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
      description: Дата и время в формате ISO 8601, строго UTC (`Z`), без дробной части
      example: '2026-07-10T06:53:37Z'
    DateTimeRange:
      type: object
      description: Диапазон дат. Граница from включается в выборку, граница to — исключается
      example:
        from: '2026-07-01T00:00:00Z'
        to: '2026-08-01T00:00:00Z'
      properties:
        from:
          description: Начало диапазона (включительно)
          $ref: '#/components/schemas/DateTimeWithOffset'
        to:
          description: Конец диапазона (исключительно)
          $ref: '#/components/schemas/DateTimeWithOffset'
    CreateExternalCorrespondenceResponse:
      properties:
        correspondenceId:
          type: string
          format: uuid
          description: Идентификатор переписки
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        mailId:
          type: string
          format: uuid
          description: Идентификатор первого письма
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
      required:
      - correspondenceId
      - mailId
    GetExternalCorrespondenceResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Идентификатор переписки
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        status:
          description: Статус переписки
          $ref: '#/components/schemas/ExternalCorrespondenceStatus'
        topicId:
          type: string
          format: uuid
          description: Идентификатор темы переписки
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        createdAt:
          description: Время создания переписки
          $ref: '#/components/schemas/DateTime'
        updatedAt:
          description: Время обновления переписки
          $ref: '#/components/schemas/DateTime'
        account:
          type: string
          description: Номер счета
          example: '123456789'
        senderFirstName:
          type: string
          description: Имя инициатора
          example: Иван
        senderMiddleName:
          type: string
          description: Отчетсво инициатора
          example: Иванович
        senderLastName:
          type: string
          description: Фамилия инициатора
          example: Иванов
        correspondenceMails:
          type: array
          description: Письма переписки
          example: []
          items:
            $ref: '#/components/schemas/ExternalCorrespondenceMail'
      required:
      - id
      - topicId
      - createdAt
      - updatedAt
      - senderFirstName
      - senderLastName
      - correspondenceMails
    ExternalOrganizationFilter:
      type: object
      description: Идентификатор организации для поиска переписок. Необходимо передать хотя бы одно из полей `inn` или `cnum`. Если переданы оба, они должны относиться к одной организации. КПП допустим только вместе с ИНН/КИО
      example:
        inn: '7707083893'
        kpp: '773601001'
      properties:
        inn:
          type: string
          description: ИНН/КИО организации. Для КИО допустимо 5 цифр, для ИНН — 10 или 12 цифр
          pattern: (0|[0-9]{5})|([0-9]{10})|([0-9]{12})
          maxLength: 12
          example: '7707083893'
        cnum:
          type: string
          description: Внутренний идентификатор организации (CNUM)
          pattern: (.*\S.*|)
          minLength: 1
          example: CB1234567
        kpp:
          type: string
          description: КПП организации. Необязателен, если организация однозначно определяется по ИНН/КИО
          pattern: (.*\S.*|)
          minLength: 1
          example: '773601001'
    ExternalPagingRequest:
      type: object
      description: Параметры постраничной навигации
      example:
        offset: 0
        limit: 50
      properties:
        offset:
          type: integer
          format: int32
          description: Количество пропускаемых записей
          minimum: 0
          default: 0
          example: 0
        limit:
          type: integer
          format: int32
          description: Максимальное количество записей в ответе
          minimum: 1
          maximum: 100
          default: 50
          example: 50
    ErrorResponse:
      type: object
      description: Ошибка обработки запроса
      example:
        message: Validation failed
        error:
          code: BAD_REQUEST
          message: Validation failed
      properties:
        message:
          type: string
          description: Текст ошибки в устаревшем формате, сохранённый для обратной совместимости
          example: Validation failed
        error:
          type: object
          description: Структурированная информация об ошибке
          example:
            code: VALIDATION_ERROR
            message: Validation failed
          properties:
            code:
              type: string
              description: Машиночитаемый код ошибки
              example: VALIDATION_ERROR
            message:
              type: string
              description: Описание ошибки
              example: Validation failed
          required:
          - code
          - message
      required:
      - error
    SearchCorrespondencesResponse:
      type: object
      description: Список переписок
      properties:
        items:
          type: array
          description: Переписки, удовлетворяющие условиям отбора
          example: []
          items:
            $ref: '#/components/schemas/ExternalCorrespondenceCard'
        paging:
          description: Параметры постраничной навигации
          $ref: '#/components/schemas/ExternalPagingResponse'
      required:
      - items
      - paging
    CreateExternalCorrespondenceRequest:
      type: object
      properties:
        docExtId:
          type: string
          description: Идентификатор документа
          example: '123456'
        topicId:
          type: string
          format: uuid
          description: Идентификатор темы письма
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        text:
          type: string
          description: Текст письма
          minLength: 1
          maxLength: 4000
          pattern: .*(\S|\n).*
          example: Текст письма
        docData:
          $ref: '#/components/schemas/ExternalDocData'
      required:
      - docData
      - docExtId
      - topicId
      - text
    GetExternalCorrespondenceV2Response:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Идентификатор переписки
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        direction:
          description: Направление переписки
          $ref: '#/components/schemas/ExternalCorrespondenceDirection'
        status:
          description: Статус переписки
          $ref: '#/components/schemas/ExternalCorrespondenceStatus'
        topic:
          $ref: '#/components/schemas/ExternalCorrespondenceTopic'
        createdAt:
          description: Время создания переписки
          $ref: '#/components/schemas/DateTime'
        updatedAt:
          description: Время обновления переписки
          $ref: '#/components/schemas/DateTime'
        account:
          type:
          - string
          - 'null'
          description: Номер счета
          example: '123456789'
        senderFirstName:
          type: string
          description: Имя инициатора
          example: Иван
        senderMiddleName:
          type:
          - string
          - 'null'
          description: Отчество инициатора
          example: Иванович
        senderLastName:
          type: string
          description: Фамилия инициатора
          example: Иванов
        correspondenceMails:
          type: array
          description: Письма переписки
          items:
            $ref: '#/components/schemas/ExternalCorrespondenceMail'
          example: []
      required:
      - id
      - direction
      - status
      - topic
      - createdAt
      - updatedAt
      - account
      - senderFirstName
      - senderMiddleName
      - senderLastName
      - correspondenceMails
    ExternalCorrespondenceTopic:
      type:
      - object
      - 'null'
      description: Названия составляющих тематики переписки; null, если тематические данные не заполнены
      example:
        product: Торговое финансирование
        theme: Заявки
        clarification: Другие вопросы
      properties:
        product:
          type:
          - string
          - 'null'
          description: Продукт
          example: Торговое финансирование
        theme:
          type:
          - string
          - 'null'
          description: Тема
          example: Заявки
        clarification:
          type:
          - string
          - 'null'
          description: Уточнение
          example: Другие вопросы
    SearchCorrespondencesRequest:
      type: object
      description: Запрос на получение списка переписок
      properties:
        filter:
          description: Условия отбора переписок
          $ref: '#/components/schemas/ExternalCorrespondenceFilter'
        sort:
          description: Параметры сортировки. По умолчанию сортировка по времени обновления по убыванию
          $ref: '#/components/schemas/ExternalCorrespondenceSort'
        paging:
          description: Параметры постраничной навигации. По умолчанию offset = 0, limit = 50
          $ref: '#/components/schemas/ExternalPagingRequest'
      required:
      - filter
      - paging
    ExternalCorrespondenceFilter:
      type: object
      description: Условия отбора переписок
      example:
        organization:
          inn: '7707083893'
        directions:
        - TO_BANK
        accounts:
        - '12345678901234567890'
        statuses:
        - OPEN
      properties:
        organization:
          description: Идентификатор организации. Необходимо передать хотя бы одно из полей — ИНН/КИО или CNUM
          $ref: '#/components/schemas/ExternalOrganizationFilter'
        directions:
          type: array
          description: Направления переписок. Пустой список или отсутствие поля — отбираются оба направления
          items:
            $ref: '#/components/schemas/ExternalCorrespondenceDirection'
          example:
          - TO_BANK
        createdAt:
          description: Диапазон времени создания переписки
          $ref: '#/components/schemas/DateTimeRange'
        updatedAt:
          description: Диапазон времени последнего обновления переписки
          $ref: '#/components/schemas/DateTimeRange'
        accounts:
          type: array
          description: Номера счетов. Пустой список или отсутствие поля — фильтрация по счёту не выполняется. При непустом списке переписки без счёта не возвращаются. Если хотя бы один из указанных счетов недоступен пользователю, запрос завершается с ошибкой 403
          items:
            type: string
            example: '12345678901234567890'
          example:
          - '12345678901234567890'
        statuses:
          type: array
          description: Статусы переписок. Пустой список или отсутствие поля — фильтрация по статусу не выполняется
          items:
            $ref: '#/components/schemas/ExternalCorrespondenceStatus'
          example:
          - OPEN
      required:
      - organization
    ExternalDocData:
      type: object
      description: Общие реквизиты платёжного документа ДБО
      example:
        orgName: ООО Компания
        docNumber: '12345'
        docDate: '2021-07-10'
        account: '12345678901234567890'
        bic: '123456789'
        inn: '123412341234'
        kpp: '123456789'
      properties:
        orgName:
          type: string
          description: Наименование организации
          minLength: 1
          maxLength: 160
          example: ООО Компания
        docNumber:
          type: string
          description: Номер документа
          pattern: ([1-9][0-9]{0,5})
          maxLength: 6
          example: '12345'
        docDate:
          description: Дата составления документа
          $ref: '#/components/schemas/Date'
        account:
          type: string
          description: Номер счёта или корр. счёта, 20 цифр
          pattern: ([0-9]{20})
          maxLength: 20
          example: '12345678901234567890'
        bic:
          type: string
          description: БИК, 9 цифр
          pattern: ([0-9]{9})
          maxLength: 9
          example: '123456789'
        inn:
          type: string
          description: ИНН/КИО юридического или физического лица РФ, для КИО допустимо 5 символов, для ИНН 10 или 12 цифр
          pattern: (0|[0-9]{5})|([0-9]{10})|([0-9]{12})
          maxLength: 12
          example: '123412341234'
        kpp:
          type: string
          description: КПП, 9 цифр, 6-я позиция м.б. буква лат. буква 12 цифр
          pattern: (.*\S.*|)
          example: '123456789'
      required:
      - docNumber
      - docDate
      - account
      - bic
      - inn
    ExternalPagingResponse:
      type: object
      description: Параметры постраничной навигации
      example:
        offset: 0
        limit: 50
        hasNext: false
      properties:
        offset:
          type: integer
          format: int32
          description: Количество пропущенных записей
          example: 0
        limit:
          type: integer
          format: int32
          description: Максимальное количество записей в ответе
          example: 50
        hasNext:
          type: boolean
          description: Признак наличия следующей страницы
          example: false
        totalCount:
          type: integer
          format: int64
          description: Общее количество записей, удовлетворяющих условиям отбора
          example: 128
      required:
      - offset
      - limit
      - hasNext
    ExternalMailAttachment:
      type: object
      properties:
        number:
          type: integer
          description: Номер вложения
          example: 1
        name:
          type: string
          description: Название вложения
          example: file.txt
      required:
      - number
      - name
    ExternalCorrespondenceCard:
      type: object
      description: Краткая карточка переписки без писем и вложений
      properties:
        id:
          type: string
          format: uuid
          description: Идентификатор переписки
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        direction:
          description: Направление переписки
          $ref: '#/components/schemas/ExternalCorrespondenceDirection'
        status:
          description: Статус переписки
          $ref: '#/components/schemas/ExternalCorrespondenceStatus'
        topic:
          $ref: '#/components/schemas/ExternalCorrespondenceTopic'
        createdAt:
          description: Время создания переписки
          $ref: '#/components/schemas/ExternalSearchDateTime'
        updatedAt:
          description: Время последнего обновления переписки
          $ref: '#/components/schemas/ExternalSearchDateTime'
        account:
          type:
          - string
          - 'null'
          description: Номер счёта. Отсутствует, если переписка создана без привязки к счёту
          example: '12345678901234567890'
        senderFirstName:
          type: string
          description: Имя инициатора переписки
          example: Иван
        senderMiddleName:
          type:
          - string
          - 'null'
          description: Отчество инициатора переписки
          example: Иванович
        senderLastName:
          type: string
          description: Фамилия инициатора переписки
          example: Иванов
      required:
      - id
      - direction
      - status
      - topic
      - createdAt
      - updatedAt
      - account
      - senderFirstName
      - senderMiddleName
      - senderLastName
    DateTime:
      type: string
      pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
      description: Дата и время в UTC в формате yyyy-MM-dd'T'HH:mm:ss'Z'
      example: '2021-07-10T06:53:37Z'
    ExternalCorrespondenceDirection:
      type: string
      description: Направление переписки относительно клиента. TO_BANK — от клиента в банк, FROM_BANK — из банка клиенту
      enum:
      - FROM_BANK
      - TO_BANK
      example: TO_BANK
    Date:
      type: string
      pattern: ([0-9]{4})-([0-9]{2})-([0-9]{2})
      description: yyyy-MM-dd
      example: '2021-07-10'
    ExternalCorrespondenceStatus:
      type: string
      description: Статус переписки; промежуточные статусы закрытия относятся к OPEN
      enum:
      - OPEN
      - CLOSED
      example: OPEN
    ExternalMailType:
      type: string
      description: Направление письма относительно клиента
      example: TO_BANK
      enum:
      - TO_BANK
      - FROM_BANK
    ExternalCorrespondenceMail:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Идентификатор письма
          example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510
        type:
          description: Тип письма
          $ref: '#/components/schemas/ExternalMailType'
        text:
          type: string
          description: Текст письма
          example: Текст письма
        number:
          type: integer
          description: Номер письма
          example: 1
        createdAt:
          description: Время создания письма
          $ref: '#/components/schemas/DateTime'
        updatedAt:
          description: Время обновления письма
          $ref: '#/components/schemas/DateTime'
        senderFirstName:
          type: string
          description: Имя отправителя
          example: Иван
        senderMiddleName:
          type: string
          description: Отчетсво отправителя
          example: Иванович
        senderLastName:
          type: string
          description: Фамилия отправителя
          example: Иванов
        attachments:
          type: array
          description: Информация о вложениях
          items:
            $ref: '#/components/schemas/ExternalMailAttachment'
      required:
      - id
      - type
      - text
      - number
      - createdAt
      - updatedAt
      - senderFirstName
      - senderLastName
      - attachments
    ExternalCorrespondenceSort:
      type: object
      description: Параметры сортировки
      example:
        field: UPDATED_AT
        direction: DESC
      properties:
        field:
          type: string
          description: Поле сортировки
          default: UPDATED_AT
          enum:
          - CREATED_AT
          - UPDATED_AT
          example: UPDATED_AT
        direction:
          type: string
          description: Порядок сортировки
          default: DESC
          enum:
          - ASC
          - DESC
          example: DESC
    DateTimeWithOffset:
      type: string
      pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$
      description: Дата и время в формате ISO 8601 с обязательным указанием часового пояса — UTC (`Z`) или смещения (`±hh:mm`). Дробная часть секунды необязательна
      example: '2026-07-10T09:53:37.123456+03:00'
  parameters:
    IdTokenHeader:
      name: Id-Token
      in: header
      description: Идентификационный токен пользователя
      required: true
      schema:
        type: string
        format: byte
        example: SUQgVE9LRU4gRk9SIFRFU1RJTkc=
    AuthorizationHeader:
      name: Authorization
      in: header
      description: Токен доступа
      required: true
      schema:
        type: string
        format: byte
        example: Bearer QXV0aG9yaXphdGlvbiBIZWFkZXIgRm9yIFRlc3Rpbmc=
  responses:
    Unauthorized:
      description: Аутентификация не пройдена
    InternalError:
      description: Внутренняя ошибка