ETS API
  1. OPTIONAL
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
        POST
      • 1 REQ B2C Login
        GET
      • 2 REQ Search
        POST
      • 3 OPT Destination point info
        GET
      • 4 OPT List of popular destinations Copy
        GET
      • 5 OPT List of filtered destinations
        GET
      • 6 OPT Group guide
        GET
      • 7 OPT Getting information on possible hotels
        GET
      • 8 OPT Getting the list of currencies
        GET
      • 9 REQ Receiving found hotels
        POST
      • 10 REQ Getting a Hotel Offer
        GET
      • 11 OPT Cancel-policies
        GET
      • 12 OPT Account number and info
        GET
      • 13 OPT Receiving information on the hotel offer
        GET
      • 14 OPT Receive detailed information about the cost of an offer
        GET
      • 15 REQ Create order
        POST
      • 16 OPT Receive hotel services
        GET
  1. OPTIONAL

15 REQ Create order

POST
{{HOTELS_URL}}/api/hotels/v2/orders

Request

Header Params

Body Params text/plain
Examples

Responses

🟢2005 Create order
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://stage-hotels.etm-system.ru/api/hotels/v2/orders' \
--header 'Accept: application/json' \
--header 'Cookie: etmsessid=8Pwz9vY4oXUDj7ojfR5u1VdXsMW6xOVYosNxo08d' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "emails": [ "test@email.com" ],
    "h_offer_id": {{offer_id}},
    "payment_method": "deposit",
    "payment_method_psp_id": "",
    "phones": [ "79991112233"],
    "rooms": [
        {
        "guests": [
            {
            "gender": "Mr",
            "firstname": "Ivan",
            "lastname": "Testovikov",
            "firstname_failed": false,
            "lastname_failed": false,
            "is_owner": false,
            "gender_failed": false,
            "type": "ADT"
            }
        ],
            "room_id": {{room_id}}
        }
    ]
}'
Response Response Example
{
    "id": 9573,
    "date_create": "2025-01-26 18:32:49",
    "status": "P",
    "status_name": "Оплачен",
    "supplier_book_number": "1560941",
    "check_in": "2025-02-09",
    "check_out": "2025-02-11",
    "nights_qty": 2,
    "additional": null,
    "trip_id": null,
    "package_id": null,
    "provider_id": 1785,
    "booking_remarks": " ",
    "supplier": null,
    "surcharges": {
        "data": [
            {
                "code": "DEPOSIT",
                "chargeType": "EXCLUDE",
                "mandatory": 0,
                "price": {
                    "amount": "1000.00",
                    "original_amount": "1000.00",
                    "currency": "RUB",
                    "original_currency": "RUB"
                },
                "description": null,
                "text": " 1000 RUB",
                "price_per_currency": {
                    "EUR": {
                        "amount": 9.75,
                        "text": " 9.75 EUR"
                    },
                    "RUB": {
                        "amount": 1000,
                        "text": " 1000 RUB"
                    },
                    "KZT": {
                        "amount": 5291,
                        "text": " 5291 KZT"
                    },
                    "TRY": {
                        "amount": 364.84000000000003,
                        "text": " 364.84 TRY"
                    },
                    "BYN": {
                        "amount": 33.43,
                        "text": " 33.43 BYN"
                    },
                    "USD": {
                        "amount": 10.200000000000001,
                        "text": " 10.2 USD"
                    },
                    "UZS": {
                        "amount": 132481,
                        "text": " 132481 UZS"
                    },
                    "UAH": {
                        "amount": 430,
                        "text": " 430 UAH"
                    },
                    "AED": {
                        "amount": 40,
                        "text": " 40 AED"
                    }
                }
            },
            {
                "code": "DEPOSIT",
                "chargeType": "EXCLUDE",
                "mandatory": 0,
                "price": {
                    "amount": "1000.00",
                    "original_amount": "1000.00",
                    "currency": "RUB",
                    "original_currency": "RUB"
                },
                "description": null,
                "text": " 1000 RUB",
                "price_per_currency": {
                    "EUR": {
                        "amount": 9.75,
                        "text": " 9.75 EUR"
                    },
                    "RUB": {
                        "amount": 1000,
                        "text": " 1000 RUB"
                    },
                    "KZT": {
                        "amount": 5291,
                        "text": " 5291 KZT"
                    },
                    "TRY": {
                        "amount": 364.84000000000003,
                        "text": " 364.84 TRY"
                    },
                    "BYN": {
                        "amount": 33.43,
                        "text": " 33.43 BYN"
                    },
                    "USD": {
                        "amount": 10.200000000000001,
                        "text": " 10.2 USD"
                    },
                    "UZS": {
                        "amount": 132481,
                        "text": " 132481 UZS"
                    },
                    "UAH": {
                        "amount": 430,
                        "text": " 430 UAH"
                    },
                    "AED": {
                        "amount": 40,
                        "text": " 40 AED"
                    }
                }
            },
            {
                "code": "RESORT_FEE",
                "chargeType": "EXCLUDE",
                "mandatory": 0,
                "price": {
                    "amount": "10.00",
                    "original_amount": "10.00",
                    "currency": "RUB",
                    "original_currency": "RUB"
                },
                "description": "С 16 июля 2018 г. в отеле взимается курортный сбор в размере 10 руб./сутки с человека.",
                "text": "Курортный налог 10 RUB",
                "price_per_currency": {
                    "EUR": {
                        "amount": 0.1,
                        "text": "Курортный налог 0.1 EUR"
                    },
                    "RUB": {
                        "amount": 10,
                        "text": "Курортный налог 10 RUB"
                    },
                    "KZT": {
                        "amount": 53,
                        "text": "Курортный налог 53 KZT"
                    },
                    "TRY": {
                        "amount": 3.65,
                        "text": "Курортный налог 3.65 TRY"
                    },
                    "BYN": {
                        "amount": 0.33,
                        "text": "Курортный налог 0.33 BYN"
                    },
                    "USD": {
                        "amount": 0.1,
                        "text": "Курортный налог 0.1 USD"
                    },
                    "UZS": {
                        "amount": 1325,
                        "text": "Курортный налог 1325 UZS"
                    },
                    "UAH": {
                        "amount": 5,
                        "text": "Курортный налог 5 UAH"
                    },
                    "AED": {
                        "amount": 10,
                        "text": "Курортный налог 10 AED"
                    }
                }
            }
        ]
    },
    "hotel": {
        "id": 11537598,
        "guide_hotel_id": 28696324,
        "name": "Volga Apart hotel",
        "image_id": 0,
        "image_qty": 89,
        "stars": 3,
        "country_name": null,
        "city_name": "Moscow",
        "zip_code": "107078",
        "area": "",
        "district": "",
        "address": "Bolshaya Spasskaya str., 4, building 1",
        "latitude": "55.77431300",
        "longitude": "37.64074720",
        "top_facilities": [],
        "image": {
            "id": 266672110,
            "guide_hotel_id": 30248461,
            "num": 1,
            "url": "https://bronevik.com/static/photo/g/1024x768/8f639d8895f4f9ad210dc27828de6a11",
            "description": null,
            "category": null,
            "url_small": "https://bronevik.com/static/photo/g/x220/8f639d8895f4f9ad210dc27828de6a11"
        }
    },
    "cancel_policy": {
        "description": "C 08.02.25 13:20 (UTC+3) штраф за отмену составит 4032.00RUB\n",
        "has_gmt": false,
        "remarks": null,
        "free_cancel_date": "2025-02-08 10:20:00"
    },
    "value": {
        "currency": "RUB",
        "base": 8064,
        "markup": 0,
        "markup_general": 0,
        "discount_general": 0,
        "hidden_markup": 0,
        "discount": 0,
        "commission": 0,
        "psp": 0,
        "total": 8064
    },
    "all_user_values": [
        {
            "user_id": 31118,
            "user_name": "Gladkov_cons",
            "usertype": "consolidator",
            "values": {
                "currency": "RUB",
                "base": 8064,
                "markup": 0,
                "markup_general": 0,
                "discount_general": 0,
                "hidden_markup": 0,
                "discount": 0,
                "commission": 0,
                "psp": 0,
                "total": 8064
            },
            "conso": ""
        }
    ],
    "supplier_discounts": [],
    "cancel_value": {
        "currency": "RUB",
        "base": 8064,
        "markup": 0,
        "markup_general": 0,
        "discount_general": 0,
        "hidden_markup": 0,
        "discount": 0,
        "commission": 0,
        "psp": 0,
        "total": 8064
    },
    "all_user_cancel_value": null,
    "agent": {
        "login": "Gladkov_cons",
        "company": "Gladkoff Consolidator",
        "phone": "12055555555",
        "email": "natalia.ershova@etsgroup.travel"
    },
    "vendors": {
        "supplier": false,
        "consolidator": false,
        "agency": false,
        "operator": false,
        "gds": {
            "gds": "BRONEVIK",
            "name": "BRONEVIK_TEST"
        }
    },
    "rooms": [
        {
            "id": 919076,
            "offer_id": 876352,
            "basic": "-",
            "type": "",
            "class": "Апартаменты улучшенные (с полупансионом)",
            "adult_qty": 1,
            "availability": 1,
            "breakfast_included": 1,
            "is_nonsmoking": null,
            "description": "Апартаменты улучшенные (с полупансионом) ",
            "booking_code": "MjQ0IzEzNjk3I3NpbmdsZSMxNDY2Iz",
            "room_code": "MjQ0IzEzNjk3I3NpbmdsZSMxNDY2IzIwMjUtMDItMDkjMjAyNS0wMi0xMSMyIzAjMSMxMA==",
            "refundability": null,
            "image_id": 259148664,
            "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": 6,
                        "name": "Ужин включён"
                    }
                },
                {
                    "name": "Шведский стол",
                    "group": {
                        "id": 4,
                        "name": "Завтрак включён"
                    }
                }
            ],
            "mealPrices": [],
            "minStayDay": null,
            "isMinStayAlert": null,
            "transferName": null,
            "has_free_cancel_policy": null,
            "free_cancel_description": null,
            "cancel_policy": null
        }
    ],
    "is_cancel_allowed": true,
    "is_update_status_allowed": true,
    "is_text_pnr_allowed": false,
    "is_voucher_allowed": true,
    "is_receipt_allowed": true,
    "is_issuing_allowed": false,
    "is_xml_load_allowed": true,
    "is_transactions_allowed": true,
    "is_payment_receipt_voucher": false,
    "payment_method": "deposit",
    "provider": {
        "id": 1785,
        "name": "BRONEVIK_TEST",
        "is_default_policy": true
    },
    "apply_cancel_policy": null,
    "need_additional_check": false,
    "refundability": 1,
    "user_timezone": 3,
    "phones": [
        {
            "id": 2490,
            "order_id": 9573,
            "type": "phone",
            "value": "79991112233",
            "created_at": "2025-01-26T17:32:49.000000Z",
            "updated_at": "2025-01-26T17:32:49.000000Z"
        }
    ],
    "emails": [
        {
            "id": 2489,
            "order_id": 9573,
            "type": "email",
            "value": "test@email.com",
            "created_at": "2025-01-26T17:32:49.000000Z",
            "updated_at": "2025-01-26T17:32:49.000000Z"
        }
    ],
    "number_comment": 0,
    "meta": {
        "phone": true,
        "meal": true
    },
    "relations": null,
    "additionalsValue": []
}
Modified at 2025-08-19 06:33:37
Previous
14 OPT Receive detailed information about the cost of an offer
Next
16 OPT Receive hotel services
Built with