directions
(array of objects) - Specifies the departure and arrival details for the travel.departure_code
(string) - The code of the departure location.class
(string) - The class of travel.fare_types
(array of strings) - The types of fares.adult_qnt
(number) - The quantity of adult passengers.child_qnt
(number) - The quantity of child passengers.infant_qnt
(number) - The quantity of infant passengers.{
"type": "object",
"properties": {
"status": { "type": "string" },
"message": { "type": "string" },
"request_id": { "type": "string" },
"old_request_id": { "type": ["string", "null"] },
"travel_policy_id": { "type": ["string", "null"] },
"one_order_id": { "type": "number" },
"show_mode": { "type": "string" },
"currency": { "type": "string" },
"available_currencies": { "type": "array", "items": { "type": "string" } },
"is_round": { "type": "boolean" },
"is_multy": { "type": "boolean" },
"group_avia_offers": { "type": "boolean" },
"is_groups": { "type": "number" }
}
}
curl --location -g --request POST 'https://stage-api.etm-system.ru/api/air/search' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Cookie: etmsessid=8Pwz9vY4oXUDj7ojfR5u1VdXsMW6xOVYosNxo08d' \
--header 'Content-Type: text/plain' \
--data-raw '{
"directions": [
{
"departure_code": "TAS",
"arrival_code": "LON",
"date": "{{dateFrom}}" // format YYYY-MM-DD
},
{
"departure_code": "LON",
"arrival_code": "TAS",
"date": "{{dateTo}}" // format YYYY-MM-DD
}
],
"providers": [
1429 // provider id, optional
],
"class": "E",
"fare_types": [
"PUB",
"NEG"
],
"adult_qnt": 1,
"child_qnt": 0,
"infant_qnt": 0,
"airlines": [
"HY" // optional param
]
}'
{
"status": "ok",
"message": "",
"request_id": "3378fb18-046a-4e68-b850-67c9aa4e45b6",
"old_request_id": null,
"travel_policy_id": null,
"one_order_id": 0,
"show_mode": "classic",
"currency": "EUR",
"available_currencies": [
"AMD",
"EUR",
"RUB",
"KZT",
"KRW"
],
"is_round": true,
"is_multy": false,
"group_avia_offers": false,
"is_groups": 0
}