ETS API
  1. REQUIRED
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
        POST
      • 1 REQ B2C Login
        GET
      • 2 REQ Destination
        GET
      • 2 REQ Search
        POST
      • 3 REQ Receiving found hotels
        POST
      • 4 REQ Getting a Hotel Offer
        GET
      • 5 REQ Create order
        POST
      • 6 REQ Cancel order
        PUT
    • 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. REQUIRED

4 REQ Getting a Hotel Offer

GET
{{HOTELS_URL}}/api/hotels/v2/hotels/{{hotel_id}}/offers
Use hotel_id from POST /api/hotels/v2/requests/{{request_id}}/hotels
Save room id from response.

Request

Header Params

Responses

🟢20010 Getting a Hotel Offer
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://stage-hotels.etm-system.ru/api/hotels/v2/hotels/{{hotel_id}}/offers' \
--header 'Accept: application/json' \
--header 'Cookie: etmsessid=8Pwz9vY4oXUDj7ojfR5u1VdXsMW6xOVYosNxo08d' \
--header 'Content-Type: application/json'
Response Response Example
{
    "data": [
        {
            "id": "e0eb5f7d-7007-4ca2-8ed3-6587dbd64409_63653fa4-d788-474a-b54c-1eb64a201bff_5d4290de-1f9b-48b1-8efd-dad0968a5931_ba906487-5b54-416b-ad1e-a404fc7e93f9",
            "hotel_id": "e0eb5f7d-7007-4ca2-8ed3-6587dbd64409_63653fa4-d788-474a-b54c-1eb64a201bff_5d4290de-1f9b-48b1-8efd-dad0968a5931",
            "refundability": 0,
            "booking_remarks": " ",
            "free_cancel_description": "Нет данных по политике отмены",
            "is_cancel_policies_on_offer": true,
            "is_cancel_policies_on_request": false,
            "cancel_policies_exist": true,
            "is_prices_on_request": false,
            "supplier": null,
            "has_free_cancel_policy": true,
            "is_travel_policy_fail": null,
            "is_advance_booking_allowed": false,
            "travel_policy_fail_details": null,
            "travel_policy_id": null,
            "retrieved_at": "23.01.25 20:28",
            "expired_at": "2025-01-23T19:28:18.411845Z",
            "surcharges": {
                "data": []
            },
            "min_expired_at": "2025-01-23T19:28:18.411845Z",
            "remain_seconds": 3599,
            "value": {
                "currency": "RUB",
                "base": 30352.22,
                "markup": 0.78,
                "markup_general": 0.78,
                "discount_general": 0,
                "hidden_markup": 0,
                "discount": 0,
                "commission": 0,
                "psp": 0,
                "total": 30353
            },
            "rooms": [
                {
                    "id": null,
                    "offer_id": "ba906487-5b54-416b-ad1e-a404fc7e93f9",
                    "basic": "",
                    "type": "Sea View Room with Balcony",
                    "class": "Sea View Room with Balcony",
                    "adult_qty": 1,
                    "availability": 1,
                    "breakfast_included": 1,
                    "is_nonsmoking": null,
                    "description": "Sea View Room with Balcony",
                    "booking_code": "9bab93f7-01a1-4766-b075-6c4e225a22c2",
                    "room_code": "4cd049cd-3ba6-4fbf-9e31-45980c894d8a",
                    "refundability": null,
                    "image_id": 333695477,
                    "bed_qty": null,
                    "children": [],
                    "value": {
                        "currency": "RUB",
                        "base": 0,
                        "markup": 0,
                        "markup_general": 0,
                        "discount_general": 0,
                        "hidden_markup": 0,
                        "discount": 0,
                        "commission": 0,
                        "psp": 0,
                        "total": 0
                    },
                    "images": [],
                    "amenities": [],
                    "meal": [
                        {
                            "name": "Без питания",
                            "group": {
                                "id": 2,
                                "name": "Питание не включено"
                            }
                        }
                    ],
                    "mealPrices": [],
                    "minStayDay": null,
                    "isMinStayAlert": null,
                    "transferName": null,
                    "has_free_cancel_policy": null,
                    "free_cancel_description": null,
                    "cancel_policy": null
                }
            ],
            "cancel_policy": {
                "offer_id": 0,
                "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 30353RUB",
                "free_cancel_date": null,
                "remarks": null
            },
            "currency_cancel_policy": {
                "EUR": {
                    "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 293.7354EUR"
                },
                "RUB": {
                    "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 30353RUB"
                },
                "KZT": {
                    "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 159341KZT"
                },
                "TRY": {
                    "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 10902.92TRY"
                },
                "BYN": {
                    "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 1001BYN"
                },
                "USD": {
                    "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 305.8USD"
                },
                "UZS": {
                    "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 3974857UZS"
                },
                "UAH": {
                    "description": "C 23.01.25 06:00 (UTC+3) штраф за отмену составит 12847UAH"
                },
   
Modified at 2025-08-19 06:11:22
Previous
3 REQ Receiving found hotels
Next
5 REQ Create order
Built with