1. External system export
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
    • 2C Search Round trip
      POST
    • 2B Search Multi-City
      POST
    • 3 Schedule - Amadeus optional
      POST
    • 4 Offers request
      GET
    • 4B Smart Offer Request optional
      GET
    • 4C Offer Rules
      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
    • 23 Get counterparties info
      GET
    • 24 Get list of countries for citizenship
      GET
    • 25 Get list of country dialing codes
      GET
    • 26 List of contracts
      POST
    • 27 List of agents
      GET
    • 28 View agent profile
      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
  • External system export
    • Export Air Order
      GET
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  1. External system export

Export Air Order

Developing
GET
/api/air/orders/{order_id}/export
Returns complete structured information about an air order for export to external accounting systems, including 1C and SAP.
The response includes the sales chain participants, provider details, itinerary, passengers and tickets, passenger-level financial data, payment information, and, when applicable, one_order details and corporate passenger data.
The scope and visibility of the returned data depend on the user making the request.

Authentication#

Before calling this endpoint, obtain an authentication key using the authorization endpoint.
Pass the returned key in the etm-auth-key request header.

Request

Path Params

Query Params

Header Params

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/air/orders//export?locale=EN' \
--header 'etm-auth-key;'
Response Response Example
{
    "order_id": 1074260,
    "status": "T",
    "pnr_number": "2VKT49",
    "provider": {
        "id": 2295
    },
    "users": [
        {
            "id": 2295,
            "type": "supplier",
            "currency": "BYN"
        },
        {
            "id": 36813,
            "type": "consolidator",
            "currency": "RUB"
        },
        {
            "id": 250663,
            "type": "agent",
            "currency": "RUB"
        }
    ],
    "buyer": {
        "email": "assel.ualiyeva@etsgroup.travel",
        "phone": "(7) 9162565985",
        "country": {
            "code": "RU",
            "name": "Russia"
        },
        "city": "MOW",
        "address": "аоррпоа",
        "zip": "051548"
    },
    "rl_number": {
        "B2": "0DLC7T",
        "1H": "2VKT49"
    },
    "stamp_create": "2026-08-05 08:17:21",
    "stamp_ticket": "2026-08-05 08:17:00",
    "stamp_create_unix": 1785910641,
    "stamp_ticket_unix": 1785910620,
    "directions": [
        {
            "direction": 1,
            "stops": 0,
            "duration": "03:20:00",
            "duration_seconds": 12000,
            "segments": {
                "1": {
                    "number": 1,
                    "departure": {
                        "country": {
                            "code": "KZ",
                            "name": "Kazakhstan"
                        },
                        "city": {
                            "code": "ALA",
                            "name": "Almaty"
                        },
                        "airport": {
                            "code": "ALA",
                            "name": "Almaty"
                        },
                        "terminal": "2",
                        "date": "2026-09-14",
                        "time": "04:10:00",
                        "timezone": "+05:00",
                        "timestamp": 1789341000
                    },
                    "arrival": {
                        "country": {
                            "code": "BY",
                            "name": "Belarus"
                        },
                        "city": {
                            "code": "MSQ",
                            "name": "Minsk"
                        },
                        "airport": {
                            "code": "MSQ",
                            "name": "Minsk National 2"
                        },
                        "terminal": "",
                        "date": "2026-09-14",
                        "time": "07:30:00",
                        "timezone": "+03:00",
                        "timestamp": 1789341000
                    },
                    "technical": [],
                    "wait": null,
                    "duration": "05:20:00",
                    "duration_seconds": 19200,
                    "flight_number": "768",
                    "booking_class": "M",
                    "fare_basis": "MFLX2",
                    "baggage": "0PC",
                    "is_hand_luggage": false,
                    "service_class": {
                        "code": "E",
                        "name": "Economy"
                    },
                    "validating_airline": {
                        "code": "B2",
                        "name": "Belavia"
                    },
                    "marketing_airline": {
                        "code": "B2",
                        "name": "Belavia"
                    },
                    "operating_airline": {
                        "code": "B2",
                        "name": "Belavia"
                    },
                    "airplane": {
                        "code": "738",
                        "name": "Boeing 737-800"
                    },
                    "fare_family": [],
                    "is_charter": false,
                    "self_dock": false
                }
            }
        },
        {
            "direction": 2,
            "stops": 0,
            "duration": "06:50:00",
            "duration_seconds": 24600,
            "segments": {
                "1": {
                    "number": 1,
                    "departure": {
                        "country": {
                            "code": "BY",
                            "name": "Belarus"
                        },
                        "city": {
                            "code": "MSQ",
                            "name": "Minsk"
                        },
                        "airport": {
                            "code": "MSQ",
                            "name": "Minsk National 2"
                        },
                        "terminal": "",
                        "date": "2026-09-20",
                        "time": "20:20:00",
                        "timezone": "+03:00",
                        "timestamp": 1789924800
                    },
                    "arrival": {
                        "country": {
                            "code": "KZ",
                            "name": "Kazakhstan"
                        },
                        "city": {
                            "code": "ALA",
                            "name": "Almaty"
                        },
                        "airport": {
                            "code": "ALA",
                            "name": "Almaty"
                        },
                        "terminal": "2",
                        "date": "2026-09-21",
                        "time": "03:10:00",
                        "timezone": "+05:00",
                        "timestamp": 1789924800
                    },
                    "technical": [],
                    "wait": null,
                    "duration": "04:50:00",
                    "duration_seconds": 17400,
                    "flight_number": "767",
                    "booking_class": "M",
                    "fare_basis": "MFLX2",
                    "baggage": "0PC",
                    "is_hand_luggage": false,
                    "service_class": {
                        "code": "E",
                        "name": "Economy"
                    },
                    "validating_airline": {
                        "code": "B2",
                        "name": "Belavia"
                    },
                    "marketing_airline": {
                        "code": "B2",
                        "name": "Belavia"
                    },
                    "operating_airline": {
                        "code": "B2",
                        "name": "Belavia"
                    },
                    "airplane": {
                        "code": "738",
                        "name": "Boeing 737-800"
                    },
                    "fare_family": [],
                    "is_charter": false,
                    "self_dock": false
                }
            }
        }
    ],
    "passengers": [
        {
            "info": {
                "type": {
                    "code": "ADT",
                    "name": "Adult"
                },
                "title": "MS",
                "firstname": "LARISA",
                "lastname": "SAMSONOVA",
                "birthdate": "2000-07-14"
            },
            "document": {
                "citizenship": {
                    "code": "RU",
                    "name": "Россия"
                },
                "type": {
                    "code": "PSP",
                    "name": "Russian foreign passport"
                },
                "number": "625985478",
                "expire": "2033-04-11",
                "issue": ""
            },
            "arrival_info": "",
            "visa_info": "",
            "frequent": [],
            "fe_data": null,
            "ticket": {
                "status": "TKTT",
                "number": "6282611141409",
                "stamp": "2026-08-05 08:17:00"
            },
            "prices": {
                "buy": {
                    "user_id": 2295,
                    "agreement_name": "b2",
                    "price": {
                        "currency": "BYN",
                        "fare": 2236,
                        "tax": 424.2,
                        "tax_details": [
                            {
                                "code": "YQ",
                                "amount": "246.90"
                            },
                            {
                                "code": "YR",
                                "amount": "126.80"
                            },
                            {
                                "code": "CS",
                                "amount": "8.31"
                            },
                            {
                                "code": "UJ",
                                "amount": "25.58"
                            },
                            {
                                "code": "B8",
                                "amount": "16.61"
                            }
                        ],
                        "fee": 0,
                        "psp": 0,
                        "hidden": 0,
                        "total": 2660.2
                    },
                    "commission": []
                },
                "current": {
                    "user_id": 36813,
                    "agreement_name": "b2",
                    "price": {
                        "currency": "RUB",
                        "fare": 62610,
                        "tax": 11878,
                        "tax_details": [
                            {
                                "code": "YQ",
                                "amount": 247
                            },
                            {
                                "code": "YR",
                                "amount": 127
                            },
                            {
                                "code": "CS",
                                "amount": 9
                            },
                            {
                                "code": "UJ",
                                "amount": 26
                            },
                            {
                                "code": "B8",
                                "amount": 17
                            }
                        ],
                        "fee": 0,
                        "psp": 0,
                        "hidden": 0,
                        "total": 74488
                    },
                    "commission": []
                },
                "sell": {
                    "user_id": 250663,
                    "agreement_name": "1548",
                    "price": {
                        "currency": "RUB",
                        "fare": 2240,
                        "tax": 425,
                        "tax_details": [
                            {
                                "code": "YQ",
                                "amount": 247
                            },
                            {
                                "code": "YR",
                                "amount": 127
                            },
                            {
                                "code": "CS",
                                "amount": 9
                            },
                            {
                                "code": "UJ",
                                "amount": 26
                            },
                            {
                                "code": "B8",
                                "amount": 17
                            }
                        ],
                        "fee": 0,
                        "psp": 0,
                        "hidden": 0,
                        "total": 2665
                    },
                    "commission": []
                }
            }
        }
    ],
    "payment_methods": []
}
Modified at 2026-08-10 12:20:32
Previous
External system export
Next
Pet
Built with