API methods

Method: order_new ( Booking the passengers for trip by air, sea, train and bus )

countrycitystationdiscountroutes_dayroutesorder_neworder_confirmorder_cancelorder_ticket_returnorder_ticket_cancelorder_restoreorder_infoorder_stat
Book the passengers for a selected flight, create the new order
For the work with this method the API access key is required.

For example:


Acceptable parameters:

KeyTypeDescription
keycharAPI access key
routescharId of flight
fromintId of city of departure
tointId of city of arrival
crccharUnits of money ( eur, uah, auto - route value )
mainnamecharSurname and name of client
phonecharContact telephone
emailcharEmail
passangersarrayPassengers
KeyTypeDescription
namecharSurname and Name ( in Latin letters as in travel passport )
discountintId of discount

Return values:

Important: when sending a request with the test key "test0api0key", the test data are always returned by default.
KeyTypeDescription
hashcharHash key of order
textcharMessage for ticket
insurancecharInformation about insurance
namecharName and Surname of Client
phonecharContact telephone
emailcharEmail
pricedoublePrice
summdoubleSum
crccharUnits of money
routescharId of flight
rnamecharRoute
onwayintOn the way total number of full days
rdateDD-MM-YYYYDate of departure on route (ISO 8601)
from_citycharCity of departure
fstationcharStation of departure
ftimeDD.MM.YYYY hh:mmTime of departure
to_citycharCity of arrival
tstationcharStation of arrival
ttimeDD.MM.YYYY hh:mmTime of arrival
statuscharStatus of order ( active, canceled )
ticketcharLink to the ticket ( PDF )
passangersarrayPassengers
KeyTypeDescription
placeintSeat
ticketcharTicket
namecharSurname and Name
discountintId of discount
errorintCode of error ( 0 – no error, 1 – incorrect API access key, 201 – flight with the selected Id is not found, 202 - there are no seats available, 203 – there are not the cities in the said route from and to, 204 – the time of booking for the said route has passed )