request_id (string, required): A unique identifier for the request.{
"request_id": "{{request_uid}}"
}
status (string): The status of the response.next_token (string): Token for fetching the next set of results.request_id (string): The unique identifier for the request.offers (object): Contains the offers for available flights.Amadeus_test (object): Details of the offers from Amadeus.offers (array): Array of flight offers.buy_id (string): Identifier for purchasing the flight.legs (array): Array of flight legs.stops (number): Number of stops in the flight.dirNumber (number): Direction number.pccId (number): PCC (Passenger Control Center) ID.ow_offers (array): Array of one-way flight offers.travel_policy_id (string): Identifier for travel policy.is_schedule (boolean): Indicates if the response is for a schedule.currency (string): The currency used for the offers.{
"status": "",
"next_token": "",
"request_id": "",
"offers": {
"Amadeus_test": {
"offers": [
{
"buy_id": "",
"legs": [
{
"stops": 0,
"dirNumber": 0,
"pccId": 0,
...
}
]
}
]
}
},
"ow_offers": [],
"travel_policy_id": "",
"is_schedule": true,
"currency": ""
}
curl --location -g --request POST 'https://stage-api.etm-system.ru/api/air/schedule' \
--header 'Accept: application/json' \
--header 'Cookie: etmsessid=8Pwz9vY4oXUDj7ojfR5u1VdXsMW6xOVYosNxo08d' \
--header 'Content-Type: application/json' \
--data-raw '{
"request_id": "" // take it value from /api/air/search
}'{
"status": "Ready",
"next_token": "eyJpdiI6IktXLzY0WE5mY21DL3lTeWhXenZ6bnc9PSIsInZhbHVlIjoiUFlwdGFZeC9SdGsrNi9MK2ErU2tERnNraXpCbzRDcGlSOTBPQzFETDl0aG92eTF2NGRuUTNkL1ZNemtLMDBabTgxYzE5VmYyaUd3dXh6NW5ZTVQ5QVE9PSIsIm1hYyI6IjU4ZGE1NDZlZWM0OWE2NTdhOTg5ODBiNWNmZWE4ZThjOGIxNmQxZmU5MTg5MTlmNDYzN2MzYTZmOGE5ZGYyZjAiLCJ0YWciOiIifQ==",
"request_id": "e8418c93-021d-4736-9581-d49973a7cf60",
"offers": {
"Amadeus_test": {
"offers": [
{
"buy_id": "request_e8418c93-021d-4736-9581-d49973a7cf60_34de2707-49e5-4867-874c-33acd99e5392_438",
"legs": [
{
"stops": 1,
"dirNumber": 1,
"pccId": 1429,
"pccCountry": "DE",
"pccName": "Amadeus_test",
"providerConsolidatorId": 37594,
"consolidatorMarker": null,
"consolidatorMarkerColor": null,
"pccOffice": "NUEL121QD (BSP)",
"gds": "Amadeus",
"gds_type": "Amadeus",
"flightMarketing": "A3",
"flight": "831",
"flightNumber": "A3-831",
"flightCarrier": "Aegean Air",
"flightCarrierCode": "A3",
"depAirport": "FRA",
"depCity": "Франкфурт-на-Майне",
"depTime": "11 Ноя 11:15",
"dep_date": "2024-11-11",
"dep_time": "11:15:00",
"depTimestamp": 1731323700,
"duration": "7 ч 40 мин",
"duration_minutes": 460,
"durationFloat": 7.67,
"depTimeLeft": 333,
"arrAirport": "LHR",
"arrCity": "Лондон",
"arrTime": "11 Ноя 17:55",
"arr_date": "2024-11-11",
"arr_time": "17:55:00",
"arrTimestamp": 1731347700,
"segments": [
{
"date": "2024-11-11",
"formatDate": "11.11.2024",
"depCountry": "DE",
"depCity": "Франкфурт-на-Майне",
"depAirport": "FRA",
"depLocalTime": "11:15",
"depTimezone": "GMT+01:00",
"depTime": "11:15 GMT+01:00",
"arrCountry": "GR",
"arrCity": "Афины",
"arrAirport": "ATH",
"arrTerminal": "",
"arrDate": "2024-11-11",
"arrLocalTime": "15:05",
"arrTimezone": "GMT+02:00",
"arrTime": "15:05 GMT+02:00",
"flightNumber": "A3-831",
"flightTime": "2 ч 50 мин",
"flightTimeMinutes": 170,
"operatingAirline": "A3",
"operatingAirlineName": "Aegean Air",
"operatingAirlineLogo": "https://stage-tatyana.etm-system.ru/images/airline/A3.svg",
"marketingAirline": "A3",
"marketingAirlineName": "Aegean Air",
"marketingAirlineLogo": "https://stage-tatyana.etm-system.ru/images/airline/A3.svg",
"airplane": "32N",
"ifs": false,
"scheduleClass": null,
"stopTime": "0 ч 55 мин",
"stopTimeMinutes": 55
},
{
"date": "2024-11-11",
"formatDate": "11.11.2024",
"depCountry": "GR",
"depCity": "Афины",
"depAirport": "ATH",
"depLocalTime": "16:00",
"depTimezone": "GMT+02:00",
"depTime": "16:00 GMT+02:00",
"arrCountry": "GB",