API methods

Method: order_stat ( Orders of Company )

countrycitystationdiscountroutes_dayroutesorder_neworder_confirmorder_cancelorder_ticket_returnorder_ticket_cancelorder_restoreorder_infoorder_stat
Returns the information about orders for the given period of time
For the work with this method the API access key is required.

For example:

We receive the information about the Company orders from 01.04.2024 to 01.04.2025

JSON:
https://eclub.com.ua/api/v1/json/order_stat/test0api0key/?from=01-04-2024&to=01-04-2025

Acceptable parameters:

KeyTypeDescription
keycharAPI access key
fromDD-MM-YYYYDate (ISO 8601) from
toDD-MM-YYYYDate (ISO 8601) till

Return values:

KeyTypeDescription
hashcharHash key of order
textcharInformation for a 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
placeintPlace
ticketcharTicket
namecharName and Surname
discountintId of discount
errorintCode of error ( 0 – no mistake, 1 – incorrect API access key )