Получение размещений с минимальной ценой
Получение списка доступных для бронирования вариантов размещения с минимальной ценой по указанным фильтрам
1. Получение списка размещений
Запрос:
POST /api/search/v1/properties/room-stays/search HTTP/1.1
Host: partner.tlintegration.com
Authorization: Bearer {{access_token}}
{
"propertyIds": ["30914", "6639", "29999", "8304", "21827"],
"adults": 1,
"childAges": [],
"include": "",
"arrivalDate": "2025-08-21",
"departureDate": "2025-08-22",
"mealPreference": { "mealType": "All" },
"pricePreference": { "currencyCode": "RUB", "minPrice": 0, "maxPrice": 15000 },
"corporateIds": []
}
Ответ:
{
"roomStays": [
{
"fullPlacementsName": "1 взрослый на основном месте.",
"propertyId": "30914",
"roomType": {
"placements": [
{
"code": "AdultBed-1",
"count": 1,
"kind": "Adult",
"minAge": null,
"maxAge": null
}
],
"id": "359453"
},
"ratePlan": {
"id": "367840",
"corporateIds": null
},
"currencyCode": "RUB",
"total": {
"priceBeforeTax": 10000,
"taxAmount": 0,
"taxes": []
},
"includedServices": [],
"mealPlanCode": "RoomOnly",
"bookingFormLink": null
},
{
"fullPlacementsName": "1 взрослый на основном месте.",
"propertyId": "6639",
"roomType": {
"placements": [
{
"code": "AdultBed-1",
"count": 1,
"kind": "Adult",
"minAge": null,
"maxAge": null
}
],
"id": "380307"
},
"ratePlan": {
"id": "435264",
"corporateIds": null
},
"currencyCode": "RUB",
"total": {
"priceBeforeTax": 3000,
"taxAmount": 0,
"taxes": []
},
"includedServices": [],
"mealPlanCode": "RoomOnly",
"bookingFormLink": null
},
{ ... }
],
"warnings": []
}