Booking software

Determine free seats for a route

To determine the free seats for a route and block them temporarily, you must perform a GET call with the following parameters:

Mandatory parameters

  • action: getSitzplatz (Specifies the action)
  • class_id: ID of the booking class
  • ship_id: ID of the resource
  • start_line_port_id: ID of the start station in the line-port table
  • stop_linie_hafen_id: ID of the destination station in the line-port table
  • trip: Number of the trip
  • line_id: ID of the line
  • seat_plan_category_id: ID of the seating plan category (value from the field "schiff_sitzplan_kategorie_id" from the timetable result)
  • token: XML token (provided by the provider)
  • datum_fahrt: Date of the trip as Unix timestamp (Attention: Use the date from the request array. For multi-day lines, the start date of the first stop)

Return values

  • If there is no result, an empty array is returned.
  • If the call is successful, you will receive a multidimensional array in which the occupied node contains the occupied seats (the key is the seat number), and seats contains the total available seats for the request.

Example call

xml.php?action=getseat&token=xyz&line_id=3&class_id=3&trip=2&date_trip=1580857200&start_line_port_id=9&stop_line_port_id=15&seat_category_id=1