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

6 REQ Cancel order

PUT
{{HOTELS_URL}}/api/hotels/v2/orders/{{order_id}}/cancel
Use order_id from POST /api/hotels/v2/orders

Request

Header Params

Responses

🟢2006 Cancel order
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'https://stage-hotels.etm-system.ru/api/hotels/v2/orders/{{order_id}}/cancel' \
--header 'Accept: application/json' \
--header 'Cookie: etmsessid=8Pwz9vY4oXUDj7ojfR5u1VdXsMW6xOVYosNxo08d' \
--header 'Content-Type: application/json'
Response Response Example
{
    "id": 9588,
    "date_create": "2025-01-28 09:23:52",
    "status": "C",
    "status_name": "Отменён",
    "supplier_book_number": "1561335",
    "check_in": "2025-02-11",
    "check_out": "2025-02-13",
    "nights_qty": 2,
    "additional": null,
    "trip_id": null,
    "package_id": null,
    "provider_id": 1785,
    "booking_remarks": " ",
    "supplier": null,
    "surcharges": {
        "data": []
    },
    "hotel": {
        "id": 11537602,
        "guide_hotel_id": 30254165,
        "name": "Alfa Izmaylovo (Sigma plus)",
        "image_id": 0,
        "image_qty": 30,
        "stars": 4,
        "country_name": null,
        "city_name": "Moscow",
        "zip_code": "105187",
        "area": "",
        "district": "",
        "address": "71A, Izmaylovskoe highway ",
        "latitude": "55.78982890",
        "longitude": "37.74958000",
        "top_facilities": [],
        "image": {
            "id": 267054630,
            "guide_hotel_id": 30254165,
            "num": 1,
            "url": "https://bronevik.com/static/photo/g/1024x768/2025d0546fdf68000b189155274b3fe8",
            "description": null,
            "category": null,
            "url_small": "https://bronevik.com/static/photo/g/x220/2025d0546fdf68000b189155274b3fe8"
        }
    },
    "cancel_policy": {
        "description": "С 08.02.25 13:20 (UTC+3) до 09.02.25 13:20 (UTC+3) штраф за отмену составит 2362.00RUB\nС 09.02.25 13:20 (UTC+3) до 10.02.25 13:20 (UTC+3) штраф за отмену составит 2834.40RUB\nС 10.02.25 13:20 (UTC+3) до 11.02.25 13:20 (UTC+3) штраф за отмену составит 3306.80RUB\nC 11.02.25 13:20 (UTC+3) штраф за отмену составит 4724.00RUB\n",
        "has_gmt": false,
        "remarks": null,
        "free_cancel_date": "2025-02-08 10:20:00"
    },
    "value": {
        "currency": "RUB",
        "base": 4724,
        "markup": 0,
        "markup_general": 0,
        "discount_general": 0,
        "hidden_markup": 0,
        "discount": 0,
        "commission": 0,
        "psp": 0,
        "total": 4724
    },
    "all_user_values": [
        {
            "user_id": 31118,
            "user_name": "Gladkov_cons",
            "usertype": "consolidator",
            "values": {
                "currency": "RUB",
                "base": 4724,
                "markup": 0,
                "markup_general": 0,
                "discount_general": 0,
                "hidden_markup": 0,
                "discount": 0,
                "commission": 0,
                "psp": 0,
                "total": 4724
            },
            "conso": ""
        }
    ],
    "supplier_discounts": [],
    "cancel_value": {
        "currency": "RUB",
        "base": 4724,
        "markup": 0,
        "markup_general": 0,
        "discount_general": 0,
        "hidden_markup": 0,
        "discount": 0,
        "commission": 0,
        "psp": 0,
        "total": 4724
    },
    "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": 919080,
            "offer_id": 876356,
            "basic": "-",
            "type": "",
            "class": "Номер стандарт с 2 односпальными кроватями",
            "adult_qty": 1,
            "availability": 1,
            "breakfast_included": 1,
            "is_nonsmoking": null,
            "description": "Номер стандарт с 2 односпальными кроватями ",
            "booking_code": "MTY5OTMjMTM2OTcjaGFwcyM2OTk2MC",
            "room_code": "MTY5OTMjMTM2OTcjaGFwcyM2OTk2MCMyMDI1LTAyLTExIzIwMjUtMDItMTMjMiMwIzEjMTAjMSM0NSNzaW5nbGU=",
            "refundability": null,
            "image_id": 267054630,
            "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": 4,
                        "name": "Завтрак включён"
                    }
                },
                {
                    "name": "Обед Континентальный завтрак",
                    "group": {
                        "id": 3,
                        "name": "Завтрак + обед или ужин включены"
                    }
                },
                {
                    "name": "Ужин",
                    "group": {
                        "id": 6,
                        "name": "Ужин включён"
                    }
                }
            ],
            "mealPrices": [
                {
                    "code": 2,
                    "defaultName": "Continental Breakfast",
                    "price": 1296,
                    "currency": "RUB",
                    "price_per_currency": null,
                    "name": "Континентальный завтрак",
                    "group": {
                        "id": 4,
                        "name": "Завтрак включён"
                    }
                }
            ],
            "minStayDay": null,
            "isMinStayAlert": null,
            "transferName": null,
            "has_free_cancel_policy": null,
            "free_cancel_description": null,
            "cancel_policy": null
        }
    ],
    "is_cancel_allowed": false,
    "is_update_status_allowed": true,
    "is_text_pnr_allowed": false,
    "is_voucher_allowed": false,
    "is_receipt_allowed": false,
    "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": {
        "penalty_summ": 0,
        "refund_summ": 4724,
        "currency": "RUB",
        "cancelled_at": "2025-01-28T08:24:18.000000Z"
    },
    "need_additional_check": false,
    "refundability": 1,
    "user_timezone": 3,
    "phones": [
        {
            "id": 2506,
            "order_id": 9588,
            "type": "phone",
            "value": "79991112233",
            "created_at": "2025-01-28T08:23:52.000000Z",
            "updated_at": "2025-01-28T08:23:52.000000Z"
        }
    ],
    "emails": [
        {
            "id": 2505,
            "order_id": 9588,
            "type": "email",
            "value": "test@email.com",
            "created_at": "2025-01-28T08:23:52.000000Z",
            "updated_at": "2025-01-28T08:23:52.000000Z"
        }
    ],
    "number_comment": 0,
    "meta": {
        "phone": true,
        "meal": true
    },
    "relations": null,
    "additionalsValue": []
}
Modified at 2025-08-19 06:11:59
Previous
5 REQ Create order
Next
1 REQ B2B Login
Built with