API methods

Method: order_ticket_cancel ( Cancel of ticket )

countrycitystationdiscountroutes_dayroutesorder_neworder_confirmorder_cancelorder_ticket_returnorder_ticket_cancelorder_restoreorder_infoorder_stat
Cancels the order for one /several passengers by number/numbers of tickets, at least one passenger must remain in the order.
For the work with this method the API access key is required.

For example:


Acceptable parameters:

KeyTypeDescription
keycharAPI access key
hashcharHash key of order
ticketscharNumbers of tickets through comma

Return values:

KeyTypeDescription
ticketsarrayTickets
KeyTypeDescription
ticketcharTicket
statusintStatus ( 1 –the ticket is found, 0 – the ticket is not found )
canceledintNumber of tickets cancelled
statusbooleanStatus of fulfillment of operation ( 1 – fulfilled, all found tickets are cancelled, , 0 – not fulfilled, all tickets are not cancelled )
errorintCode of error ( 0 – no mistake, 1 – incorrect API access key, 301 – order with the specified hash key is not found, 303 - no cancellation tickets found, 304 - no passengers remain in the booking )