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

9 OPT Select services

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

Select 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.

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 'Cookie: etmsessid=8Pwz9vY4oXUDj7ojfR5u1VdXsMW6xOVYosNxo08d' \
--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-08-18 09:38:49
Previous
8 OPT Available Services
Next
10 Create Order
Built with