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

2C Search Round trip

POST
{{AVIA_URL}}/api/air/search

POST /api/air/search#

This endpoint is used to search for air travel options based on the provided directions and other parameters.

Request Body#

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.

Response#

The response is in JSON format and follows the schema below:
{
  "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" }
  }
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params text/plain
Examples

Responses

🟢2002C Search Round trip
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
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
  ]
}'
Response Response Example
{
    "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
}
Modified at 2025-08-13 10:03:47
Previous
2B Search Connecting flight
Next
3 Schedule - Amadeus optional
Built with