{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/main/json-schema/raiffeisen-ru-order-response-schema.json", "title": "OrderResponse", "x-generated": "2026-10-09", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/raiffeisen-ru-agency-factoring-openapi.yml#/components/schemas/OrderResponse", "allOf": [ { "properties": { "id": { "description": "Идентификатор поручения", "format": "uuid", "type": "string" }, "referenceId": { "description": "Идентификатор поручения клиента, если поручение загружено через API", "type": "string" }, "creditorRequisites": { "$ref": "#/$defs/CreditorRequisites" }, "paymentRequisites": { "$ref": "#/$defs/PaymentRequisites" }, "taxRequisites": { "$ref": "#/$defs/TaxRequisites" }, "creditor": { "$ref": "#/$defs/CreditorResponse" }, "payment": { "$ref": "#/$defs/Payment" }, "packet": { "$ref": "#/$defs/PacketResponse" }, "orderType": { "$ref": "#/$defs/OrderType" }, "orderDate": { "description": "Дата поручения", "format": "date", "type": "string" }, "maturityDate": { "description": "Дата погашения", "format": "date", "type": "string" }, "executionDate": { "description": "Дата исполнения", "format": "date", "type": "string" }, "orderSum": { "description": "Сумма поручения", "type": "number" }, "debtSum": { "description": "Сумма задолженности по поручению", "type": "number" }, "currencyCode": { "$ref": "#/$defs/CurrencyCode" }, "state": { "$ref": "#/$defs/OrderState" }, "cqrsVersion": { "$ref": "#/$defs/CqrsVersion" } }, "required": [ "cqrsVersion", "creditorRequisites", "currencyCode", "debtSum", "id", "maturityDate", "orderDate", "orderSum", "orderType", "paymentRequisites", "referenceId", "state" ], "type": "object" } ], "$defs": { "CqrsVersion": { "description": "hashCode от state - состояния реестра", "type": "integer" }, "CreditorRequisites": { "description": "Реквизиты кредитора", "properties": { "fullNameRus": { "description": "Полное наименование кредитора", "type": "string" }, "inn": { "description": "ИНН кредитора", "maxLength": 12, "minLength": 10, "type": "string" }, "ogrn": { "description": "ОГРН кредитора", "maxLength": 15, "minLength": 13, "type": "string" }, "kpp": { "description": "КПП кредитора", "maxLength": 9, "minLength": 9, "type": "string" } }, "required": [ "fullNameRus", "inn", "ogrn" ], "type": "object" }, "CreditorResponse": { "allOf": [ { "$ref": "#/$defs/CreditorRequisites" }, { "properties": { "id": { "description": "Идентификатор кредитора", "format": "uuid", "type": "string" }, "state": { "$ref": "#/$defs/CreditorState" }, "cqrsVersion": { "$ref": "#/$defs/CqrsVersion" } }, "required": [ "cqrsVersion", "id", "state" ], "type": "object" } ], "description": "Кредитор" }, "CreditorState": { "allOf": [ { "$ref": "#/$defs/State" }, { "properties": { "status": { "$ref": "#/$defs/CreditorStatus" } }, "type": "object" } ], "description": "Состояние кредитора", "type": "object" }, "CreditorStatus": { "description": "Статус кредитора", "enum": [ "FETCHED", "SENT_TO_CHECK", "APPROVED", "REJECTED" ], "type": "string" }, "CurrencyCode": { "description": "Валюта платежа", "enum": [ "RUB" ], "type": "string" }, "Error": { "properties": { "code": { "$ref": "#/$defs/ErrorCodes" }, "message": { "description": "Сообщение", "type": "string" }, "traceId": { "description": "traceId", "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "ErrorCodes": { "description": "| code | description |\n|------------|------------------------------------|\n| ERR_0000 | Unexpected error |\n| ERR_0001 | Creditor not valid |\n| ERR_0002 | Error getting okved from DaData |\n| ERR_0003 | Affiliation check not valid |\n| ERR_0004 | Affiliation check nof found |\n| ERR_1001 | Requisites not valid |\n| ERR_1002 | Creditor not valid |\n| ERR_1003 | The financing period is longer than the maximum |\n| ERR_1004 | Exceeded daily limit |\n| ERR_1005 | Creditor not found |\n| ERR_1006 | Exceed maximum limit |\n| ERR_1007 | Date is not found in calendar |\n| ERR_1008 | Agreement not found |\n| ERR_1009 | Agreement not valid |\n| ERR_1010 | Agreement is blocked |\n| ERR_1011 | Order date invalid |\n| ERR_1012 | Maturity date invalid |\n| ERR_1013 | Limit not valid |\n| ERR_1014 | Due date is unavailable |\n| ERR_1015 | Tariff plan not found |\n| ERR_1016 | Order date is not working day |\n| ERR_1017 | Tariff plan not approved |\n| ERR_2000 | General service error |\n| ERR_4001 | Requisites not valid |\n| ERR_4002 | Payment rejected by operator |\n| ERR_4003 | Payment rejected by CBR |\n| ERR_6000 | Entry rejected by CIG |\n| ERR_9001 | Value date is over |\n| ERR_9002 | First financing date is over |\n| ERR_11001 | Minimum Margin check failed |\n| ERR_12001 | Account is blocked |\n", "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" ], "type": "string" }, "OrderState": { "allOf": [ { "$ref": "#/$defs/State" }, { "properties": { "status": { "$ref": "#/$defs/OrderStatus" } }, "type": "object" } ], "description": "Состояние поручения", "type": "object" }, "OrderStatus": { "description": "Статус поручения", "enum": [ "AWAITING_FUNDING", "REJECTED", "FINANCED", "REPAID", "PARTIALLY_REPAID", "FINANCED_OVERDUE", "REPAID_OVERDUE", "PARTIAL_REPAID_OVERDUE", "AWAITING_REPAY", "RETURNED" ], "type": "string" }, "OrderType": { "description": "Тип поручения. TAX - в налоговую, COMMON - контрагенту", "enum": [ "TAX", "COMMON" ], "type": "string" }, "PacketResponse": { "description": "Реестр поручений", "properties": { "id": { "description": "Идентификатор пакета", "format": "uuid", "type": "string" }, "referenceId": { "description": "Идентификатор реестра поручений клиента, если реестр загружен через API", "type": "string" }, "number": { "description": "Номер реестра поручений", "type": "string" }, "packetDate": { "description": "Дата реестра поручений", "format": "date", "type": "string" }, "financedDate": { "description": "Максимальный executionDate из исполненных поручений", "format": "date", "type": "string" }, "packetSum": { "description": "Сумма реестра", "type": "number" }, "ordersCount": { "description": "Количество поручений", "type": "integer" }, "financedSum": { "description": "Сумма финансирования", "type": "string" }, "state": { "allOf": [ { "$ref": "#/$defs/PacketState" } ], "description": "Состояние пакета", "type": "object" }, "cqrsVersion": { "description": "hashCode от state - состояния реестра", "type": "integer" } }, "required": [ "cqrsVersion", "id", "number", "packetDate", "referenceId", "state" ], "type": "object" }, "PacketState": { "allOf": [ { "$ref": "#/$defs/State" }, { "properties": { "status": { "$ref": "#/$defs/PacketStatus" } }, "type": "object" } ], "description": "Состояние пакета", "type": "object" }, "PacketStatus": { "description": "Статус реестра поручений", "enum": [ "SIGN_AWAITING", "SIGN_REJECTED", "DOCUMENT_IN_PROGRESS", "ACCEPTED_BY_BANK" ], "type": "string" }, "Payment": { "description": "Исходящий платеж", "properties": { "number": { "description": "Номер исходящего платежа", "type": "integer" }, "date": { "description": "Дата исходящего платежа", "type": "string" } }, "type": "object" }, "PaymentRequisites": { "description": "Платежные реквизиты", "properties": { "account": { "description": "Расчетный счет получателя", "type": "string" }, "correspondentAccount": { "description": "Корреспондентский счет получателя", "type": "string" }, "bic": { "description": "БИК банка получателя", "type": "string" }, "recipientBankName": { "description": "Наименование банка получателя", "type": "string" }, "purpose": { "description": "Назначение платежа", "type": "string" } }, "required": [ "account", "bic", "correspondentAccount", "purpose", "recipientBankName" ], "type": "object" }, "State": { "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": "#/$defs/Error" }, "type": "array" } }, "required": [ "statusDate" ], "type": "object" }, "TaxRequisites": { "description": "Налоговые реквизиты", "properties": { "taxPayerStatus": { "description": "Статус налогоплательщика", "type": "string" }, "kppPayer": { "description": "КПП плательщика", "type": "string" }, "uin": { "description": "УИН (уникальный идентификатор начислений)", "type": "string" }, "cbc": { "description": "КБК (код бюджетной классификации)", "type": "string" }, "oktmo": { "description": "ОКТМО (Общероссийский классификатор территорий муниципальных образований)", "type": "string" }, "paymentReason": { "description": "Основание платежа", "type": "string" }, "taxPeriod": { "description": "Налоговый период", "type": "string" }, "docNumberPaymentReason": { "description": "Номер документа основания платежа", "type": "string" }, "docDatePaymentReason": { "description": "Дата документа основания платежа", "type": "string" }, "receiverName": { "description": "Наименование получателя", "type": "string" } }, "type": "object" } } }