ETS API
  1. AVIA
ETS API
  • Try it and Run in ApiDog
  • AVIA API Documentation
  • AVIA Flows example
  • HOTELS API
  • AVIA
    • 1 REQ B2B Login Token (PREFERRED)
      POST
    • 1 REQ B2B Login (TO BE REMOVED, USE TOKEN LOGIN)
      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
      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 methods
      POST
    • 13 Order payment
      POST
    • 14 Сheckout status
      GET
    • 15 Refund order
      GET
    • 16 Get order info
      GET
    • 17 Print E-Tiket
      GET
    • 18 Receiving a cancellation fee
      GET
    • 19 Cancel Order
      GET
    • 20 Get airports
      GET
    • 21 Get cities
      GET
    • 22 Get countries
      GET
  • HOTELS
    • REQUIRED
      • 1A REQ B2B Login
      • 1B REQ B2B Login Token
      • 1C REQ B2C Login
      • 2 REQ Destination
      • 3 REQ Search
      • 4 REQ Receiving found hotels
      • 5 REQ Getting a Hotel Offer
      • 6 REQ Create order
      • 7 REQ Cancel order
    • OPTIONAL
      • 1 REQ B2B Login
      • 1B REQ B2B Login Token Copy
      • 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
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  1. AVIA

9 OPT Select services

POST
{{AVIA_URL}}/api/air/offers/{{request_id}}/select-services

Select Services for Air Offers#

9 OPT Select services.png
This endpoint allows the user to select services for a specific air offer identified by the request_id.

Request:#

request_id: The unique identifier for the request. You can take it from /search response.data.request_id
passanger_id: - You can take if from GET {{url}}/api/air/offers/{{request_id}}/additional-services?segment={{buy_id}} response.data.passanger.passangerId
buy_id - Represents the unique ID associated with the offer. You can take it from /api/air/offers, for example,
response.data.offers[0].offers[0].segments[0].buy_id
legs - key & array: you can take if from GET {{url}}/api/air/offers/{{request_id}}/additional-services?segment={{buy_id}} response.data.directions.legs
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.

Request

Header Params

Body Params application/json

Examples

Responses

🟢2006 Select services
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://stage-api.etm-system.ru/api/air/offers/{{request_id}}/select-services' \
--header 'Accept: application/json' \
--header 'Etm-Auth-Key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "params": {
        "data": {
            "{{passanger_id}}": {
                "{{buy_id}}": {
                    "checked_baggage": {
                            "id": "1071192-1429749",
                            "comments": "",
                            "passenger_type": "ADT",
                            "label": "40  kg Baggage Allowance",
                            "price": "5989.02",
                            "currency": "EUR",
                            "route": "DXB-TAS",
                            "image": "",
                            "type": "radio",
                            "maxQuantity": 1,
                            "category": "BAGX",
                            "is_baggage_package": false,
                            "package_list": [],
                            "priority_boarding": []
                    },
                    "legs": {
                        "{{leg_id}}": {
                            // "id": "1004878-1344233",
                            // "comments": "",
                            // "passenger_type": "ADT",
                            // "label": "23 Kilogram(s)",
                            // "price": "449.67",
                            // "currency": "RUB",
                            // "route": "TAS-UGC",
                            // "image": "",
                            // "type": "radio",
                            // "maxQuantity": 1,
                            // "category": "",
                            // "is_baggage_package": false,
                            // "package_list": [],
                            // "priority_boarding": []
                        }
                    }
                }
            }
        }
    }
}'
Response Response Example
{
    "status": 200,
    "data": 0
}
Modified at 2025-10-23 14:47:02
Previous
8 OPT Available Services
Next
10 Create Order
Built with