Welcome to the official documentation of ETS Group AVIA API platform.This documentation provides full access to methods used for searching, booking, managing, and cancelling air tickets and hotels, including auxiliary services and authorization flows.ETS API is available in multiple environments, typically including:Test โ used for integration testing and validationProduction โ used for live bookings and paymentsAccess to each environment (including endpoints and credentials) is provided individually.To obtain access credentials or enable a new environment, contact ETS support.๐งญ API Core Business Process#
๐งญ API Structure#
B2B Login โ no longer available for new users. Previously used by partners to obtain a session token.B2C Login โ deprecated and no longer supported for new integrations. Previously used for end-user login. Previously, you could get the app_id from our manager or view it yourself in your personal account settings.B2B Token Login โ the current and required authorization method.
The token can be generated manually in the B2B account after signing the contract and receiving access to the B2B portal.Tokens are environment-specific.
A token issued for the Test/Stage environment must not be used in Production, and vice versa.Authorization: Basic โฆ โ only if Basic authentication credentials were issued for your environment. Send them in every request, including login.
etm-auth-token โ only in POST {{url}}/api/login. The token from your B2B account, UUID format.
etm-auth-key โ in all other requests. The etm_auth_key value from the login response, sent as is, without the Bearer prefix.
No agency or contract ID is required in requests: your account and agency are identified by the token.
IP whitelisting is not required. If a list of allowed IP addresses is set for your account or agency, login is possible only from those addresses.Token lifecycle
The token is used as a long-lived authentication credential. It is used only to log in.
In current operational practice, the token does not have a predefined expiration date.Each login opens a new session and returns etm_auth_key โ a 40-character string of Latin letters and digits (not a UUID).
The session is valid until max_expiry_time (Unix time, seconds, UTC). Requests do not extend it. There is no separate refresh method.
To continue after max_expiry_time, call POST {{url}}/api/login again and use the new etm_auth_key.
Log in again in advance, for example before creating an order if less than 15 minutes remain until max_expiry_time.
Previously issued keys remain valid until their own max_expiry_time.
max_timeout is deprecated. It is not the session lifetime โ do not use it to schedule re-login.
Compare max_expiry_time with the server time from the Date response header, not only with your local clock.
The login response also sets the etmsessid cookie with the same value as etm_auth_key. Server-to-server integrations do not need it.
Authentication troubleshooting:HTTP status codes for authentication failures
ETS API may return the following HTTP status codes when authentication fails:401 Unauthorized โ the request was rejected by the environment's Basic authentication before reaching the API. The response body may not be JSON.400 Bad Request โ the etm-auth-token header is missing or does not match the required UUID format (POST /api/login).Example response body (header missing):{ "error": "Invalid input" }Example response body (wrong format):{ "status": "error", "message": "The etm-auth-token field must be a valid UUID." }403 Forbidden on POST /api/login โ the token is unknown, inactive, replaced or not applicable to the target environment; the account is blocked; the request comes from an IP address that is not on the allowed list; or an unsupported locale was passed.{ "error": "Invalid input" }403 Forbidden on other requests โ the etm-auth-key header is missing or wrong, or the session has expired. Log in again and repeat the request.{ "status": "error", "message": "Session expired", "code": 31 }The code field is for internal use. Do not rely on it.403 Forbidden with "Session invalid" โ the key was not issued by POST {{url}}/api/login. Log in with your token and use the new key.403 Forbidden with "Access denied!" โ your account has no access to this method. Contact ETS support.Recommended debugging checklist (403)If you receive 403 Forbidden on POST /api/login:Verify the token value is copied without leading/trailing spaces.Verify the token belongs to the correct environment (Test/Stage vs Production).Verify the token has not been replaced (token rotation).Verify the request comes from an allowed IP address, if such a list is set for your account.If you receive 403 Forbidden on other requests:Verify the etm-auth-key header contains etm_auth_key from your latest login, without the Bearer prefix.Verify max_expiry_time has not passed. If it has, log in again.If the token is expected to be valid, contact ETS support.One-way, round-trip and multi-segment flight offers
Based on departure/arrival city, date, passengers
Pricing, passenger document types, baggage and seat options
Flight booking, ancillary services, passenger data
Confirm, hold or cancel payment status
Full or partial refund methods, with different scenarios
Airports, cities, countries, airlines, document types
๐ Authorization Methods#
B2B Token Login โ the current and required authorization method.
The token can be generated manually in the B2B account after signing the contract and receiving access to the B2B portal.Request
Method: POST
URL: {{url}}/api/login
Header: etm-auth-token: {{etm-auth-token}}Response
The response for this request is a JSON object with the following properties:
etm_auth_key (string): The session key. Send it in the etm-auth-key header in all other requests, without the Bearer prefix
locale (string): The session language
currency (string): The session currency
max_expiry_time (integer): The session end time, Unix time in seconds (UTC). After this time, log in again
max_timeout (integer): Deprecated. Not the session lifetime, do not use itSee the 1 REQ B2B Login Api Token request and Session lifecycle in the API Structure section.B2B Login โ no longer available for new users. Previously used by partners to obtain a session token.B2C Login โ deprecated and no longer supported for new integrations. Previously used for end-user login. Previously, you could get the app_id from our manager or view it yourself in your personal account settings. See the 1 REQ B2C Login request.Search#
POST /api/air/search
This endpoint is used to search for air travel options based on the provided directions and other parameters.
The method only starts the search and returns request_id immediately. Get the results with /api/air/offers (see Get Airline offers).Each call starts a new search with a new request_id. Repeating a search is safe: nothing is booked or charged. Identical searches are not merged.Request Body
directions (array of objects) - Specifies the departure and arrival details for the travel.
departure_country (string) - The departure country code.
departure_name (string) - The name of the departure location.
departure_code (string) - The code of the departure location.
departure_city (string) - The city of the departure location.
arrival_country (string) - The arrival country code.
arrival_name (string) - The name of the arrival location.
arrival_code (string) - The code of the arrival location.
arrival_city (string) - The city of the arrival location.
date (string) - The date of travel.
time (string) - The time of travel.
dir_number (number) - The direction number.adult_qnt (number) - The quantity of adult passengers.
child_qnt (number) - The quantity of child passengers.
infant_qnt (number) - The quantity of infant passengers.
class (string) - The class of travel (find possible values below)
fare_types (array of strings) - The types of fares.
old_request_id is always null. Do not use it.Search Input (Request) โ Service Class Codes (class)| Code | Meaning (EN) |
|---|
E | Economy |
W | Premium Economy |
B | Business |
F | First |
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" }
}
}Get Airline offers#
POST /api/air/offers (GET with the same query parameters is also accepted)Returns the results of a search started with POST /api/air/search. The search runs in the background, so results are received by polling:1.
Wait 2 seconds after POST /api/air/search, then call /api/air/offers with request_id.
2.
Add offers from the response to your list and save next_token.
3.
While status is InProcess, repeat the request every 2 seconds with request_id and the latest next_token.
4.
Stop when status is Ready. The Ready response can contain new offers too.
Each response contains only new results, so accumulate them on your side. next_token is a non-empty string in every response, including Ready. A request without next_token returns all results collected so far.status becomes Ready when all suppliers have responded or 60 seconds after the search started, whichever comes first.Search results are kept for 20 minutes after the search starts. ttl (seconds left) is filled only in a Ready response that includes new supplier responses, otherwise it is 0. ttl: 0 does not mean that the results have expired.If request_id is unknown, has expired or belongs to another user, the method returns HTTP 200 with status Ready, empty offers and next_token: null. A search without flights also returns Ready with empty offers, but next_token is a string.Each element of segments with a buy_id is a bookable option. For round trip and multi-city searches, elements of the earlier directions have buy_id: null; see the 4 Offers request method for details.service_class in the offers response is a localized name (for example "Economy", "Premium Economy", "Business", "First"), not a code. The code is returned by GET /api/air/offers/{buy_id}/info.See the 4 Offers request method for parameters, fields and examples.After requesting the offer, get the document types for it:
{{url}}/api/documents/types/site?pid={{pcc_id}}Take the pcc_id from the offers response, for example:
var pcc_id = response.offers[0].offers[0].segments[0].pcc_id;The response lists the document types for this offer. It depends on the supplier behind the pcc_id and changes only with platform updates, so you can cache it per pcc_id, for example for 24 hours.ETS API contains multiple categories of time-related fields. These categories have different semantics and must be handled separately.Flight segment times (local airport time)Times related to flight segments are provided in local time of the corresponding airport.departure_time โ local departure time at the departure airport
arrival_time โ local arrival time at the arrival airport
departure_timezone โ timezone identifier/offset for the departure airport
arrival_timezone โ timezone identifier/offset for the arrival airportdeparture_timestamp, arrival_timestamp (offers response) โ local airport time written as a Unix timestamp as if it were UTC. They are not real moments in time: do not convert them to UTC and do not subtract them to get the flight duration. Use duration_minutes for the duration.Charter flags (is_charter, charterType)charterType is meaningful only when is_charter = true.
When is_charter = false, charterType is always null.Smart offer#
This API endpoint makes an HTTP GET request to retrieve offers related to a specific air purchase identified by the unique ID (buy_uid) and the smart_ff parameter. The response is in JSON format and includes various fields.Note:
The air/offers?request_id= response contains a boolean flag price_fare_family.
If price_fare_family = false, the Smart_FF service is not available for this offer or supplier.
In this case, do not call air/offers/{buy_uid}/smart_ff.
If price_fare_family = true, the Smart_FF endpoint may be invoked to retrieve upsell options for the selected offer.When to call Smart_FF:
only after /air/offers,
only if price_fare_family = true,
only for a specific buy_uid.When NOT to call Smart_FF:
if price_fare_family = false,Request
The request does not require any specific input parameters. It retrieves smart frequent flyer offers based on the provided buy ID.Response Fields:
status (string): Represents the status of the response.
message (string): Provides a message related to the response.
offers (array): Contains a list of offers.
buy_id (string): Represents the unique ID associated with the offer.
price (number): Indicates the price of the offer.
currency (string): Specifies the currency in which the price is denoted.
price_details (array): Contains details related to the price.
qty (number): Represents the quantity.
base (string): Indicates the base value.
base_amount (number): Represents the amount related to the base value.
tax (string): Specifies the tax information.
tax_amount (number): Represents the amount of tax.
tax_dtl (array): Contains detailed tax information.
code (string): Represents the code associated with the tax.
amount (number): Indicates the amount of tax.
currency (string): Specifies the currency for the tax amount.fee (string): Specifies the fee information.
fee_amount (number): Represents the amount related to the fee.
single (string): Indicates a single value.
single_amount (number): Represents the amount related to the single value.
total (string): Specifies the total value.
total_amount (number): Represents the total amount.
base_total (number): Indicates the base total value.
fee_total (number): Represents the total fee amount.
tax_total (number): Represents the total tax amount.
passenger_type (string): Specifies the type of passenger.
type (string): Indicates the type of the offer.base_total (number): Represents the base total value.
tax_total (number): Represents the total tax amount.
fee (number): Specifies the fee information.
comm (number): Represents the commission.
legs (array): Contains details related to the legs of the journey.
fare_family (string): Represents the fare family.
segments (array): Contains details of the segments.
baggage (string): Specifies the baggage information.
fare_basis (string): Represents the fare basis.
booking_class (string): Indicates the booking class.
service_class (string): Specifies the service class.
service_class_label (string): Provides a label for the service class.
departure_airport (string): Indicates the departure airport.
arrival_airport (string): Specifies the arrival airport.
marketing_airline (string): Represents the marketing airline.
airline_logo (string): Provides the URL for the airline logo.
ff_code (string): Indicates the frequent flyer code.
ff_data (object): Contains data related to frequent flyer details.
Various fields with specific data types and constraints.The fields 'buy_id' and 'price' are of type string and number respectively, with no specific constraints or validations mentioned in the provided information.
Response
The response will be in JSON format with a status code of 200. It includes an array of offers, each containing details such as buy ID, price, currency, price details, base total, tax total, fee, commission, and legs. The legs section provides information about fare family, segments, baggage, fare basis, booking class, service class, departure and arrival airports, marketing airline, airline logo, frequent flyer code, and additional service details.Possible service_class response examples :
type: string
description: Service class code.
enum: ["E", "W", "B", "F"]
example: "B"
service_class_label:
type: string
description: name for the service class.
example: "Business"Why does W or F search sometimes return Economy and Business offers?This behavior is expected and not considered an error.Possible reasons:
No Premium Economy or First Class class inventory is available for the requested route or date.The supplier/airline does not provide the class fares for this flight.Always use service_class.code in the response to determine the actual class of the offer.Availability#
GET /api/air/offers/{buy_id}/availabilityRequired step before Create Order. Checks the selected offer with the supplier and returns a new buy_id for Create Order.buy_id from the search results is valid while the results are kept: at least 20 minutes after the search starts. After that, Availability returns 404 without code: start a new search.
buy_id from the Availability response has no time limit on the ETS side and can be used for one order. Create the order right after Availability.
Send price_change_confirm=1 to receive a price change as the price_changed block instead of an error.
Code 3004 is returned for any reason why the offer cannot be booked, not only when there are no seats.
message and popup_message can contain text for the user even when status is ok.
Set the client timeout to at least 90 seconds.
See 7 Availability of Offer for parameters, fields and examples.Get Additional Services for Air Offers#
This endpoint retrieves additional services for a specific air offer based on the request ID and segment.
Request
Method: GET
URL: {{url}}/api/air/offers/{{request_id}}/additional-services
Query Parameters:
segment: The buy ID for the segmentSelect Services for Air Offers#
This endpoint allows the user to select services for a specific air offer identified by the request_id.
Request Body
params (object)
data (object)
{{passanger_id}} (object)
{{buy_id}} (object)
checked_baggage (object)
id (string)
comments (string)
passenger_type (string)
label (string)
price (string)
currency (string)
route (string)
image (string)
type (string)
maxQuantity (number)
category (string)
is_baggage_package (boolean)
package_list (array)
priority_boarding (array)legs (object)
{{leg_id}} (object)Response
status (number)
data (number)The response returns the status of the request and the data associated with it.Create Air Order#
This endpoint allows you to create a new air order.Before you create an order1.
Get the document types for the offer: GET {{url}}/api/documents/types/site?pid={{pcc_id}}. See 5 Documents types for offer. The list depends on the supplier of the offer, so request it for the pcc_id of the offer you are booking.
2.
Get the citizenships allowed for the offer: GET {{url}}/api/air/offers/{{buy_id}}/citizenship. See 5.1 Get available citizenships for an offer.
| Code | Document | Citizenship |
|---|
PSP | Foreign (international) passport | Russia |
PS | National passport | Russia |
ZC | Foreign (international) passport | Other countries |
NP | National passport or national ID card | Other countries |
SR | Birth certificate | Any |
NI | National identity card | Returned for some suppliers only |
Some suppliers return other codes as well. Use only the codes returned for the pcc_id of your offer.Request Body
buy_id (string): The ID of the purchase.
phone (object): The phone details including code, number, and extra.
emails (array of strings): An array of email addresses.
address (object): The address details including zip, country, city, and additional.
passengers (array of objects): An array of passenger details including type, gender, last_name, first_name, middle_name, birth_date, citizenship, and document details.Important Note on Address RequirementsSome suppliers strictly require the customer's address to be provided at the time of booking. To ensure seamless processing and avoid booking failures, we strongly recommend always including the address block in your booking requests.json
"address": {
"zip": "{{zip}}",
"country": "{{country}}",
"city": "{{city}}",
"additional": "{{address}}"
}The address can include the zip, the city and two-digit country code of the agent, full address is not required.โ ๏ธ Failure to provide address details may result in booking errors or supplier rejections. We advise passing this block for all bookings, regardless of the supplier, to ensure full compatibility.Response
status (string): The status of the response.
message (string): A message related to the response.
data (object): The data object containing the details of the created order including order_id, book_id, buy_id, status, pnr_number, amount, currency, buyer, agency, operator, rl_number, stamp_create, stamp_ticket, time_till_ticket, left_to_void, left_to_void_time, directions, passengers, services, prices, price_extra, payment_methods, actions, settings, and site_log.Possible order statuses:
***"status": " T- ticketing
"status": " V-Void
"status": " B- booking
"status": " E- Error
"status": " K- Order is already paid. Ticket issuance is in progress (delayed ticketing). Once ticket issuance finishes successfully, the order transitions from K โ T.
"status": "I"- the order has been created, but not booked
"status": " G- for group booking only - group request created
"status": " A- for group booking only - group is waiting for approval
"status": " U- for group booking only - group is waiting for passengers to be addedTypical lifecycle
B (Booking)
โ payment
T (Ticketed)Typical lifecycle for delayed ticketing
B (Booking)
โ payment
K (Ticketing in progress)
โ ticket issuance (wait from supplier, call Get order info )
T (Ticketed)**Order lifecycle timestamps (stamp_create, stamp_ticket, ticket stamps)
are returned in: Europe/Berlin timezone.stamp_create, stamp_ticket, ticket.stamp: Europe/Berlin timezone (UTC+01:00 in winter, UTC+02:00 in summer, DST applies).
time_till_ticket.stamp: UTC+0.
stamp_create_unix, stamp_ticket_unix: Unix timestamp (timezone independent).
Segment date / time: local time of the airport.
The values are returned without a timezone marker. Do not compare stamp_create and time_till_ticket.stamp directly, as they are in different timezones. To compare them reliably, use stamp_create_unix or convert both to UTC.**"left_to_void_time"
Provided by some suppliers
This is the time until which the ticket can be voided (cancellation of issuance).
**
stamp_create: Order creation time, Europe/Berlin timezone (DST applies). Format: YYYY-MM-DD HH:MM:SS.stamp_create_unix: Order creation time as a Unix timestamp (UTC-based, timezone independent).stamp_ticket: Ticket issue time, Europe/Berlin timezone. null until the ticket is issued.stamp_ticket_unix: Ticket issue time as a Unix timestamp. null until the ticket is issued.time_till_ticket: Ticketing deadline. null if the order is not in booked status or the deadline has passed. The value can change after the order is created, so we recommend calling air/orders/ for the up-to-date value.days, hours, minutes: time left until the deadline, relative to the moment of the request.
stamp: the deadline itself in UTC+0, format YYYY-MM-DD HH:MM:SS.**Summary of time domainsFlight segments departure., arrival. - Local airport time (timezone field)
Order lifecycle stamp_create, stamp_ticket, ticket stamps - Berlin timezone
Ticketing deadline time_till_ticket.stamp - UTC+0Possible service_class response examples :
service_class:
type: object
description: Service class object containing code and localized name.
properties:
code:
type: string
enum: ["E", "W", "B", "F"]
example: "E"
name:
type: string
example: "Economy"Booking References: PNR vs RLBooking References (PNR and Airline Locator)ETS API may return multiple booking reference identifiers for a single order.
These identifiers have different purposes and must not be treated as interchangeable.1.
pnr_number โ System booking reference
pnr_number is the booking reference generated by the ETS booking system (GDS or internal system).Available immediately after order creation.
Always present for a successfully created order.2.
rl_number โ Airline booking reference (locator)
rl_number represents the airline booking reference (airline locator).
It may contain one or multiple values, keyed by airline code."rl_number": {
"LO": "R5KN9G"
}Generated by the airline reservation system.
May be absent immediately after payment in delayed ticketing scenarios.
May appear later when ticket issuance is completed.3.
Delayed appearance of rl_number
In delayed ticketing scenarios:The order transitions to status K (paid, ticketing in progress).
rl_number may be empty or missing at this stage.
rl_number becomes available after successful ticket issuance (K โ T).Void order#
for booked order (unticketed) :
{{url}}/api/air/orders/{{order_id}}/voidfor ticketed order: {{url}}/api/air/orders/{{order_id}}/refundOrder Split#
Patch
This endpoint is used to split an existing order identified by the order_id.
Request Body
order_id: The ID of the order to be split.
book_id: The ID of the book related to the order.
pax_id: The ID of the passenger related to the order.Response
status: The status of the request.
message: Additional information or error message.{
"order_id": {number},
"book_id": {number},
"pax_id": {number}
}{
"status": "{string}",
"message": "{string}"
}Create Payment for Air Order#
This endpoint allows the client to make a payment for a specific air order.
Request Body
fop_type (string): The form of payment used for the transaction.
currency (string): The currency in which the payment is made.
total_amount (string): The total amount of the payment.{
"fop_type": "cash",
"currency": "RUB",
"total_amount": "132933.7"
}Response
status (string): The status of the payment request.
payload.status (string): The status of the payment transaction.{
"status": "ok",
"payload": {
"status": "ok"
}
}Retrieve Payment Details#
This endpoint retrieves the payment details for a specific order.
Request
Method: GET
URL: {{url}}/api/air/orders/{{order_id}}/paymentResponse
The response for this request follows the JSON schema below:{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"message": {
"type": "string"
},
"status_emd": {
"type": "array"
}
}
}Retrieve Air Order Details#
This endpoint retrieves the details of a specific air order identified by the order_id.
Request Body
No request body is required for this endpoint.Response Body
status (string): The status of the order.
message (string): Any additional message related to the order.
data (object): Contains detailed information about the air order, including order_id, book_id, buy_id, amount, currency, buyer, agency, operator, rl_number, stamp_create, stamp_ticket, time_till_ticket, tickets, left_to_void, left_to_void_time, directions, flights_info, passengers, services, prices, price_extra, payment_methods, actions, settings, and site_log.The data object provides comprehensive information about an order, including flight details, passenger information, pricing, payment methods, tickets and available actions.๐งช How to Use This Portal#
You can test any API method right here:1.
Select a method from the left panel
3.
Fill in required parameters (e.g. from = MOW, to = AYT)
4.
Click Send and see the live response from our API
We provide API keys and technical onboarding materials on request.๐ API Version#
Current version: v1
Last updated: July 2025 Modified atย 2026-11-25 14:47:40