Система управления тарифами клиента
OpenAPI 1.0.0
Платформа для хранения и управления продуктовыми комиссиями и тарифами клиентов ЮЛ
Варианты
- Паблик
Операции API
GET /v1/client/{cnum}/tariff-plan/public/future — getFutureClientTariffPlanPublicProjectionsByCnum
Возвращает публичные проекции будущих тарифных планов клиента
{
"description": "Возвращает публичные проекции будущих тарифных планов клиента",
"operationId": "getFutureClientTariffPlanPublicProjectionsByCnum",
"parameters": [
{
"description": "Идентификатор клиента",
"in": "path",
"name": "cnum",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Номер страницы",
"in": "query",
"name": "page",
"required": false,
"schema": {
"default": 0,
"format": "int32",
"minimum": 0,
"type": "integer"
}
},
{
"description": "Размер страницы",
"in": "query",
"name": "size",
"required": false,
"schema": {
"default": 10,
"format": "int32",
"minimum": 1,
"type": "integer"
}
},
{
"$ref": "#/components/parameters/AuthorizationHeader"
},
{
"$ref": "#/components/parameters/IdTokenHeader"
}
],
"responses": {
"200": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/PageResponseFutureClientTariffPlanPublicView"
}
}
},
"description": "OK"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError4xx"
}
}
},
"description": "Bad Request"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"security": [
{
"RaifApiAuthorization": [],
"RaifApiIdToken": []
}
],
"servers": [
{
"url": "https://api.raiffeisen.ru/client-tariffs"
}
],
"summary": "getFutureClientTariffPlanPublicProjectionsByCnum",
"tags": [
"future-client-tariff-plan-controller"
]
}GET /v1/tariff-plan/client/{cnum}/documents/record — getTariffPlanDocumentByClient
Возвращает информацию о документе тарифного плана по коду клиента cnum
{
"description": "Возвращает информацию о документе тарифного плана по коду клиента cnum",
"operationId": "getTariffPlanDocumentByClient",
"parameters": [
{
"description": "Код клиента cnum",
"in": "path",
"name": "cnum",
"required": true,
"schema": {
"example": "Z53819",
"type": "string"
}
},
{
"$ref": "#/components/parameters/AuthorizationHeader"
},
{
"$ref": "#/components/parameters/IdTokenHeader"
}
],
"responses": {
"200": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/TariffPlanDocumentPublicView"
}
}
},
"description": "OK"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError4xx"
}
}
},
"description": "Bad Request"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"security": [
{
"RaifApiAuthorization": [],
"RaifApiIdToken": []
}
],
"servers": [
{
"url": "https://api.raiffeisen.ru/client-tariffs"
}
],
"summary": "getTariffPlanDocumentByClient",
"tags": [
"Tariff plan documents"
]
}GET /v1/tariff-plan/documents/download/record/{id} — downloadTariffPlanDocumentContent
Скачивание документа тарифного плана по его идентификатору. Возвращает файл (например, PDF) потоком с указанием MIME-типа, размера и названия файла в заголовках
{
"description": "Скачивание документа тарифного плана по его идентификатору. Возвращает файл (например, PDF) потоком с указанием MIME-типа, размера и названия файла в заголовках",
"operationId": "downloadTariffPlanDocumentContent",
"parameters": [
{
"description": "Уникальный идентификатор документа с тарифным планом",
"in": "path",
"name": "id",
"required": true,
"schema": {
"example": 1,
"format": "int64",
"type": "integer"
}
},
{
"$ref": "#/components/parameters/AuthorizationHeader"
},
{
"$ref": "#/components/parameters/IdTokenHeader"
}
],
"responses": {
"200": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/StreamingResponseBody"
}
}
},
"description": "OK"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError4xx"
}
}
},
"description": "Bad Request"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"security": [
{
"RaifApiAuthorization": [],
"RaifApiIdToken": []
}
],
"servers": [
{
"url": "https://api.raiffeisen.ru/client-tariffs"
}
],
"summary": "downloadTariffPlanDocumentContent",
"tags": [
"Tariff plan documents"
]
}GET /v1/tariff-plans/public/available/client/{cnum}/list — getClientAvailableTariffPlans
Возвращает доступные тарифные планы для клиента
{
"description": "Возвращает доступные тарифные планы для клиента",
"operationId": "getClientAvailableTariffPlans",
"parameters": [
{
"description": "Идентификатор клиента",
"in": "path",
"name": "cnum",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Номер страницы",
"in": "query",
"name": "page",
"required": false,
"schema": {
"default": 0,
"format": "int32",
"minimum": 0,
"type": "integer"
}
},
{
"description": "Размер страницы",
"in": "query",
"name": "size",
"required": false,
"schema": {
"default": 10,
"format": "int32",
"minimum": 1,
"type": "integer"
}
},
{
"$ref": "#/components/parameters/AuthorizationHeader"
},
{
"$ref": "#/components/parameters/IdTokenHeader"
}
],
"responses": {
"200": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/AvailableTariffPlansView"
}
}
},
"description": "OK"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError4xx"
}
}
},
"description": "Bad Request"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"security": [
{
"RaifApiAuthorization": [],
"RaifApiIdToken": []
}
],
"servers": [
{
"url": "https://api.raiffeisen.ru/client-tariffs"
}
],
"summary": "getClientAvailableTariffPlans",
"tags": [
"tariff-plan-controller"
]
}Схемы и примеры
{
"parameters": {
"AuthorizationHeader": {
"description": "Токен доступа",
"in": "header",
"name": "Authorization",
"required": true,
"schema": {
"example": "Bearer QXV0aG9yaXphdGlvbiBIZWFkZXIgRm9yIFRlc3Rpbmc=",
"format": "byte",
"type": "string"
}
},
"IdTokenHeader": {
"description": "Идентификационный токен пользователя",
"in": "header",
"name": "Id-Token",
"required": true,
"schema": {
"example": "SUQgVE9LRU4gRk9SIFRFU1RJTkc=",
"format": "byte",
"type": "string"
}
}
},
"responses": {
"InternalError": {
"description": "Внутренняя ошибка"
},
"Unauthorized": {
"description": "Аутентификация не пройдена"
}
},
"schemas": {
"ApiError4xx": {
"description": "Модель ошибки API",
"properties": {
"code": {
"description": "Код ошибки для обработки на клиенте",
"example": "oct.not-found",
"type": "string"
},
"data": {
"description": "Дополнительные данные об ошибке (например, список нарушенных полей валидации)",
"example": {
"key": "value"
},
"type": "object"
},
"message": {
"description": "Сообщение об ошибке",
"example": "Record not found",
"type": "string"
},
"status": {
"description": "HTTP-статус, соответствующий ошибке",
"enum": [
"400 BAD_REQUEST",
"401 UNAUTHORIZED",
"402 PAYMENT_REQUIRED",
"403 FORBIDDEN",
"404 NOT_FOUND",
"405 METHOD_NOT_ALLOWED",
"406 NOT_ACCEPTABLE",
"407 PROXY_AUTHENTICATION_REQUIRED",
"408 REQUEST_TIMEOUT",
"409 CONFLICT",
"410 GONE",
"411 LENGTH_REQUIRED",
"412 PRECONDITION_FAILED",
"413 CONTENT_TOO_LARGE",
"413 PAYLOAD_TOO_LARGE",
"414 URI_TOO_LONG",
"415 UNSUPPORTED_MEDIA_TYPE",
"416 REQUESTED_RANGE_NOT_SATISFIABLE",
"417 EXPECTATION_FAILED",
"418 I_AM_A_TEAPOT",
"421 MISDIRECTED_REQUEST",
"422 UNPROCESSABLE_CONTENT",
"422 UNPROCESSABLE_ENTITY",
"423 LOCKED",
"424 FAILED_DEPENDENCY",
"425 TOO_EARLY",
"426 UPGRADE_REQUIRED",
"428 PRECONDITION_REQUIRED",
"429 TOO_MANY_REQUESTS",
"431 REQUEST_HEADER_FIELDS_TOO_LARGE",
"451 UNAVAILABLE_FOR_LEGAL_REASONS"
],
"example": "400 BAD_REQUEST",
"type": "string"
},
"traceId": {
"description": "Идентификатор трассировки в распределенной системе",
"example": "cf9924bed9c41f689f97728a50dbc035",
"type": "string"
}
},
"required": [
"code"
],
"type": "object"
},
"AvailableTariffPlansView": {
"description": "Публичное представление тарифного плана",
"properties": {
"availableSince": {
"description": "Дата доступности",
"format": "date",
"type": "string"
},
"tariffPlans": {
"$ref": "#/components/schemas/PageResponseTariffPlanPublicDataView"
}
},
"required": [
"availableSince",
"tariffPlans"
],
"type": "object"
},
"FutureClientTariffPlanPublicView": {
"description": "Публичное представление будущего тарифного плана клиента",
"properties": {
"activateAt": {
"description": "Дата активации",
"format": "date-time",
"type": "string"
},
"client": {
"description": "Cnum клиента",
"type": "string"
},
"clientTariffPlanVersion": {
"description": "Версия тарифного плана клиента",
"type": "string"
},
"id": {
"description": "Уникальный идентификатор",
"format": "int64",
"type": "integer"
},
"servicePackage": {
"description": "Код сервисного пакета",
"type": "string"
},
"servicePackageName": {
"description": "Наименование сервисного пакета",
"type": "string"
},
"tariffPlan": {
"description": "Код тарифного плана",
"type": "string"
},
"tariffPlanDocumentId": {
"description": "Идентификатор документа тарифного плана",
"format": "int64",
"type": "integer"
},
"tariffPlanName": {
"description": "Наименование тарифного плана",
"type": "string"
},
"tariffPlanPublicName": {
"description": "Публичное наименование тарифного плана",
"type": "string"
}
},
"required": [
"activateAt",
"client",
"clientTariffPlanVersion",
"tariffPlan",
"tariffPlanName"
],
"type": "object"
},
"PageResponseFutureClientTariffPlanPublicView": {
"properties": {
"content": {
"items": {
"$ref": "#/components/schemas/FutureClientTariffPlanPublicView"
},
"type": "array"
},
"hasNext": {
"type": "boolean"
},
"hasPrevious": {
"type": "boolean"
},
"number": {
"format": "int32",
"type": "integer"
},
"size": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"PageResponseTariffPlanPublicDataView": {
"description": "Список тарифных планов",
"properties": {
"content": {
"items": {
"$ref": "#/components/schemas/TariffPlanPublicDataView"
},
"type": "array"
},
"hasNext": {
"type": "boolean"
},
"hasPrevious": {
"type": "boolean"
},
"number": {
"format": "int32",
"type": "integer"
},
"size": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"StreamingResponseBody": {
"type": "object"
},
"TariffPlanDocumentAttachmentPublicView": {
"description": "Метаданные файла с тарифным планом",
"properties": {
"name": {
"description": "Имя файла",
"example": "SPKG_tariff_plan.pdf",
"type": "string"
},
"size": {
"description": "Размер файла в байтах",
"example": 245761,
"format": "int64",
"type": "integer"
},
"type": {
"description": "Тип содержимого файла",
"enum": [
"PDF"
],
"example": "PDF",
"type": "string"
}
},
"required": [
"name",
"size",
"type"
],
"type": "object"
},
"TariffPlanDocumentPublicView": {
"description": "Информация о документе тарифного плана",
"properties": {
"attachment": {
"$ref": "#/components/schemas/TariffPlanDocumentAttachmentPublicView"
},
"id": {
"description": "Уникальный идентификатор документа",
"example": 1,
"format": "int64",
"type": "integer"
},
"name": {
"description": "Отображаемое название документа",
"example": "Тарифный план SPKG",
"type": "string"
},
"tariffPlan": {
"description": "Код тарифного плана",
"example": "SPKG",
"type": "string"
}
},
"required": [
"attachment",
"id",
"name",
"tariffPlan"
],
"type": "object"
},
"TariffPlanPublicDataView": {
"description": "Представление публичных данных тарифного плана",
"properties": {
"code": {
"description": "Код тарифного плана",
"type": "string"
},
"documentId": {
"description": "Идентификатор документа",
"format": "int64",
"type": "integer"
},
"publicName": {
"description": "Публичное наименование",
"type": "string"
}
},
"required": [
"code",
"documentId",
"publicName"
],
"type": "object"
}
},
"securitySchemes": {
"RaifApiAuthorization": {
"scheme": "bearer",
"type": "http"
},
"RaifApiIdToken": {
"in": "header",
"name": "Id-Token",
"type": "apiKey"
}
}
}