Download OpenAPI specification:
| unit required | string <uuid> Id единицы недвижимости (stock-service) |
| crm_deal_id | string <= 255 characters Id сделки BX24 |
| expiration_date | string <date-time> Дата окончания бронирования |
| comment | string <= 255 characters Комментарии к броне |
| responsible | string <uuid> Id ответственного менеджера |
{- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a"
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись успешно создана"
}required | object (FilterBookingsDto) |
required | object (PaginationDto) |
{- "filter": {
- "filters": [
- {
- "property": "id",
- "value": [
- "123e4567-e89b-12d3-a456-426614174000"
], - "operator": "IN"
}
], - "include_expired": false
}, - "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "unit_data": {
- "base_price": 1000.1,
- "base_price_id": "51180944-8faf-48d4-8523-8f2aa33873be",
- "code": "string"
}, - "number": 0,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "booking_group": "23cd4ff5-91a4-4dd9-921c-fdb97d361b0d",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a",
- "region": "ac2f330e-0351-4cac-b9d3-953e54b3d1f8",
- "status": "BOOKING_STATUS_BOOKED",
- "unit_status": "UNIT_STATUS_AVAILABLE"
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}| id required | string <uuid> Первичный ключ, идентификатор записи |
| active | boolean Активность |
| crm_deal_id | string <= 255 characters Id сделки BX24 |
| expiration_date | string <date-time> Дата окончания бронирования |
| comment | string <= 255 characters Комментарии к броне |
| responsible | string <uuid> Id ответственного менеджера |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a"
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись обновлена"
}required | object (FilterSearchBookingsDto) |
required | object (PaginationDto) |
{- "filter": {
- "query": "string",
- "responsible": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "region": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "expiration_date_from": "2019-08-24T14:15:22Z",
- "expiration_date_to": "2019-08-24T14:15:22Z",
- "include_expired": false
}, - "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "unit_data": {
- "base_price": 1000.1,
- "base_price_id": "51180944-8faf-48d4-8523-8f2aa33873be",
- "code": "string"
}, - "number": 0,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "booking_group": "23cd4ff5-91a4-4dd9-921c-fdb97d361b0d",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a",
- "region": "ac2f330e-0351-4cac-b9d3-953e54b3d1f8",
- "status": "BOOKING_STATUS_BOOKED",
- "unit_status": "UNIT_STATUS_AVAILABLE"
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}| unit required | string <uuid> Id юнита (stock-service). |
| status required | string (UnitResultStatusEnum) Enum: "UNIT_STATUS_AVAILABLE" "UNIT_STATUS_BOOKED" "UNIT_STATUS_WAIT_PAYMENT" "UNIT_STATUS_PAID" "UNIT_STATUS_SOLD" "UNIT_STATUS_RENT" "UNIT_STATUS_UNAVAILABLE" "UNIT_STATUS_EXECUTION" "UNIT_STATUS_TRADE_IN" Итоговый статус юнита |
object (SecondStatusDto) |
{- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "status": "UNIT_STATUS_AVAILABLE",
- "second_status": {
- "add": [
- "UNIT_SECOND_STATUS_FOR_RENT"
], - "remove": [
- "UNIT_SECOND_STATUS_FOR_RENT"
]
}
}{- "message": "Успешно"
}| name required | string <= 255 characters Название группы броней |
| bookings required | Array of strings <uuid> [ items <uuid > ] Массив идентификаторов броней группы |
{- "name": "string",
- "bookings": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись успешно создана"
}required | object (FilterBookingGroupsDto) |
required | object (PaginationDto) |
{- "filter": {
- "filters": [
- {
- "property": "id",
- "value": [
- "123e4567-e89b-12d3-a456-426614174000"
], - "operator": "IN"
}
]
}, - "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "name": "string",
- "bookings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "unit_data": {
- "base_price": 1000.1,
- "base_price_id": "51180944-8faf-48d4-8523-8f2aa33873be",
- "code": "string"
}, - "number": 0,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "booking_group": "23cd4ff5-91a4-4dd9-921c-fdb97d361b0d",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a",
- "region": "ac2f330e-0351-4cac-b9d3-953e54b3d1f8",
- "status": "BOOKING_STATUS_BOOKED",
- "unit_status": "UNIT_STATUS_AVAILABLE"
}
]
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}| id required | string <uuid> Первичный ключ, идентификатор записи |
| active | boolean Активность |
| name | string <= 255 characters Название группы броней |
| bookings | Array of strings <uuid> [ items <uuid > ] Массив идентификаторов броней группы |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "name": "string",
- "bookings": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись обновлена"
}required | object (FilterBookingHistoryDto) |
required | object (PaginationDto) |
{- "filter": {
- "bookings": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "date_from": "2019-08-24T14:15:22Z",
- "date_to": "2019-08-24T14:15:22Z",
- "user": "76f62a58-5404-486d-9afc-07bded328704",
- "properties": [
- "string"
], - "include_expired": false,
- "include_system": false
}, - "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "date": "2019-08-24T14:15:22Z",
- "entity_type": "Booking",
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "property": "string",
- "old_value": null,
- "new_value": null,
- "user": "76f62a58-5404-486d-9afc-07bded328704"
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}Создаёт подписанную ссылку на страницу оплаты платной брони. Если по брони уже была активная ссылка, она гасится, и возвращается новая. Срок действия ссылки равен сроку действия брони (exp_date). Ссылка едина для всех каналов (сайт застройщика, SMS, мессенджеры, письма, CRM).
| booking required | string <uuid> Идентификатор брони, на оплату которой выпускается ссылка |
{- "booking": "4f77532b-f94f-4b4b-8113-25c90d5b5e8d"
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись успешно создана"
}Используется в т.ч. для получения конкретной ссылки по её id, известному вызывающему (например, сразу после создания): filters: [{ property: "id", operator: "IN", value: [id] }].
required | object (FilterPaymentLinksDto) |
required | object (PaginationDto) |
{- "filter": {
- "filters": [
- {
- "property": "id",
- "value": [
- "123e4567-e89b-12d3-a456-426614174000"
], - "operator": "IN"
}
]
}, - "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "booking": "4f77532b-f94f-4b4b-8113-25c90d5b5e8d",
- "url": "string",
- "short_url": "string",
- "exp_date": "2019-08-24T14:15:22Z",
- "opened_at": "2019-08-24T14:15:22Z",
- "revoked_at": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}Оффлайн-подтверждение оплаты брони сотрудником из админки. Регистрирует успешный платёж с provider = MANUAL и переводит бронь в статус PAID (срок брони продлевается на paid_period_days рабочих дней). Кто провёл подтверждение берётся из Bearer-токена.
| booking required | string <uuid> Идентификатор брони, оплата которой подтверждается |
| order | string or null <uuid> Идентификатор заявки CRM (Order), если известен вызывающему |
{- "booking": "4f77532b-f94f-4b4b-8113-25c90d5b5e8d",
- "order": "93b532b3-a125-4cd2-9b71-9996b1e164ce"
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись успешно создана"
}