Bookings load

Method

/air/bookings

Request parameters

Description

dateFrom

Period from YYYY-MM-DDTHH:MM:SS, e.g. 2015-03-29T21:12:00

dateTo

Period till YYYY-MM-DDTHH:MM:SS, e.g. 2015-03-29T21:12:00

recLoc

Record locator

unic_id

Unic id of the booking

status

Status of booking (0 - ACTIVE, 1 - CANCELED, 2 - ISSUED, 3 - PENDING, 4 - REJECTED, 5 - VOID, 6 - ERROR)

payStatus

Status of payment (0 - NOTPAID, 1 - PAID, 2 - PAYEDBYB2B)

refer

Referral of booking

source

Provider

Note: any of the parameters can be used alone or in combination with another parameter.

Please note that web hooks are also available to you to receive information about changes in air bookings.

Details

<?xml version="1.0" encoding="UTF-8"?>
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <StatusCode>200</StatusCode>
   <Status>OK</Status>
   <Data xsi:type="ArrayOfBooking">
      <Booking>
         <order_nmb>A15429</order_nmb>
         <order_id>A15429</order_id>
         <comp_id>12</comp_id>
         <comp_name>Demo</comp_name>
         <created>2016-01-22T12:08:06.6961924</created>
         <recloc>CZ8TPY</recloc>
         <unic_id>fbfb5351-a06c-4abe-9e80-b2bea9253cd6</unic_id>
         <hid>e20caaab-4a82-44b1-99d2-5f3738ef6f49</hid>
         <pcc>7J8J</pcc>
         <buyer_name>ALLA</buyer_name>
         <buyer_surname>IGNATENKO</buyer_surname>
         <buyer_phone>380970000583</buyer_phone>
         <buyer_email>[email protected]</buyer_email>
         <ga_user_id>176013697</ga_user_id>
         <custom_data>
            <item>
               <key>marker</key>
               <value>596f131be831c</value>
            </item>
            <item>
               <key>tduid</key>
               <value>ABAD43925</value>
            </item>
         </custom_data>
         <status>CANCELED</status>
         <route_type>OW</route_type>
         <plating_carrier>TK</plating_carrier>
         <plating_carrier_lang>Турецкие авиалинии [TK]</plating_carrier_lang>
         <segments>
            <segment>
               <start_airport>ODS</start_airport>
               <start_airport_lang>Одесса</start_airport_lang>
               <start_city>ODS</start_city>
               <start_city_lang>Одесса</start_city_lang>
               <start_country>UA</start_country>
               <start_country_lang>Украина</start_country_lang>
               <end_airport>IST</end_airport>
               <end_airport_lang>Ататюрк</end_airport_lang>
               <end_city>IST</end_city>
               <end_city_lang>Стамбул</end_city_lang>
               <end_country>TR</end_country>
               <end_country_lang>Турция</end_country_lang>
               <marketing_carrier>TK</marketing_carrier>
               <marketing_carrier_lang>Турецкие авиалинии [TK]</marketing_carrier_lang>
               <marketing_fltnmb>466</marketing_fltnmb>
               <operating_carrier>TK</operating_carrier>
               <operating_carrier_lang>Турецкие авиалинии [TK]</operating_carrier_lang>
               <departure>2016-09-23T10:25:00</departure>
               <arrival>2016-09-23T11:55:00</arrival>
               <booking_class>L</booking_class>
               <cabin_class>E</cabin_class>
               <status>HK</status>
               <equip>737</equip>
               <equip_lang>Боинг 737</equip_lang>
            </segment>
         </segments>
         <passengers_count>1</passengers_count>
         <active_segments_count>1</active_segments_count>
         <local_fare_total>3980.00</local_fare_total>
         <service_fee>10.00</service_fee>
         <mainagency_service_fee>0.00</mainagency_service_fee>
         <discount>0.00</discount>
         <total>3990.00</total>
         <currency>UAH</currency>
         <pay_status>NotPaid</pay_status>
         <refer>momondo</refer>
         <user>
            <id>3</id>
            <guid xsi:nil="true"/>
            <name>Dmitriy</name>
            <email>[email protected]</email>
         </user>
      </Booking>
   </Data>
</Response>

Structure of Booking object

Parameter

Description

order_nmb

Order number (or order_id - without prefix)

comp_id

Id of the agency

comp_name

Name of the agency

created

Date and time of creation

recloc

Booking locator

unic_id

Unic id of the booking (GUID)

pcc

PCC

buyer_email

Customers Email

buyer_name

Customers name

buyer_surname

Customers surname

buyer_phone

Customers phone

custom_data

Additional data for the order

status

Status of the booking: ACTIVE, CANCELED, ISSUED, PENDING, REJECTED, VOID, ERROR

pay_status

Status of payment: NOTPAID, PAID, PAYEDBYB2B

route_type

Type of route: OW, RT, MULTY

plating_carrier

Plating aircompany code

plating_carrier_lang

Plating aircompany

segments

Array of segments object

passengers_count

Count of passengers

active_segments_count

Count of active segments

local_fare_total

Fare + taxes

service_fee

Service fee

mainagency_service_fee

Service fee of main agency

discount

Discount

total

Total price

currency

Currency

refer

Referral of the order

user

The object of site user, who create an order

Structure of segment object

Field

Description

start_airport

IATA code of departure airport

start_airport_lang

Departure airport

start_city

IATA departure city code

start_city_lang

Departure city

start_country

IATA country code of departure

start_country_lang

Departure country

end_airport

IATA airport code of arrival

end_airport_lang

Arrival airport

end_city

IATA city code of arrival

end_city_lang

Arrival city

end_country

IATA code of the country of arrival

end_country_lang

Destination country

marketing_carrier

IATA marketing airline code

marketing_carrier_lang

Marketing airline

marketing_fltnmb

Flight number mark. a/v

operating_carrier

IATA operating airline code

operating_carrier_lang

Operating airline

departure

Departure date

arrival

Arrival date

booking_class

Booking class

cabin_class

Cabin class

status

Segment Status (Galileo)

equip

IATA aircraft type code

equip_lang

Aircraft type

Last updated