doc-as-code/docs/api/openapi.yaml
Акиньшин Дмитрий Сергеевич 3cc32969fb test
2025-11-28 08:53:01 +03:00

69 lines
2.3 KiB
YAML

openapi: 3.0.1
info:
title: mspa-preapprove-applications
version: 0.1.0
paths: {}
components:
schemas:
CreatePreapproveRequest:
type: object
description: Запрос на создание предодобренного предложения
required:
- offerId
- clientId
- startAt
- endAt
- productCode
- attributes
properties:
offerId:
type: integer
format: int64
description: Внутренний идентификатор в CM Ocean
example: 12345678
clientId:
type: integer
format: int64
description: Идентификатор клиента в РБО.
example: 266526931
startAt:
type: string
format: date-time
description: Дата начала действия предложения, ISO 8601.
example: 2026-01-01T13:00:00Z
endAt:
type: string
format: date-time
description: Дата окончания действия предложения, ISO 8601.
example: 2026-01-01T13:00:00Z
productCode:
type: string
description: Код продукта.
example: CASH_LOAN
attributes:
type: object
description: Параметры продукта в рамках предодобренного предложения
additionalProperties:
type: object
CreatePreapproveResponse:
description: Ответ на запрос создания предодобренного предложения
type: object
properties:
id:
type: string
format: uuid
description: Идентификатор предодобренного предложения
example: 6e2a330e-54cb-4b5d-96da-12413fa4dbf3
offerId:
type: integer
format: int64
description: Внутренний идентификатор в CM Ocean
example: 12345678
createAt:
type: string
format: date-time
description: Дата создания предодобренного предложения, ISO8601 в UTC, до секунд.
example: 2026-01-01T13:00:00Z