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:Key | Type | Description |
---|
key | char | API access key | routes | char | Id of flight | from | int | Id of city of departure | to | int | Id of city of arrival | crc | char | Units of money ( eur, uah, auto - route value ) | mainname | char | Surname and name of client | phone | char | Contact telephone | email | char | Email | passangers | array | PassengersKey | Type | Description |
---|
name | char | Surname and Name ( in Latin letters as in travel passport ) | discount | int | Id of discount |
|
Return values:Important: when sending a request with the test key "test0api0key", the test data are always returned by default. Key | Type | Description |
---|
hash | char | Hash key of order | text | char | Message for ticket | insurance | char | Information about insurance | name | char | Name and Surname of Client | phone | char | Contact telephone | email | char | Email | price | double | Price | summ | double | Sum | crc | char | Units of money | routes | char | Id of flight | rname | char | Route | onway | int | On the way total number of full days | rdate | DD-MM-YYYY | Date of departure on route (ISO 8601) | from_city | char | City of departure | fstation | char | Station of departure | ftime | DD.MM.YYYY hh:mm | Time of departure | to_city | char | City of arrival | tstation | char | Station of arrival | ttime | DD.MM.YYYY hh:mm | Time of arrival | status | char | Status of order ( active, canceled ) | ticket | char | Link to the ticket ( PDF ) | passangers | array | PassengersKey | Type | Description |
---|
place | int | Seat | ticket | char | Ticket | name | char | Surname and Name | discount | int | Id of discount |
| error | int | Code 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 ) |
|