openapi: 3.2.0 info: title: Raiffeisen Ru Agreement API version: 1.0.0 description: 'Operations tagged Agreement across 8 of this provider''s published API definitions: raiffeisen-ru-agency-factoring-openapi.yml, raiffeisen-ru-factoring-openapi.yml, raiffeisen-ru-loans-openapi.yml, raiffeisen-ru-payment-control-openapi.yml, raiffeisen-ru-agency-factoring-openapi.yml, raiffeisen-ru-factoring-openapi.yml, raiffeisen-ru-loans-openapi.yml, raiffeisen-ru-payment-control-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://api.raiffeisen.ru/payables-financing - url: https://api.raiffeisen.ru/factoring - url: https://api.raiffeisen.ru/loans-financing - url: https://api.raiffeisen.ru/pay-control tags: - description: Агентский договора name: Agreement paths: /v1/agreements: get: description: Метод получение соглашений пользователя по параметрам operationId: getAgreements parameters: - description: Клиентский номер (CNUM) in: query name: cnums required: false schema: example: AAABBB type: string - $ref: '#/components/parameters/IdTokenHeader' - $ref: '#/components/parameters/AuthorizationHeader' responses: '200': content: application/json: examples: simple: summary: Одобренный value: - cqrsVersion: -1628796591 compensationPeriod: 100 taxCompensationPeriod: true nonAcceptanceWithdrawalFee: true endWorkingDayFeeInvoice: 10 maxCompensationPeriod: 200 bkiAcceptanceDate: '2025-01-01' isTaxAvailable: true principal: ogrn: '1027739326449' shortNameRus: АО Ромашка cqrsVersion: -1628796591 inn: '7744000302' kpp: '770401001' id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 state: statusDate: '2021-07-10T06:53:37.433111Z' errors: [] status: APPROVED fullNameEng: Joint Stock Chamomile cnum: AA10AA fullNameRus: Акционерное общество Ромашка isBkiAccepted: true number: АФ-1 autoprolongation: true startWorkingDayFeeInvoice: 5 nonAcceptanceWithdrawal: true id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 state: statusDate: '2021-07-10T06:53:37.433111Z' errors: [] status: APPROVED startDate: '2025-01-01' expirationDate: '2025-01-01' schema: $ref: '#/components/schemas/AgreementListResponse' description: OK '400': content: application/json: examples: simple: value: - code: REST_ERR_5001 message: General service error traceId: 29bda8ca-4d33-11ec-81d3-0242ac130000 schema: $ref: '#/components/schemas/ErrorResponse' description: BAD_REQUEST '401': $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalError' summary: Получение соглашений пользователя tags: - Agreement servers: - url: https://api.raiffeisen.ru/payables-financing /v1/agreements/{id}/accounts: get: description: Метод получения счетов списания по параметрам operationId: getAccounts parameters: - description: Номер договора in: path name: id required: true schema: example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 format: uuid type: string - $ref: '#/components/parameters/IdTokenHeader' - $ref: '#/components/parameters/AuthorizationHeader' responses: '200': content: application/json: examples: simple: summary: Несколько аккаунтов value: accounts: - agreementId: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 cbaNumber: '40916819105000006497' state: statusDate: '2021-07-10T06:53:37.433111Z' errors: [] status: ACTIVE id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 cqrsVersion: -1628796591 - agreementId: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 cbaNumber: '40916819105090006497' state: statusDate: '2021-07-10T06:53:37.433111Z' errors: [] status: ACTIVE id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 cqrsVersion: -1628795591 schema: $ref: '#/components/schemas/AccountForWithdrawalResponse' description: OK '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: ERROR '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: ERROR '401': $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalError' summary: Получение списка счетов для списания по параметрам tags: - Agreement servers: - url: https://api.raiffeisen.ru/payables-financing /v1/agreements/by-cnums: get: operationId: getAgreementsByCnums parameters: - description: Список клиентских номеров (список CNUM) in: query name: cnumList required: true schema: example: - AAABBB - BBBAAA items: example: AAABBB type: string type: array uniqueItems: true - description: Признак - нужны только активные соглашения in: query name: activeOnly required: false schema: example: true type: boolean - $ref: '#/components/parameters/IdTokenHeader' - $ref: '#/components/parameters/AuthorizationHeader' responses: '200': content: application/json: schema: $ref: '#/components/schemas/CreditLineDtoResponse' description: OK '400': content: application/json: schema: $ref: '#/components/schemas/BaseErrorResponse' description: BAD_REQUEST '401': $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalError' summary: Метод получение соглашений пользователя по параметрам tags: - Agreement servers: - url: https://api.raiffeisen.ru/loans-financing /v1/agreements/{id}/digest: get: description: Метод получение дайджеста договора для подписи operationId: getAgreementDigest parameters: - description: Идентификатор договора in: path name: id required: true schema: example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 format: uuid type: string - $ref: '#/components/parameters/IdTokenHeader' - $ref: '#/components/parameters/AuthorizationHeader' responses: '200': content: application/json: examples: simple: summary: Дайджет value: digest: 0JLQvtGCINGN0YLQviDQvdGD0LbQvdC+INC/0L7QtNC/0LjRgdCw0YLRjA== schema: $ref: '#/components/schemas/DigestResponse' description: OK '400': content: application/json: examples: simple: value: - code: REST_ERROR_5001 description: General service error traceId: 29bda8ca-4d33-11ec-81d3-0242ac130000 schema: $ref: '#/components/schemas/ErrorResponse_3' description: BAD_REQUEST '401': $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalError' summary: Получение дайджеста договора для подписи tags: - Agreement servers: - url: https://api.raiffeisen.ru/pay-control /v1/agreements/{id}/main-parameters-digest: get: description: Метод получение дайджеста основных параметров договора для подписи operationId: getMainParametersDigest parameters: - description: Идентификатор договора in: path name: id required: true schema: example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 format: uuid type: string - $ref: '#/components/parameters/IdTokenHeader' - $ref: '#/components/parameters/AuthorizationHeader' responses: '200': content: application/json: examples: simple: summary: Дайджет value: digest: 0JLQvtGCINGN0YLQviDQvdGD0LbQvdC+INC/0L7QtNC/0LjRgdCw0YLRjA== schema: $ref: '#/components/schemas/DigestResponse' description: OK '400': content: application/json: examples: simple: value: - code: REST_ERROR_5001 description: General service error traceId: 29bda8ca-4d33-11ec-81d3-0242ac130000 schema: $ref: '#/components/schemas/ErrorResponse_3' description: BAD_REQUEST '401': $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalError' summary: Получение дайджеста основных параметров договора для подписи tags: - Agreement servers: - url: https://api.raiffeisen.ru/pay-control /v1/agreements/{agreementId}/accounts/{accountId}: patch: description: Метод обновление счета для списания клиента operationId: patchAgreementAccount parameters: - description: Идентификатор договора in: path name: agreementId required: true schema: example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 format: uuid type: string - description: Идентификатор счета in: path name: accountId required: true schema: example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string - $ref: '#/components/parameters/IdTokenHeader' - $ref: '#/components/parameters/AuthorizationHeader' requestBody: content: application/json: examples: simple: summary: Новые реквизиты счета value: accountNumber: '40916819105000006497' cqrsVersion: 111111 schema: $ref: '#/components/schemas/PatchAccountRequest' description: Новый номер счета required: true responses: '200': description: OK '400': content: application/json: examples: simple: value: - code: REST_ERROR_5001 description: General service error traceId: 29bda8ca-4d33-11ec-81d3-0242ac130000 schema: $ref: '#/components/schemas/ErrorResponse_3' description: BAD_REQUEST '401': $ref: '#/components/responses/Unauthorized' '500': $ref: '#/components/responses/InternalError' summary: Обновление счета для списания клиента tags: - Agreement servers: - url: https://api.raiffeisen.ru/pay-control components: schemas: RestErrorCodes: description: '| code | description | |-----------------|--------------------------------------------| | REST_ERR_5001 | General service error | | REST_ERR_5040 | Tax is not available | | REST_ERR_5041 | Incorrect format of taxpayer status | | REST_ERR_5042 | Incorrect format of KPP payer''s | | REST_ERR_5043 | Incorrect format of UIN | | REST_ERR_5044 | Incorrect format of CBC | | REST_ERR_5045 | Incorrect format of OKTMO | | REST_ERR_5046 | Incorrect format of payment reason | | REST_ERR_5047 | Incorrect format of tax period | | REST_ERR_5048 | Incorrect format of the payment reason document number | | REST_ERR_5049 | Incorrect format of the payment reason document date | | REST_ERR_5050 | Incorrect format of receiver name | | REST_ERR_5051 | Incorrect format of purpose | ' enum: - REST_ERR_5001 - REST_ERR_5040 - REST_ERR_5041 - REST_ERR_5042 - REST_ERR_5043 - REST_ERR_5044 - REST_ERR_5045 - REST_ERR_5046 - REST_ERR_5047 - REST_ERR_5048 - REST_ERR_5049 - REST_ERR_5050 - REST_ERR_5051 example: REST_ERR_5001 type: string ErrorMessage: example: code: REST_ERR_5001 message: General service error traceId: 29bda8ca-4d33-11ec-81d3-0242ac130000 properties: code: $ref: '#/components/schemas/RestErrorCodes' message: description: Сообщение example: General service error type: string traceId: description: traceId example: 29bda8ca-4d33-11ec-81d3-0242ac130000 type: string required: - code - message - traceId type: object AccountForWithdrawalResponse: example: accounts: - id: 76b44414-8259-4a09-b4dd-dbe33e0a1729 agreementId: 76b44414-8259-4a09-b4dd-dbe33e0a1729 cbaNumber: '40916819105000006497' state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: ACTIVE cqrsVersion: -1628796591 properties: accounts: description: Счета example: - id: 76b44414-8259-4a09-b4dd-dbe33e0a1729 agreementId: 76b44414-8259-4a09-b4dd-dbe33e0a1729 cbaNumber: '40916819105000006497' state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: ACTIVE cqrsVersion: -1628796591 items: $ref: '#/components/schemas/Account' type: array type: object Principal: description: Принципал example: id: 2c44306f-fc96-4780-9b37-6447273b190e cnum: AA10AA shortNameRus: АО Ромашка fullNameRus: Акционерное общество Ромашка fullNameEng: Joint Stock Chamomile inn: '7744000302' ogrn: '1027739326449' kpp: '770401001' state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED cqrsVersion: -1628796591 properties: id: description: Идентификатор принципала example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string cnum: description: Клиентский номер (CNUM) example: AA10AA type: string shortNameRus: description: Сокращенное наименование организации example: АО Ромашка type: string fullNameRus: description: Полное наименование организации example: Акционерное общество Ромашка type: string fullNameEng: description: Полное наименование организации на англ. языке example: Joint Stock Chamomile type: string inn: description: ИНН example: '7744000302' type: string ogrn: description: ОГРН example: '1027739326449' type: string kpp: description: КПП example: '770401001' type: string state: allOf: - $ref: '#/components/schemas/PrincipalState' description: Состояние пакета type: object cqrsVersion: description: hashCode от state - состояния реестра example: -1628796591 type: integer required: - cnum - cqrsVersion - fullNameEng - fullNameRus - id - inn - kpp - ogrn - shortNameRus - state type: object ErrorResponse: description: Список ошибок example: - code: REST_ERR_5001 message: General service error traceId: 29bda8ca-4d33-11ec-81d3-0242ac130000 items: $ref: '#/components/schemas/ErrorMessage' type: array Error: example: code: ERR_1001 message: General service error properties: code: $ref: '#/components/schemas/ErrorCodes' message: description: Сообщение example: General service error type: string traceId: description: traceId example: 29bda8ca-4d33-11ec-81d3-0242ac130000 type: string required: - code - message type: object AgreementListResponse: description: Список агентских договоров example: - cqrsVersion: -1628796591 compensationPeriod: 100 taxCompensationPeriod: true nonAcceptanceWithdrawalFee: true endWorkingDayFeeInvoice: 10 maxCompensationPeriod: 200 bkiAcceptanceDate: '2025-01-01' isTaxAvailable: true principal: ogrn: '1027739326449' shortNameRus: АО Ромашка cqrsVersion: -1628796591 inn: '7744000302' kpp: '770401001' id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 state: statusDate: '2021-07-10T06:53:37.433111Z' errors: [] status: APPROVED fullNameEng: Joint Stock Chamomile cnum: AA10AA fullNameRus: Акционерное общество Ромашка isBkiAccepted: true number: АФ-1 autoprolongation: true startWorkingDayFeeInvoice: 5 nonAcceptanceWithdrawal: true id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 state: statusDate: '2021-07-10T06:53:37.433111Z' errors: [] status: APPROVED startDate: '2025-01-01' expirationDate: '2025-01-01' items: $ref: '#/components/schemas/Agreement' type: array AccountState: allOf: - $ref: '#/components/schemas/State' - properties: status: $ref: '#/components/schemas/AccountStatus' type: object description: Состояние счета example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: ACTIVE type: object AccountStatus: description: Статус счета enum: - ACTIVE - BLOCKED example: ACTIVE type: string Agreement: example: id: 2c44306f-fc96-4780-9b37-6447273b190e principal: id: 2c44306f-fc96-4780-9b37-6447273b190e cnum: AA10AA shortNameRus: АО Ромашка fullNameRus: Акционерное общество Ромашка fullNameEng: Joint Stock Chamomile inn: '7744000302' ogrn: '1027739326449' kpp: '770401001' state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED cqrsVersion: -1628796591 autoprolongation: true compensationPeriod: 100 maxCompensationPeriod: 200 number: АФ-1 startDate: '2025-01-01' expirationDate: '2025-01-01' startWorkingDayFeeInvoice: 5 endWorkingDayFeeInvoice: 10 nonAcceptanceWithdrawal: true nonAcceptanceWithdrawalFee: true isBkiAccepted: true bkiAcceptanceDate: '2025-01-01' isTaxAvailable: true taxCompensationPeriod: true state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED cqrsVersion: -1628796591 properties: id: description: Идентификатор договора example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string principal: $ref: '#/components/schemas/Principal' autoprolongation: description: Признак автопролонгации соглашения example: true type: boolean compensationPeriod: description: Срок компенсации example: 100 type: integer maxCompensationPeriod: description: Максимальный срок компенсации example: 200 type: integer number: description: Номер соглашения example: АФ-1 type: string startDate: description: Дата заключения соглашения example: '2025-01-01' format: date type: string expirationDate: description: Дата окончания соглашения example: '2025-01-01' format: date type: string startWorkingDayFeeInvoice: description: Первый день оплаты комиссий example: 5 type: integer endWorkingDayFeeInvoice: description: Последний день оплаты комиссий example: 10 type: integer nonAcceptanceWithdrawal: description: Согласие на безакцептное списание основного долга example: true type: boolean nonAcceptanceWithdrawalFee: description: Согласие на безакцептное списание долга по комиссиям example: true type: boolean isBkiAccepted: description: Согласие на проверку в БКИ example: true type: boolean bkiAcceptanceDate: description: Дата согласия на проверку в БКИ example: '2025-01-01' format: date type: string isTaxAvailable: description: Доступность отправки платежей в бюджет example: true type: boolean taxCompensationPeriod: description: Максимальный срок компенсации для платежей в бюджет example: true type: boolean state: allOf: - $ref: '#/components/schemas/AgreementState' description: Состояние договора type: object cqrsVersion: description: hashCode от state - состояния реестра example: -1628796591 type: integer required: - autoprolongation - compensationPeriod - cqrsVersion - endWorkingDayFeeInvoice - id - isBkiAccepted - isTaxAvailable - maxCompensationPeriod - nonAcceptanceWithdrawal - nonAcceptanceWithdrawalFee - number - startDate - startWorkingDayFeeInvoice - state type: object AgreementStatus: description: Статус договора enum: - APPROVED - INVALID example: APPROVED type: string AgreementState: allOf: - $ref: '#/components/schemas/State' - properties: status: $ref: '#/components/schemas/AgreementStatus' type: object description: Состояние договора example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED type: object ErrorCodes: description: '| code | description | |------------|------------------------------------| | ERR_0000 | Unexpected error | | ERR_0001 | Creditor not valid | | ERR_0002 | Error getting okved from DaData | | ERR_0003 | Affiliation check not valid | | ERR_0004 | Affiliation check nof found | | ERR_1001 | Requisites not valid | | ERR_1002 | Creditor not valid | | ERR_1003 | The financing period is longer than the maximum | | ERR_1004 | Exceeded daily limit | | ERR_1005 | Creditor not found | | ERR_1006 | Exceed maximum limit | | ERR_1007 | Date is not found in calendar | | ERR_1008 | Agreement not found | | ERR_1009 | Agreement not valid | | ERR_1010 | Agreement is blocked | | ERR_1011 | Order date invalid | | ERR_1012 | Maturity date invalid | | ERR_1013 | Limit not valid | | ERR_1014 | Due date is unavailable | | ERR_1015 | Tariff plan not found | | ERR_1016 | Order date is not working day | | ERR_1017 | Tariff plan not approved | | ERR_2000 | General service error | | ERR_4001 | Requisites not valid | | ERR_4002 | Payment rejected by operator | | ERR_4003 | Payment rejected by CBR | | ERR_6000 | Entry rejected by CIG | | ERR_9001 | Value date is over | | ERR_9002 | First financing date is over | | ERR_11001 | Minimum Margin check failed | | ERR_12001 | Account is blocked | ' enum: - ERR_0000 - ERR_0001 - ERR_0002 - ERR_0003 - ERR_0004 - ERR_1001 - ERR_1002 - ERR_1003 - ERR_1004 - ERR_1005 - ERR_1006 - ERR_1007 - ERR_1008 - ERR_1009 - ERR_1010 - ERR_1011 - ERR_1012 - ERR_1013 - ERR_1014 - ERR_1015 - ERR_1016 - ERR_1017 - ERR_2000 - ERR_4001 - ERR_4002 - ERR_4003 - ERR_6000 - ERR_9001 - ERR_9002 - ERR_11001 - ERR_12001 example: ERR_2000 type: string Account: example: id: 76b44414-8259-4a09-b4dd-dbe33e0a1729 agreementId: 76b44414-8259-4a09-b4dd-dbe33e0a1729 cbaNumber: '40916819105000006497' state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: ACTIVE cqrsVersion: -1628796591 properties: id: description: Идентификатор счета example: 76b44414-8259-4a09-b4dd-dbe33e0a1729 format: uuid type: string agreementId: description: Идентификатор договора example: 76b44414-8259-4a09-b4dd-dbe33e0a1729 format: uuid type: string cbaNumber: description: Номер счета списания по договору example: '40916819105000006497' maxLength: 20 minLength: 20 type: string balanceAmount: description: Баланс счета type: integer state: $ref: '#/components/schemas/AccountState' cqrsVersion: description: hashCode от state - состояния реестра example: -1628796591 type: integer required: - agreementId - cbaNumber - cqrsVersion - state type: object PrincipalState: allOf: - $ref: '#/components/schemas/State' - properties: status: $ref: '#/components/schemas/PrincipalStatus' type: object description: Состояние пакета example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED type: object PrincipalStatus: description: Статус принципала enum: - FETCHED - APPROVED - REJECTED example: APPROVED type: string State: description: Состояние объекта example: statusDate: '2025-07-10T06:53:37.433211' errors: [] properties: statusDate: description: yyyy-MM-dd'T'HH:mm:ss.SSSSSS format: date-time pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string errors: description: Ошибки items: $ref: '#/components/schemas/Error' type: array required: - statusDate type: object RestErrorCodes_2: description: '| code | description | |-----------------|------------------------------------------------------| | REST_ERROR_5001 | General service error | | REST_ERROR_5004 | Agreement does not exist | | REST_ERROR_5017 | DealConditions does not exist | | REST_ERROR_5024 | Action is available at working hour | | REST_ERROR_5025 | Supplies are not found | | REST_ERROR_5026 | Approved contract does not exist | | REST_ERROR_5027 | Supplies must be selected on only one deal condition | | REST_ERROR_5028 | Approved deal conditions do not exist | | REST_ERROR_5029 | Approved agreement does not exist | | REST_ERROR_5031 | Account for financing cannot be empty | | REST_ERROR_5032 | Data validation failed | | REST_ERROR_5033 | File is infected | | REST_ERROR_5034 | Invalid type of file | | REST_ERROR_5035 | File is empty | | REST_ERROR_5036 | Failed to read file | | REST_ERROR_5037 | Supplier are not found | | SELECTED_ORGANIZATION_REQUIRED | selectedCnum is required when several organizations are available | | SELECTED_ORGANIZATION_NOT_ALLOWED | selectedCnum is not included in allowed organizations | ' enum: - REST_ERROR_5001 - REST_ERROR_5004 - REST_ERROR_5017 - REST_ERROR_5024 - REST_ERROR_5025 - REST_ERROR_5026 - REST_ERROR_5027 - REST_ERROR_5028 - REST_ERROR_5029 - REST_ERROR_5031 - REST_ERROR_5032 - REST_ERROR_5033 - REST_ERROR_5034 - REST_ERROR_5035 - REST_ERROR_5036 - SELECTED_ORGANIZATION_REQUIRED - SELECTED_ORGANIZATION_NOT_ALLOWED example: REST_ERROR_5001 type: string ErrorMessage_2: properties: code: $ref: '#/components/schemas/RestErrorCodes_2' message: description: Сообщение example: General service error type: string required: - code - message type: object InternalAccountState: allOf: - $ref: '#/components/schemas/State_2' - properties: status: $ref: '#/components/schemas/InternalAccountStatus' required: - status type: object description: Состояние клиентского счета в Райффайзенбанке example: status: ACTIVE statusDate: '2025-10-15T12:13:11.512123' errors: [] cqrsVersion: -5471340216 type: object InternalAccountStatus: description: Статус клиентского счета в Райффайзенбанке enum: - ACTIVE - BLOCKED - CLOSED example: ACTIVE type: string ExternalAccount: description: Клиентский счет во внешнем банке example: id: dfbea6f1-309c-4c0e-815d-7d6527a234c8 cbaNumber: '40702978200000023058' bankFullNameRus: ОАО КБ "ЖИЛСТРОЙБАНК" isForFinancing: false state: status: ACTIVE statusDate: '2025-10-01T08:05:51.024123' errors: [] cqrsVersion: 1742767789 properties: id: description: Идентификатор клиентского счета во внешнем банке example: dfbea6f1-309c-4c0e-815d-7d6527a234c8 format: uuid type: string cbaNumber: description: ЦБ номер счета example: '40702978200000023058' maxLength: 20 minLength: 20 type: string bankFullNameRus: description: Полное именование внешнего банка на русском языке example: ПАО Сбербанк type: string isForFinancing: description: Признак того, что счет может быть выбран для финансирования example: true type: boolean state: allOf: - $ref: '#/components/schemas/ExternalAccountState' description: Состояние клиентского счета во внешнем банке type: object required: - bankFullNameRus - cbaNumber - id - isForFinancing - state type: object Agreement_2: description: Договор Факторинга example: id: ba705955-3e0f-4956-84e0-e12616e84e2b supplierId: 74f36f89-3e28-4291-896f-b76801238e89 number: ДФ-1234 startDate: '2025-05-01' feeInvoiceCompensationPeriod: 10 isNonAcceptanceWithdrawalFee: false internalAccounts: - id: 0a587aa4-bad9-47ea-beee-6e7775c879f0 cbaNumber: '40702810400000053038' isForFinancing: true state: status: ACTIVE statusDate: '2025-10-15T12:13:11.512123' errors: [] cqrsVersion: -5471340216 - id: 96f88f49-09d4-4580-bb84-1a327e89dd3b cbaNumber: '40701610400000053040' isForFinancing: true state: status: BLOCKED statusDate: '2025-10-10T17:51:01.256712' errors: [] cqrsVersion: -1237890432 externalAccounts: - id: dfbea6f1-309c-4c0e-815d-7d6527a234c8 cbaNumber: '40702978200000023058' bankFullNameRus: ОАО КБ "ЖИЛСТРОЙБАНК" isForFinancing: false state: status: ACTIVE statusDate: '2025-10-01T08:05:51.024123' errors: [] cqrsVersion: 1742767789 - id: b2d62049-c229-4849-9234-6c5d9e9d1e80 cbaNumber: '40702931700000023512' bankFullNameRus: АО "РОССЕЛЬХОЗБАНК" isForFinancing: true state: status: ACTIVE statusDate: '2025-09-25T14:31:20.0965678' errors: [] cqrsVersion: 6298231120 state: status: APPROVED statusDate: '2025-10-16T12:00:01.024991' errors: [] cqrsVersion: 1742767789 properties: id: description: Идентификатор договора Факторинга example: ba705955-3e0f-4956-84e0-e12616e84e2b format: uuid type: string supplierId: description: Идентификатор поставщика example: 74f36f89-3e28-4291-896f-b76801238e89 format: uuid type: string number: description: Номер договора Факторинга example: ДФ-1234 type: string startDate: description: Дата начала договора example: '2025-05-01' format: date type: string feeInvoiceCompensationPeriod: description: Срок для оплаты комиссий в рабочих днях example: 10 minimum: 0 type: integer isNonAcceptanceWithdrawalFee: description: Признак безакцептного списания комиссии example: false type: boolean internalAccounts: description: Клиентские счета в Райффайзенбанке items: $ref: '#/components/schemas/InternalAccount' minItems: 0 type: array externalAccounts: description: Клиентские счета во внешнем банке items: $ref: '#/components/schemas/ExternalAccount' minItems: 0 type: array state: allOf: - $ref: '#/components/schemas/AgreementState_2' description: Состояние договора Факторинга type: object required: - externalAccounts - feeInvoiceCompensationPeriod - id - internalAccounts - isNonAcceptanceWithdrawalFee - number - startDate - supplierId type: object AgreementStatus_2: description: Статус договора Факторинга enum: - IN_PROCESSING - APPROVED example: APPROVED type: string InternalAccount: description: Клиентский счет в Райффайзенбанке example: id: 0a587aa4-bad9-47ea-beee-6e7775c879f0 cbaNumber: '40702810400000053038' isForFinancing: true state: status: ACTIVE statusDate: '2025-10-15T12:13:11.512123' errors: [] cqrsVersion: -5471340216 properties: id: description: Идентификатор клиентского счета в Райффайзенбанке example: 0a587aa4-bad9-47ea-beee-6e7775c879f0 format: uuid type: string cbaNumber: description: ЦБ номер счета example: '40702810400000053038' maxLength: 20 minLength: 20 type: string isForFinancing: description: Признак того, что счет может быть выбран для финансирования example: true type: boolean state: allOf: - $ref: '#/components/schemas/InternalAccountState' description: Состояние клиентского счета в Райффайзенбанке type: object required: - cbaNumber - id - isForFinancing - state type: object AgreementState_2: allOf: - $ref: '#/components/schemas/State_2' - properties: status: $ref: '#/components/schemas/AgreementStatus_2' required: - status type: object description: Состояние договора Факторинга example: status: APPROVED statusDate: '2025-10-16T12:00:01.024991' errors: [] cqrsVersion: 1742767789 type: object ExternalAccountState: allOf: - $ref: '#/components/schemas/State_2' - properties: status: $ref: '#/components/schemas/ExternalAccountStatus' required: - status type: object description: Состояние клиентского счета во внешнем банке example: status: ACTIVE statusDate: '2025-09-25T14:31:20.0965678' errors: [] cqrsVersion: 6298231120 type: object ExternalAccountStatus: description: Статус клиентского счета во внешнем банке enum: - ACTIVE example: ACTIVE type: string State_2: description: Состояние объекта properties: statusDate: description: Дата последнего изменения состояния объекта yyyy-MM-dd'T'HH:mm:ss.SSSSSS format: date-time pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string errors: description: Список ошибок в объекте. Может быть пустым списком или null items: $ref: '#/components/schemas/ErrorMessage_2' type: array cqrsVersion: description: hashCode от statusDate, status и errors example: -1628796591 type: integer required: - cqrsVersion - statusDate type: object AgreementListResponse_2: allOf: - properties: agreements: description: Договоры items: $ref: '#/components/schemas/Agreement_2' type: array type: object example: agreements: - id: ba705955-3e0f-4956-84e0-e12616e84e2b supplierId: 74f36f89-3e28-4291-896f-b76801238e89 number: ДФ-1234 startDate: '2025-05-01' feeInvoiceCompensationPeriod: 10 isNonAcceptanceWithdrawalFee: false internalAccounts: - id: 0a587aa4-bad9-47ea-beee-6e7775c879f0 cbaNumber: '40702810400000053038' isForFinancing: true state: status: ACTIVE statusDate: '2025-10-15T12:13:11.512123' errors: [] cqrsVersion: -5471340216 - id: 96f88f49-09d4-4580-bb84-1a327e89dd3b cbaNumber: '40701610400000053040' isForFinancing: true state: status: BLOCKED statusDate: '2025-10-10T17:51:01.256712' errors: [] cqrsVersion: -1237890432 externalAccounts: - id: dfbea6f1-309c-4c0e-815d-7d6527a234c8 cbaNumber: '40702978200000023058' bankFullNameRus: ОАО КБ "ЖИЛСТРОЙБАНК" isForFinancing: false state: status: ACTIVE statusDate: '2025-10-01T08:05:51.024123' errors: [] cqrsVersion: 1742767789 - id: b2d62049-c229-4849-9234-6c5d9e9d1e80 cbaNumber: '40702931700000023512' bankFullNameRus: АО "РОССЕЛЬХОЗБАНК" isForFinancing: true state: status: ACTIVE statusDate: '2025-09-25T14:31:20.0965678' errors: [] cqrsVersion: 6298231120 state: status: APPROVED statusDate: '2025-10-16T12:00:01.024991' errors: [] cqrsVersion: 1742767789 - id: 52d76346-1aa1-4268-ae14-fb6d8e048305 supplierId: 74f36f89-3e28-4291-896f-b76801238e89 number: ДФ-9876 startDate: '2025-07-15' feeInvoiceCompensationPeriod: 20 isNonAcceptanceWithdrawalFee: true internalAccounts: - id: 05217cb1-8abe-4807-8843-5d54840aeed2 cbaNumber: '40702810400000053038' isForFinancing: true state: status: ACTIVE statusDate: '2025-10-15T12:13:11.512312' errors: [] cqrsVersion: -5471340216 - id: 93bf311e-ceb4-47ac-8e06-32d6ba64a297 cbaNumber: '40701610400000053040' isForFinancing: true state: status: BLOCKED statusDate: '2025-10-10T17:51:01.256453' errors: [] cqrsVersion: -1237890432 externalAccounts: - id: 02882c49-6b3d-4e34-a76c-648e2fead85a cbaNumber: '40702978200000023058' bankFullNameRus: ОАО КБ "ЖИЛСТРОЙБАНК" isForFinancing: false state: status: ACTIVE statusDate: '2025-10-01T08:05:51.024112' errors: [] cqrsVersion: 1742767789 - id: 83f89556-a9a0-4431-a5f5-56be6b414835 cbaNumber: '40702931700000023512' bankFullNameRus: АО "РОССЕЛЬХОЗБАНК" isForFinancing: true state: status: ACTIVE statusDate: '2025-09-25T14:31:20.096345' errors: [] cqrsVersion: 6298231120 state: status: APPROVED statusDate: '2025-10-16T12:00:01.024667' errors: [] cqrsVersion: 1742767789 type: object ErrorResponse_2: example: - code: REST_ERROR_5001 message: General service error items: $ref: '#/components/schemas/ErrorMessage_2' type: array CreditLineStatus: description: Статус кредитной линии enum: - LIVE - EXPIRY - DELETED - N_A example: LIVE type: string PercentRateType: enum: - FIXED - RUONIA_1M - RUONIA_3M - RUONIA_FLOOR - FLOATING - VARIABLE example: FIXED type: string CreditLineDtoResponse: example: - facilityId: AAABBB12345 cnumList: - AAABBB loanMaxPeriod: 12 percentRateType: - FIXED loanMaxPeriodType: MONTH status: LIVE agreement: id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 number: 12345-MSK startDate: '2020-01-01' lastAvailabilityDate: '2120-01-01' expiryDate: '2220-01-01' revolving: true segment: MIDDLE items: $ref: '#/components/schemas/CreditLineDto' type: array Segment: description: Сегмент клиента enum: - SMALL - MICRO - MIDDLE - LARGE example: MIDDLE type: string BaseErrorResponse: description: Данные об ошибке example: timestamp: '2000-01-23T04:56:07.000+00:00' message: Error message properties: timestamp: description: Дата и время возникновения ошибки example: '2000-01-23T04:56:07Z' format: date-time type: string message: description: Сообщение об ошибке example: Error message type: string type: object LoanMaxPeriodType: description: Период enum: - DAY - MONTH example: MONTH type: string Agreement_3: description: Данные по соглашению example: id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 number: 12345-MSK startDate: '2020-01-01' lastAvailabilityDate: '2120-01-01' expiryDate: '2220-01-01' revolving: true properties: id: description: Идентификатор соглашения example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 type: string number: description: Номер соглашения example: 12345-MSK type: string startDate: description: Дата старта соглашения example: '2020-01-01' format: date type: string lastAvailabilityDate: description: Дата окончания периода доступности example: '2120-01-01' format: date type: string expiryDate: description: Дата погашения соглашения example: '2220-01-01' format: date type: string revolving: description: Возобновляемость кредитной линии example: true type: boolean type: object CreditLineDto: description: Информация по кредитной линии example: facilityId: AAABBB12345 cnumList: - AAABBB loanMaxPeriod: 12 percentRateType: - FIXED loanMaxPeriodType: MONTH status: LIVE agreement: id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 number: 12345-MSK startDate: '2020-01-01' lastAvailabilityDate: '2120-01-01' expiryDate: '2220-01-01' revolving: true segment: MIDDLE properties: facilityId: description: Идентификатор фасилити example: AAABBB12345 type: string cnumList: description: Список клиентских номеров (список CNUM) example: - AAABBB - BBBAAA items: type: string type: array uniqueItems: true loanMaxPeriod: description: Период example: 12 type: number percentRateType: description: Типы ставки example: - FIXED items: $ref: '#/components/schemas/PercentRateType' type: array uniqueItems: true loanMaxPeriodType: $ref: '#/components/schemas/LoanMaxPeriodType' status: $ref: '#/components/schemas/CreditLineStatus' agreement: $ref: '#/components/schemas/Agreement_3' segment: $ref: '#/components/schemas/Segment' type: object RestErrorCodes_3: description: '| code | description | |-----------------|------------------------------------------------------------------| | REST_ERROR_5001 | General service error | | REST_ERROR_5002 | Current CQRS version is different | | REST_ERROR_0001 | inn not valid | | REST_ERROR_0002 | ogrn not valid | | REST_ERROR_0003 | okved not valid | | REST_ERROR_0004 | opf not valid | | REST_ERROR_0005 | fullNameRus not valid | | REST_ERROR_0006 | shortNameRus not valid | | REST_ERROR_0007 | fullNameEn not valid | | REST_ERROR_0008 | shortNameEn not valid | | REST_ERROR_0009 | address not valid | | REST_ERROR_0010 | you can`t use product | | REST_ERROR_0011 | buyer already exists | | REST_ERROR_0012 | can''t fetched buyer requisites from DaData | | REST_ERROR_0013 | can''t find data for buyer requisites | | REST_ERROR_0014 | client not valid | | REST_ERROR_0015 | agreement not valid | | REST_ERROR_0016 | buyer not valid | | REST_ERROR_0017 | condition with contract number and date already exists | | REST_ERROR_0018 | for the PRO tariff, at least one contact must be fully filled in | | REST_ERROR_0019 | for the PRO newTariff, payment period must be filled | | REST_ERROR_0020 | for the PRO newTariff, payment period must be less then max | | REST_ERROR_0021 | contract date must be after then current date | | REST_ERROR_0022 | agreement already exists for client | | REST_ERROR_0023 | condition with current contract number and date already exist | | REST_ERROR_1000 | Unexpected error. Call to support team - paycontrol.support@raiffeisen.ru. | | REST_ERROR_1001 | File contains viruses | | REST_ERROR_1002 | Incorrect file format | | REST_ERROR_1003 | Supplies number exceeds limit | | REST_ERROR_1004 | The file size exceeds 1 MB | | REST_ERROR_1005 | Invalid cell type (row %d, column %d) | | REST_ERROR_1006 | Incorrect number of columns, expected: %d, found: %d | | REST_ERROR_1007 | Invalid header, expected: %s, found: %s | | REST_ERROR_1008 | INN must contain 10 or 12 digits | | REST_ERROR_1009 | INN cannot be empty | | REST_ERROR_1010 | contract number cannot be empty | | REST_ERROR_1011 | contract date cannot be empty | | REST_ERROR_1012 | primary document number is empty | | REST_ERROR_1013 | primary document date is empty | | REST_ERROR_1014 | Supply sum cannot be empty | | REST_ERROR_1015 | Invalid KPP | | REST_ERROR_1016 | payment date is empty | | REST_ERROR_1017 | payment date is not found in calendar | | REST_ERROR_1018 | Supply already exists in file | | REST_ERROR_1019 | Date cannot be in the future: supply date | | REST_ERROR_1020 | Date cannot be in the future: additional document date | | REST_ERROR_1021 | File is empty | | REST_ERROR_2000 | Supply with this number/date already exists | | REST_ERROR_2001 | payment date must be later than contract date | | REST_ERROR_2002 | payment date must be later than the primary document date | | REST_ERROR_2003 | primary document date cannot be earlier than contract date | | REST_ERROR_2004 | additional document date cannot be earlier than contract date | | REST_ERROR_2005 | Supply amount cannot be less than payment amount | | REST_ERROR_3000 | Posting amount cannot be more than remaining amount | | REST_ERROR_3001 | Debt sum cannot be less than posting amount | | REST_ERROR_3002 | Supply already repaid | | REST_ERROR_4000 | Out payment order already exists for incoming payment | | REST_ERROR_4001 | Remaining amount must be equal zero | ' enum: - REST_ERROR_5001 - REST_ERROR_1000 - REST_ERROR_1001 - REST_ERROR_1002 - REST_ERROR_1003 - REST_ERROR_1004 - REST_ERROR_1005 - REST_ERROR_1006 - REST_ERROR_1007 - REST_ERROR_1008 - REST_ERROR_1009 - REST_ERROR_1010 - REST_ERROR_1011 - REST_ERROR_1012 - REST_ERROR_1013 - REST_ERROR_1014 - REST_ERROR_1015 - REST_ERROR_1016 - REST_ERROR_1017 - REST_ERROR_1018 - REST_ERROR_1019 - REST_ERROR_1020 - REST_ERROR_1021 - REST_ERROR_2000 - REST_ERROR_2001 - REST_ERROR_2002 - REST_ERROR_2003 - REST_ERROR_2004 - REST_ERROR_2005 example: REST_ERROR_5001 type: string ErrorMessage_3: properties: code: $ref: '#/components/schemas/RestErrorCodes_3' description: description: Сообщение example: General service error type: string traceId: description: traceId example: 29bda8ca-4d33-11ec-81d3-0242ac130000 type: string required: - code - description type: object Client: description: Клиент example: id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' contacts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' email: foobar@mail.ru state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED cqrsVersion: -1628796591 requisites: fullNameRus: Акционерное общество Ромашка shortNameRus: АО Ромашка fullNameEn: Joint-stock company Romashka shortNameEn: JSC Romashka inn: '1234567890' ogrn: '123456789012345' okved: '11.11' cnum: AAAAAA opf: OOO address: address state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED cqrsVersion: -1628796591 properties: id: description: Идентификатор клиента example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string createdAt: description: Дата и время создания example: '2025-07-10T06:53:37.433211' pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string contacts: description: Контакты example: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' email: foobar@mail.ru state: statusDate: '2021-07-10T06:53:37.433111' errors: [] status: CREATED cqrsVersion: -1628796591 items: $ref: '#/components/schemas/Contact' type: array requisites: $ref: '#/components/schemas/OrganizationRequisites' state: $ref: '#/components/schemas/ClientState' cqrsVersion: description: hashCode от state - состояния объекта example: -1628796591 type: integer required: - contacts - cqrsVersion - createdAt - id - requisites - state type: object ContactStatus: description: Статус контакта enum: - CREATED example: CREATED type: string ErrorResponse_3: example: - code: REST_ERROR_5001 description: General service error traceId: 29bda8ca-4d33-11ec-81d3-0242ac130000 items: $ref: '#/components/schemas/ErrorMessage_3' type: array PatchAccountRequest: description: Обновление счета для списания клиента example: cqrsVersion: -1628796591 accountNumber: '40916819105000006497' properties: accountNumber: description: Номер счета example: '40916819105000006497' type: string cqrsVersion: description: hashCode от state - состояния объекта example: -1628796591 type: integer required: - accountNumber - cqrsVersion type: object Error_2: properties: code: $ref: '#/components/schemas/ErrorCodes_2' description: description: Сообщение example: General service error type: string required: - code - description type: object AccountType: description: Тип счета enum: - FOR_WITHDRAWAL - PAY_CONTROL_PAYMENT example: FOR_WITHDRAWAL type: string Contact: description: Контакт properties: id: description: Идентификатор контакта example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string createdAt: description: Дата и время создания example: '2025-07-10T06:53:37.433211' pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string email: description: Email example: foobar@mail.ru format: email type: string state: $ref: '#/components/schemas/ContactState' cqrsVersion: description: hashCode от state - состояния объекта example: -1628796591 type: integer required: - cqrsVersion - createdAt - email - id - state type: object DigestResponse: description: Дайджест для подписи example: digest: 0JLQvtGCINGN0YLQviDQvdGD0LbQvdC+INC/0L7QtNC/0LjRgdCw0YLRjA== properties: digest: description: Контент для подписи в формате base64 example: 0JLQvtGCINGN0YLQviDQvdGD0LbQvdC+INC/0L7QtNC/0LjRgdCw0YLRjA== type: string type: object AccountState_2: allOf: - $ref: '#/components/schemas/State_3' - properties: status: $ref: '#/components/schemas/AccountStatus_2' description: Состояние счета example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED type: object OrganizationRequisites: description: Реквизиты организации example: ogrn: '123456789012345' fullNameRus: Акционерное общество Ромашка shortNameRus: АО Ромашка address: address opf: opf inn: '1234567890' kpp: '123456789' shortNameEn: АО Ромашка cnum: AAAAAA fullNameEn: Акционерное общество Ромашка okved: '11.11' properties: fullNameRus: description: Полное наименование example: Акционерное общество Ромашка type: string shortNameRus: description: Краткое наименование example: АО Ромашка type: string fullNameEn: description: Полное наименование на английском языке example: Акционерное общество Ромашка type: string shortNameEn: description: Краткое наименование на английском языке example: АО Ромашка type: string inn: description: ИНН example: '1234567890' maxLength: 12 minLength: 10 type: string ogrn: description: ОГРН example: '123456789012345' maxLength: 15 minLength: 13 type: string kpp: description: КПП example: '123456789' maxLength: 9 minLength: 9 type: string okved: description: ОКВЭД example: '11.11' type: string cnum: description: Клиентский номер example: AAAAAA maxLength: 6 minLength: 6 type: string opf: description: Организационно правовая форма example: OOO type: string address: description: Адрес example: address type: string required: - address - cnum - fullNameEn - fullNameRus - inn - ogrn - okved - opf - shortNameEn - shortNameRus type: object AccountStatus_2: description: Статус счета enum: - CREATED example: CREATED type: string ClientState: allOf: - $ref: '#/components/schemas/State_3' - properties: status: $ref: '#/components/schemas/ClientStatus' description: Состояние клиента example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED type: object ClientStatus: description: Статус клиента enum: - SENT_TO_CHECK - APPROVED - REJECTED type: string Agreement_4: description: Договор example: id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' client: id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' contacts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' email: foobar@mail.ru state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED cqrsVersion: -1628796591 requisites: fullNameRus: Акционерное общество Ромашка shortNameRus: АО Ромашка fullNameEn: Joint-stock company Romashka shortNameEn: JSC Romashka inn: '1234567890' ogrn: '123456789012345' okved: '11.11' cnum: AAAAAA opf: OOO address: address state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED cqrsVersion: -1628796591 accounts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' cbaNumber: '40916819105000006497' type: FOR_WITHDRAWAL state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED cqrsVersion: -1628796591 state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: DRAFT wasApproved: true cdcDocumentId: 2c44306f-fc96-4780-9b37-6447273b190e cqrsVersion: -1628796591 properties: id: description: Идентификатор договора example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string createdAt: description: Дата и время создания example: '2025-07-10T06:53:37.433211' pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string number: description: Номер договора example: КО-1 type: string client: $ref: '#/components/schemas/Client' accounts: description: Счета example: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' cbaNumber: '40916819105000006497' type: FOR_WITHDRAWAL state: statusDate: '2025-07-10T06:53:37.433111' errors: [] status: CREATED cqrsVersion: -1628796591 items: $ref: '#/components/schemas/Account_2' type: array state: $ref: '#/components/schemas/AgreementState_3' wasApproved: description: Признак, что ранее был подписан example: true type: boolean cdcDocumentId: description: Идентификатор документа в сервисе подписи example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string cqrsVersion: description: hashCode от state - состояния объекта example: -1628796591 type: integer required: - accounts - client - cqrsVersion - createdAt - id - state - wasApproved type: object AgreementStatus_3: description: Статус договора enum: - DRAFT - SENT_TO_SIGN - PARTLY_SIGNED - SENT_TO_OPEN_ACCOUNT - APPROVED example: DRAFT type: string AgreementState_3: allOf: - $ref: '#/components/schemas/State_3' - properties: status: $ref: '#/components/schemas/AgreementStatus_3' description: Состояние договора example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: DRAFT type: object ContactState: allOf: - $ref: '#/components/schemas/State_3' - properties: status: $ref: '#/components/schemas/ContactStatus' description: Состояние контакта example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED type: object ErrorCodes_2: description: '| code | description | |------------|--------------------------------------------------------------| | ERROR_2000 | General service error | | ERROR_2001 | Buyer not found | | ERROR_2002 | Condition not found | | ERROR_2003 | Duplicate supply | | ERROR_2004 | Payment date must be after then current date | | ERROR_2005 | Main document date must be after or equal then contract date | | ERROR_2006 | Buyer not valid | | ERROR_2007 | Additional document date must be after or equal then contract date | ' enum: - ERROR_2000 - ERROR_2001 - ERROR_2002 - ERROR_2003 - ERROR_2004 - ERROR_2005 - ERROR_2006 - ERROR_2007 example: ERROR_2000 type: string AgreementList: example: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' number: КО-1 client: id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' requisites: ogrn: '123456789012345' fullNameRus: Акционерное общество Ромашка shortNameRus: АО Ромашка address: address opf: opf inn: '1234567890' kpp: '123456789' shortNameEn: АО Ромашка cnum: AAAAAA fullNameEn: Акционерное общество Ромашка okved: '11.11' contacts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' email: foobar@mail.ru state: statusDate: '2021-07-10T06:53:37.433111' errors: [] status: CREATED cqrsVersion: -1628796591 state: statusDate: '2021-07-10T06:53:37.433111' errors: [] status: APPROVED cqrsVersion: -1628796591 accounts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' cbaNumber: '40916819105000006497' type: FOR_WITHDRAWAL state: statusDate: '2025-07-10T06:53:37.433111' errors: [] status: CREATED cqrsVersion: -1628796591 state: statusDate: '2025-07-10T06:53:37.433111' errors: [] status: DRAFT wasApproved: true cdcDocumentId: 2c44306f-fc96-4780-9b37-6447273b190e cqrsVersion: -1628796591 items: $ref: '#/components/schemas/Agreement_4' type: array Account_2: description: Счет properties: id: description: Идентификатор счета example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string createdAt: description: Дата и время создания example: '2025-07-10T06:53:37.433211' pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string cbaNumber: description: Номер счета example: '40916819105000006497' type: string type: $ref: '#/components/schemas/AccountType' state: $ref: '#/components/schemas/AccountState_2' cqrsVersion: description: hashCode от state - состояния объекта example: -1628796591 type: integer required: - cbaNumber - cqrsVersion - createdAt - id - state - type type: object State_3: description: Состояние объекта properties: statusDate: description: yyyy-MM-dd'T'HH:mm:ss.SSSSSS format: date-time pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string errors: description: Ошибки items: $ref: '#/components/schemas/Error_2' type: array required: - statusDate type: object RestErrorCodes_4: description: '| code | description | |-----------------|------------------------------------------------------| | REST_ERROR_5001 | General service error | | REST_ERROR_5004 | Agreement does not exist | | REST_ERROR_5017 | DealConditions does not exist | | REST_ERROR_5024 | Action is available at working hour | | REST_ERROR_5025 | Supplies are not found | | REST_ERROR_5026 | Approved contract does not exist | | REST_ERROR_5027 | Supplies must be selected on only one deal condition | | REST_ERROR_5028 | Approved deal conditions do not exist | | REST_ERROR_5029 | Approved agreement does not exist | | REST_ERROR_5031 | Account for financing cannot be empty | | REST_ERROR_5032 | Data validation failed | | REST_ERROR_5033 | File is infected | | REST_ERROR_5034 | Invalid type of file | | REST_ERROR_5035 | File is empty | | REST_ERROR_5036 | Failed to read file | | REST_ERROR_5037 | Supplier are not found | | SELECTED_ORGANIZATION_REQUIRED | selectedCnum is required when several organizations are available | | SELECTED_ORGANIZATION_NOT_ALLOWED | selectedCnum is not included in allowed organizations | ' enum: - REST_ERROR_5001 - REST_ERROR_5004 - REST_ERROR_5017 - REST_ERROR_5024 - REST_ERROR_5025 - REST_ERROR_5026 - REST_ERROR_5027 - REST_ERROR_5028 - REST_ERROR_5029 - REST_ERROR_5031 - REST_ERROR_5032 - REST_ERROR_5033 - REST_ERROR_5034 - REST_ERROR_5035 - REST_ERROR_5036 - SELECTED_ORGANIZATION_REQUIRED - SELECTED_ORGANIZATION_NOT_ALLOWED example: REST_ERROR_5001 type: string ErrorMessage_4: properties: code: $ref: '#/components/schemas/RestErrorCodes_4' message: description: Сообщение example: General service error type: string required: - code - message type: object InternalAccountState_2: allOf: - $ref: '#/components/schemas/State_4' - properties: status: $ref: '#/components/schemas/InternalAccountStatus' required: - status type: object description: Состояние клиентского счета в Райффайзенбанке example: status: ACTIVE statusDate: '2025-10-15T12:13:11.512123' errors: [] cqrsVersion: -5471340216 type: object Agreement_5: description: Договор Факторинга example: id: ba705955-3e0f-4956-84e0-e12616e84e2b supplierId: 74f36f89-3e28-4291-896f-b76801238e89 number: ДФ-1234 startDate: '2025-05-01' feeInvoiceCompensationPeriod: 10 isNonAcceptanceWithdrawalFee: false internalAccounts: - id: 0a587aa4-bad9-47ea-beee-6e7775c879f0 cbaNumber: '40702810400000053038' isForFinancing: true state: status: ACTIVE statusDate: '2025-10-15T12:13:11.512123' errors: [] cqrsVersion: -5471340216 - id: 96f88f49-09d4-4580-bb84-1a327e89dd3b cbaNumber: '40701610400000053040' isForFinancing: true state: status: BLOCKED statusDate: '2025-10-10T17:51:01.256712' errors: [] cqrsVersion: -1237890432 externalAccounts: - id: dfbea6f1-309c-4c0e-815d-7d6527a234c8 cbaNumber: '40702978200000023058' bankFullNameRus: ОАО КБ "ЖИЛСТРОЙБАНК" isForFinancing: false state: status: ACTIVE statusDate: '2025-10-01T08:05:51.024123' errors: [] cqrsVersion: 1742767789 - id: b2d62049-c229-4849-9234-6c5d9e9d1e80 cbaNumber: '40702931700000023512' bankFullNameRus: АО "РОССЕЛЬХОЗБАНК" isForFinancing: true state: status: ACTIVE statusDate: '2025-09-25T14:31:20.0965678' errors: [] cqrsVersion: 6298231120 state: status: APPROVED statusDate: '2025-10-16T12:00:01.024991' errors: [] cqrsVersion: 1742767789 properties: id: description: Идентификатор договора Факторинга example: ba705955-3e0f-4956-84e0-e12616e84e2b format: uuid type: string supplierId: description: Идентификатор поставщика example: 74f36f89-3e28-4291-896f-b76801238e89 format: uuid type: string number: description: Номер договора Факторинга example: ДФ-1234 type: string startDate: description: Дата начала договора example: '2025-05-01' format: date type: string feeInvoiceCompensationPeriod: description: Срок для оплаты комиссий в рабочих днях example: 10 minimum: 0 type: integer isNonAcceptanceWithdrawalFee: description: Признак безакцептного списания комиссии example: false type: boolean internalAccounts: description: Клиентские счета в Райффайзенбанке items: $ref: '#/components/schemas/InternalAccount' minItems: 0 type: array externalAccounts: description: Клиентские счета во внешнем банке items: $ref: '#/components/schemas/ExternalAccount' minItems: 0 type: array state: allOf: - $ref: '#/components/schemas/AgreementState_4' description: Состояние договора Факторинга type: object required: - externalAccounts - feeInvoiceCompensationPeriod - id - internalAccounts - isNonAcceptanceWithdrawalFee - number - startDate - supplierId type: object AgreementStatus_4: description: Статус договора Факторинга enum: - IN_PROCESSING - APPROVED example: APPROVED type: string AgreementState_4: allOf: - $ref: '#/components/schemas/State_4' - properties: status: $ref: '#/components/schemas/AgreementStatus_4' required: - status type: object description: Состояние договора Факторинга example: status: APPROVED statusDate: '2025-10-16T12:00:01.024991' errors: [] cqrsVersion: 1742767789 type: object ExternalAccountState_2: allOf: - $ref: '#/components/schemas/State_4' - properties: status: $ref: '#/components/schemas/ExternalAccountStatus' required: - status type: object description: Состояние клиентского счета во внешнем банке example: status: ACTIVE statusDate: '2025-09-25T14:31:20.0965678' errors: [] cqrsVersion: 6298231120 type: object State_4: description: Состояние объекта properties: statusDate: description: Дата последнего изменения состояния объекта yyyy-MM-dd'T'HH:mm:ss.SSSSSS format: date-time pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string errors: description: Список ошибок в объекте. Может быть пустым списком или null items: $ref: '#/components/schemas/ErrorMessage_4' type: array cqrsVersion: description: hashCode от statusDate, status и errors example: -1628796591 type: integer required: - cqrsVersion - statusDate type: object AgreementListResponse_3: allOf: - properties: agreements: description: Договоры items: $ref: '#/components/schemas/Agreement_5' type: array type: object example: agreements: - id: ba705955-3e0f-4956-84e0-e12616e84e2b supplierId: 74f36f89-3e28-4291-896f-b76801238e89 number: ДФ-1234 startDate: '2025-05-01' feeInvoiceCompensationPeriod: 10 isNonAcceptanceWithdrawalFee: false internalAccounts: - id: 0a587aa4-bad9-47ea-beee-6e7775c879f0 cbaNumber: '40702810400000053038' isForFinancing: true state: status: ACTIVE statusDate: '2025-10-15T12:13:11.512123' errors: [] cqrsVersion: -5471340216 - id: 96f88f49-09d4-4580-bb84-1a327e89dd3b cbaNumber: '40701610400000053040' isForFinancing: true state: status: BLOCKED statusDate: '2025-10-10T17:51:01.256712' errors: [] cqrsVersion: -1237890432 externalAccounts: - id: dfbea6f1-309c-4c0e-815d-7d6527a234c8 cbaNumber: '40702978200000023058' bankFullNameRus: ОАО КБ "ЖИЛСТРОЙБАНК" isForFinancing: false state: status: ACTIVE statusDate: '2025-10-01T08:05:51.024123' errors: [] cqrsVersion: 1742767789 - id: b2d62049-c229-4849-9234-6c5d9e9d1e80 cbaNumber: '40702931700000023512' bankFullNameRus: АО "РОССЕЛЬХОЗБАНК" isForFinancing: true state: status: ACTIVE statusDate: '2025-09-25T14:31:20.0965678' errors: [] cqrsVersion: 6298231120 state: status: APPROVED statusDate: '2025-10-16T12:00:01.024991' errors: [] cqrsVersion: 1742767789 - id: 52d76346-1aa1-4268-ae14-fb6d8e048305 supplierId: 74f36f89-3e28-4291-896f-b76801238e89 number: ДФ-9876 startDate: '2025-07-15' feeInvoiceCompensationPeriod: 20 isNonAcceptanceWithdrawalFee: true internalAccounts: - id: 05217cb1-8abe-4807-8843-5d54840aeed2 cbaNumber: '40702810400000053038' isForFinancing: true state: status: ACTIVE statusDate: '2025-10-15T12:13:11.512312' errors: [] cqrsVersion: -5471340216 - id: 93bf311e-ceb4-47ac-8e06-32d6ba64a297 cbaNumber: '40701610400000053040' isForFinancing: true state: status: BLOCKED statusDate: '2025-10-10T17:51:01.256453' errors: [] cqrsVersion: -1237890432 externalAccounts: - id: 02882c49-6b3d-4e34-a76c-648e2fead85a cbaNumber: '40702978200000023058' bankFullNameRus: ОАО КБ "ЖИЛСТРОЙБАНК" isForFinancing: false state: status: ACTIVE statusDate: '2025-10-01T08:05:51.024112' errors: [] cqrsVersion: 1742767789 - id: 83f89556-a9a0-4431-a5f5-56be6b414835 cbaNumber: '40702931700000023512' bankFullNameRus: АО "РОССЕЛЬХОЗБАНК" isForFinancing: true state: status: ACTIVE statusDate: '2025-09-25T14:31:20.096345' errors: [] cqrsVersion: 6298231120 state: status: APPROVED statusDate: '2025-10-16T12:00:01.024667' errors: [] cqrsVersion: 1742767789 type: object ErrorResponse_4: example: - code: REST_ERROR_5001 message: General service error items: $ref: '#/components/schemas/ErrorMessage_4' type: array Agreement_6: description: Данные по соглашению example: id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 number: 12345-MSK startDate: '2020-01-01' lastAvailabilityDate: '2120-01-01' expiryDate: '2220-01-01' revolving: true properties: id: description: Идентификатор соглашения example: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 type: string number: description: Номер соглашения example: 12345-MSK type: string startDate: description: Дата старта соглашения example: '2020-01-01' format: date type: string lastAvailabilityDate: description: Дата окончания периода доступности example: '2120-01-01' format: date type: string expiryDate: description: Дата погашения соглашения example: '2220-01-01' format: date type: string revolving: description: Возобновляемость кредитной линии example: true type: boolean type: object CreditLineDto_2: description: Информация по кредитной линии example: facilityId: AAABBB12345 cnumList: - AAABBB loanMaxPeriod: 12 percentRateType: - FIXED loanMaxPeriodType: MONTH status: LIVE agreement: id: bf1d1868-a98e-4ae5-976f-0c4e21e0d510 number: 12345-MSK startDate: '2020-01-01' lastAvailabilityDate: '2120-01-01' expiryDate: '2220-01-01' revolving: true segment: MIDDLE properties: facilityId: description: Идентификатор фасилити example: AAABBB12345 type: string cnumList: description: Список клиентских номеров (список CNUM) example: - AAABBB - BBBAAA items: type: string type: array uniqueItems: true loanMaxPeriod: description: Период example: 12 type: number percentRateType: description: Типы ставки example: - FIXED items: $ref: '#/components/schemas/PercentRateType' type: array uniqueItems: true loanMaxPeriodType: $ref: '#/components/schemas/LoanMaxPeriodType' status: $ref: '#/components/schemas/CreditLineStatus' agreement: $ref: '#/components/schemas/Agreement_6' segment: $ref: '#/components/schemas/Segment' type: object RestErrorCodes_5: description: '| code | description | |-----------------|------------------------------------------------------------------| | REST_ERROR_5001 | General service error | | REST_ERROR_5002 | Current CQRS version is different | | REST_ERROR_0001 | inn not valid | | REST_ERROR_0002 | ogrn not valid | | REST_ERROR_0003 | okved not valid | | REST_ERROR_0004 | opf not valid | | REST_ERROR_0005 | fullNameRus not valid | | REST_ERROR_0006 | shortNameRus not valid | | REST_ERROR_0007 | fullNameEn not valid | | REST_ERROR_0008 | shortNameEn not valid | | REST_ERROR_0009 | address not valid | | REST_ERROR_0010 | you can`t use product | | REST_ERROR_0011 | buyer already exists | | REST_ERROR_0012 | can''t fetched buyer requisites from DaData | | REST_ERROR_0013 | can''t find data for buyer requisites | | REST_ERROR_0014 | client not valid | | REST_ERROR_0015 | agreement not valid | | REST_ERROR_0016 | buyer not valid | | REST_ERROR_0017 | condition with contract number and date already exists | | REST_ERROR_0018 | for the PRO tariff, at least one contact must be fully filled in | | REST_ERROR_0019 | for the PRO newTariff, payment period must be filled | | REST_ERROR_0020 | for the PRO newTariff, payment period must be less then max | | REST_ERROR_0021 | contract date must be after then current date | | REST_ERROR_0022 | agreement already exists for client | | REST_ERROR_0023 | condition with current contract number and date already exist | | REST_ERROR_1000 | Unexpected error. Call to support team - paycontrol.support@raiffeisen.ru. | | REST_ERROR_1001 | File contains viruses | | REST_ERROR_1002 | Incorrect file format | | REST_ERROR_1003 | Supplies number exceeds limit | | REST_ERROR_1004 | The file size exceeds 1 MB | | REST_ERROR_1005 | Invalid cell type (row %d, column %d) | | REST_ERROR_1006 | Incorrect number of columns, expected: %d, found: %d | | REST_ERROR_1007 | Invalid header, expected: %s, found: %s | | REST_ERROR_1008 | INN must contain 10 or 12 digits | | REST_ERROR_1009 | INN cannot be empty | | REST_ERROR_1010 | contract number cannot be empty | | REST_ERROR_1011 | contract date cannot be empty | | REST_ERROR_1012 | primary document number is empty | | REST_ERROR_1013 | primary document date is empty | | REST_ERROR_1014 | Supply sum cannot be empty | | REST_ERROR_1015 | Invalid KPP | | REST_ERROR_1016 | payment date is empty | | REST_ERROR_1017 | payment date is not found in calendar | | REST_ERROR_1018 | Supply already exists in file | | REST_ERROR_1019 | Date cannot be in the future: supply date | | REST_ERROR_1020 | Date cannot be in the future: additional document date | | REST_ERROR_1021 | File is empty | | REST_ERROR_2000 | Supply with this number/date already exists | | REST_ERROR_2001 | payment date must be later than contract date | | REST_ERROR_2002 | payment date must be later than the primary document date | | REST_ERROR_2003 | primary document date cannot be earlier than contract date | | REST_ERROR_2004 | additional document date cannot be earlier than contract date | | REST_ERROR_2005 | Supply amount cannot be less than payment amount | | REST_ERROR_3000 | Posting amount cannot be more than remaining amount | | REST_ERROR_3001 | Debt sum cannot be less than posting amount | | REST_ERROR_3002 | Supply already repaid | | REST_ERROR_4000 | Out payment order already exists for incoming payment | | REST_ERROR_4001 | Remaining amount must be equal zero | ' enum: - REST_ERROR_5001 - REST_ERROR_1000 - REST_ERROR_1001 - REST_ERROR_1002 - REST_ERROR_1003 - REST_ERROR_1004 - REST_ERROR_1005 - REST_ERROR_1006 - REST_ERROR_1007 - REST_ERROR_1008 - REST_ERROR_1009 - REST_ERROR_1010 - REST_ERROR_1011 - REST_ERROR_1012 - REST_ERROR_1013 - REST_ERROR_1014 - REST_ERROR_1015 - REST_ERROR_1016 - REST_ERROR_1017 - REST_ERROR_1018 - REST_ERROR_1019 - REST_ERROR_1020 - REST_ERROR_1021 - REST_ERROR_2000 - REST_ERROR_2001 - REST_ERROR_2002 - REST_ERROR_2003 - REST_ERROR_2004 - REST_ERROR_2005 example: REST_ERROR_5001 type: string ErrorMessage_5: properties: code: $ref: '#/components/schemas/RestErrorCodes_5' description: description: Сообщение example: General service error type: string traceId: description: traceId example: 29bda8ca-4d33-11ec-81d3-0242ac130000 type: string required: - code - description type: object ErrorResponse_5: example: - code: REST_ERROR_5001 description: General service error traceId: 29bda8ca-4d33-11ec-81d3-0242ac130000 items: $ref: '#/components/schemas/ErrorMessage_5' type: array Error_3: properties: code: $ref: '#/components/schemas/ErrorCodes_3' description: description: Сообщение example: General service error type: string required: - code - description type: object AccountState_3: allOf: - $ref: '#/components/schemas/State_5' - properties: status: $ref: '#/components/schemas/AccountStatus_3' description: Состояние счета example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED type: object AccountStatus_3: description: Статус счета enum: - CREATED example: CREATED type: string ClientState_2: allOf: - $ref: '#/components/schemas/State_5' - properties: status: $ref: '#/components/schemas/ClientStatus' description: Состояние клиента example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED type: object Agreement_7: description: Договор example: id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' client: id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' contacts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' email: foobar@mail.ru state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED cqrsVersion: -1628796591 requisites: fullNameRus: Акционерное общество Ромашка shortNameRus: АО Ромашка fullNameEn: Joint-stock company Romashka shortNameEn: JSC Romashka inn: '1234567890' ogrn: '123456789012345' okved: '11.11' cnum: AAAAAA opf: OOO address: address state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: APPROVED cqrsVersion: -1628796591 accounts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' cbaNumber: '40916819105000006497' type: FOR_WITHDRAWAL state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED cqrsVersion: -1628796591 state: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: DRAFT wasApproved: true cdcDocumentId: 2c44306f-fc96-4780-9b37-6447273b190e cqrsVersion: -1628796591 properties: id: description: Идентификатор договора example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string createdAt: description: Дата и время создания example: '2025-07-10T06:53:37.433211' pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string number: description: Номер договора example: КО-1 type: string client: $ref: '#/components/schemas/Client' accounts: description: Счета example: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' cbaNumber: '40916819105000006497' type: FOR_WITHDRAWAL state: statusDate: '2025-07-10T06:53:37.433111' errors: [] status: CREATED cqrsVersion: -1628796591 items: $ref: '#/components/schemas/Account_3' type: array state: $ref: '#/components/schemas/AgreementState_5' wasApproved: description: Признак, что ранее был подписан example: true type: boolean cdcDocumentId: description: Идентификатор документа в сервисе подписи example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string cqrsVersion: description: hashCode от state - состояния объекта example: -1628796591 type: integer required: - accounts - client - cqrsVersion - createdAt - id - state - wasApproved type: object AgreementStatus_5: description: Статус договора enum: - DRAFT - SENT_TO_SIGN - PARTLY_SIGNED - SENT_TO_OPEN_ACCOUNT - APPROVED example: DRAFT type: string AgreementState_5: allOf: - $ref: '#/components/schemas/State_5' - properties: status: $ref: '#/components/schemas/AgreementStatus_5' description: Состояние договора example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: DRAFT type: object ContactState_2: allOf: - $ref: '#/components/schemas/State_5' - properties: status: $ref: '#/components/schemas/ContactStatus' description: Состояние контакта example: statusDate: '2025-07-10T06:53:37.433211' errors: [] status: CREATED type: object ErrorCodes_3: description: '| code | description | |------------|--------------------------------------------------------------| | ERROR_2000 | General service error | | ERROR_2001 | Buyer not found | | ERROR_2002 | Condition not found | | ERROR_2003 | Duplicate supply | | ERROR_2004 | Payment date must be after then current date | | ERROR_2005 | Main document date must be after or equal then contract date | | ERROR_2006 | Buyer not valid | | ERROR_2007 | Additional document date must be after or equal then contract date | ' enum: - ERROR_2000 - ERROR_2001 - ERROR_2002 - ERROR_2003 - ERROR_2004 - ERROR_2005 - ERROR_2006 - ERROR_2007 example: ERROR_2000 type: string AgreementList_2: example: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' number: КО-1 client: id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' requisites: ogrn: '123456789012345' fullNameRus: Акционерное общество Ромашка shortNameRus: АО Ромашка address: address opf: opf inn: '1234567890' kpp: '123456789' shortNameEn: АО Ромашка cnum: AAAAAA fullNameEn: Акционерное общество Ромашка okved: '11.11' contacts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' email: foobar@mail.ru state: statusDate: '2021-07-10T06:53:37.433111' errors: [] status: CREATED cqrsVersion: -1628796591 state: statusDate: '2021-07-10T06:53:37.433111' errors: [] status: APPROVED cqrsVersion: -1628796591 accounts: - id: 2c44306f-fc96-4780-9b37-6447273b190e createdAt: '2025-07-10T06:53:37.433211' cbaNumber: '40916819105000006497' type: FOR_WITHDRAWAL state: statusDate: '2025-07-10T06:53:37.433111' errors: [] status: CREATED cqrsVersion: -1628796591 state: statusDate: '2025-07-10T06:53:37.433111' errors: [] status: DRAFT wasApproved: true cdcDocumentId: 2c44306f-fc96-4780-9b37-6447273b190e cqrsVersion: -1628796591 items: $ref: '#/components/schemas/Agreement_7' type: array Account_3: description: Счет properties: id: description: Идентификатор счета example: 2c44306f-fc96-4780-9b37-6447273b190e format: uuid type: string createdAt: description: Дата и время создания example: '2025-07-10T06:53:37.433211' pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string cbaNumber: description: Номер счета example: '40916819105000006497' type: string type: $ref: '#/components/schemas/AccountType' state: $ref: '#/components/schemas/AccountState_3' cqrsVersion: description: hashCode от state - состояния объекта example: -1628796591 type: integer required: - cbaNumber - cqrsVersion - createdAt - id - state - type type: object State_5: description: Состояние объекта properties: statusDate: description: yyyy-MM-dd'T'HH:mm:ss.SSSSSS format: date-time pattern: ([0-9]{4})-(?:[0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{6}) type: string errors: description: Ошибки items: $ref: '#/components/schemas/Error_3' type: array required: - statusDate type: object parameters: AuthorizationHeader: name: Authorization in: header description: Токен доступа required: true schema: type: string format: byte example: Bearer QXV0aG9yaXphdGlvbiBIZWFkZXIgRm9yIFRlc3Rpbmc= IdTokenHeader: name: Id-Token in: header description: Идентификационный токен пользователя required: true schema: type: string format: byte example: SUQgVE9LRU4gRk9SIFRFU1RJTkc= responses: InternalError: description: Внутренняя ошибка Unauthorized: description: Аутентификация не пройдена x-refined-from: - raiffeisen-ru-agency-factoring-openapi.yml - raiffeisen-ru-factoring-openapi.yml - raiffeisen-ru-loans-openapi.yml - raiffeisen-ru-payment-control-openapi.yml - raiffeisen-ru-agency-factoring-openapi.yml - raiffeisen-ru-factoring-openapi.yml - raiffeisen-ru-loans-openapi.yml - raiffeisen-ru-payment-control-openapi.yml