Ticketing Web Service

From docs.websky.tech
Revision as of 23:29, 27 February 2021 by I shaletin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Attention! The system implements an improved API-project "Nemo Connect", we strongly recommend to connect using the scheme described in the documentation at link.

Information

The agency ticketing API allows you to determine the validating carrier and the commission value from the airline for the booking, and to run the ticketing procedure.

As a rule for ticketing it is enough to have a "Paid" status. If the option For successful bookings do processing: automatically after changing the status to Paid" from the For technical support → Outdated settings → Booking settings section is activated, the ticket will be automatically issued after the payment. However, this is a prerequisite only for users, it is possible to get a ticket that does not require payment, for this you need to have API user rights. For example, API account must be created for the agency manager.

Additionally the Allowed IP addresses setting is implemented in the section System settings → Integration → Nemo 1.0 (SOAP API) , defining a range of IP addresses for additional protection of accounts under which a ticket is issued without paying or fixing the payment. IP-addresses have the following acceptable format: 125.125.25.5/8, that is possible to specify with the subnet mask.

Attention! When the Websky system does not have the booking locator data in the airline system, the ticketing operation is not possible. That's why in response to Ticketing request you may get an error message like "The requested operation is not allowed for this object". If GDS doesn't have data about a booking locator in the airline's system, an empty value will be returned in the response to the BookFlight request in the Segments.Segment.SupplierCode parameter. In this case you need to send an UpdateBook request several times until GDS side receives information about booking locator in the airline system. Websky system will then receive this value from GDS. The ticketing request can only be sent after a non-zero value is received in the Segments.Segment.SupplierCode parameter in the response from the Websky Agent API.

In Nemo Connect, additional settings have been added to the agent service (the interface to the booking server) for ticketing. The new version of the API allows you to:

  • report the VC (validating carrier) for a given combination
  • inform the commission for the given combination;
  • report the endorsements for the given combination;
  • accept ticketing requests;
  • check the availability of the booking in the GDS;
  • synchronize the booking;
  • perform ticketing;
  • transmit additional information in the remarks;
  • perform voiding for tickets.

General format of ticketing request/response

This request is launched after the payment for the order, it can be launched either manually - by a user who has rights for it - or automatically. It is possible to make a ticketing for unpaid order via Websky only from certain IP addresses, the list of which is configured in the settings section described above. When the ticketing request is triggered, the order update process is also launched, during which the price and other parameters of the order are checked, as well as its relevance is checked. Orders with an expired time limit cannot be ticketed.

WSDL: http://CLIENT_DOMAIN/nemoflights/wsdl.php?for=Ticketing

Expand

Request

Expand

Response

General format of the request / response of the voiding

This request is launched after the ticket is issued, if it is necessary to cancel it.

WSDL: http://CLIENT_DOMAIN/nemoflights/wsdl.php?for=VoidTicket

Expand

Request

Expand

Response

See also