API methods

Method: order_info ( Information about order )

countrycitystationdiscountroutes_dayroutesorder_neworder_confirmorder_cancelorder_ticket_returnorder_ticket_cancelorder_restoreorder_infoorder_stat
Returns the information about passengers, discounts, ticket numbers of the said order
For the work with this method the API access key is required.

For example:

We receive the information about hash key test0order0hash

JSON:
https://eclub.com.ua/api/v1/json/order_info/test0api0key/?hash=test0order0hash

Acceptable parameters:

KeyTypeDescription
keycharAPI access key
hashcharHash key of order

Return values:

KeyTypeDescription
hashcharHash key of order
textcharMessage for the ticket
insurancecharInformation about insurance
namecharName and Surname of Client
phonecharContact telephone
emailcharEmail
pricedoublePrice
summdoubleSum
crccharUnits of money
routescharId of flight
rnamecharRoute
onwayintOn the way 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 departure
ttimeDD.MM.YYYY hh:mmTime of arrival
statuscharStatus of order (active, canceled)
ticketcharLink to the ticket ( PDF )
passangersarrayPassengers
KeyTypeDescription
placeintSeat
ticketcharTicket
namecharName und Surname
discountintId of discount
errorintCode of error ( 0 – no mistake, 1 – incorrect API access key, 301 – order with the specified hash key is not found )