Booking software

Inserting external contacts and bookings into the archive

## Contacts

To add contacts to the archive, transfer them with a POST request to `xml.php` with the following parameters:

- token: The valid token

- action: `insertContactArchive`

- form: array [] with the fields of the contact:

- customer: Name of the customer

- customer_number_old: previous customer number

- street: Street

- zip: ZIP CODE

- place: City / town

- mobilnr: Cell phone no

- email: E-mail address

- old_pw_hash: Hash value of the old password (string)

- old_pw_method: Method for encryption password (string)

- data: JSON object with all other data

The customer ID assigned by the ticket system is returned, which can optionally be transferred when entering an archive booking, for example.

## Bookings

To add bookings to the archive, you also transfer them with a POST request to the `xml.php` with the following parameters:

- token: The valid token

- action: `insertBookingArchive`

- form: array [] with the fields of the booking:

- transaction_nr: Booking number

- date_start: Unix timestamp of the departure date and time

- date_stop: Unix timestamp of the arrival date and time

- customer: Name of the customer

- customer_id: Travelmanager customer ID (optional, if known)

- customer_number_old: Previous customer number

- port_start: Port of departure as text or numerically with the Travelmanager port ID

- port_stop: Destination as text or numeric with the Travelmanager port ID

- single_journey: 1 if there is only one outward journey, 0 for outward and return journey

- ship: Name of the ship

- data: JSON string with all other relevant information about the booking

As confirmation you will receive `OK` from return.