ETS API
  1. AVIA
ETS API
  • Try it and Run in ApiDog
  • AVIA API
  • AVIA Flows example
  • HOTELS API
  • AVIA
    • 1 REQ B2B Login
      POST
    • 1 REQ B2B Login Token
      POST
    • 1 REQ B2C Login
      GET
    • 2A Search Direct flight
      POST
    • 2B Search Connecting flight
      POST
    • 2C Search Round trip
      POST
    • 3 Schedule - Amadeus optional
      POST
    • 4 Offers request
      GET
    • 4B Smart Offer Request optional
      GET
    • 5 Documents types for offer
      GET
    • 6 Offer info UPD LATER
      GET
    • 7 Availability of Offer
      GET
    • 8 OPT Available Services
      GET
    • 9 OPT Select services
      POST
    • 10 Create Order
      POST
    • 11 Split Order
      PATCH
    • 12 Order payment
      POST
    • 13 Сheckout status
      GET
    • 14 Refund order
      GET
    • 15 Get order info
      GET
    • 16 Print E-Tiket
      GET
    • 17 Receiving a cancellation fee
      GET
    • 18 Cancel Order
      GET
    • 19 Get airports
      GET
    • 20 Get cities
      GET
    • 21 Get countries
      GET
  • HOTELS
    • REQUIRED
      • 1 REQ B2B Login
      • 1 REQ B2C Login
      • 2 REQ Destination
      • 2 REQ Search
      • 3 REQ Receiving found hotels
      • 4 REQ Getting a Hotel Offer
      • 5 REQ Create order
      • 6 REQ Cancel order
    • OPTIONAL
      • 1 REQ B2B Login
      • 1 REQ B2C Login
      • 2 REQ Search
      • 3 OPT Destination point info
      • 4 OPT List of popular destinations Copy
      • 5 OPT List of filtered destinations
      • 6 OPT Group guide
      • 7 OPT Getting information on possible hotels
      • 8 OPT Getting the list of currencies
      • 9 REQ Receiving found hotels
      • 10 REQ Getting a Hotel Offer
      • 11 OPT Cancel-policies
      • 12 OPT Account number and info
      • 13 OPT Receiving information on the hotel offer
      • 14 OPT Receive detailed information about the cost of an offer
      • 15 REQ Create order
      • 16 OPT Receive hotel services
  1. AVIA

3 Schedule - Amadeus optional

POST
{{AVIA_URL}}/api/air/schedule

Air Schedule API#

This API endpoint allows you to schedule air travel and retrieve offers for available flights.

Request Body#

request_id (string, required): A unique identifier for the request.
Example:
{
    "request_id": "{{request_uid}}"
}

Response#

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.
... (other flight details)
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.
Example Response:
{
    "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": ""
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢2003 Schedule - Amadeus optional
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
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
}'
Response Response Example
{
    "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",
                             
Modified at 2025-08-13 10:04:19
Previous
2C Search Round trip
Next
4 Offers request
Built with