Adding External Contacts and Bookings to the Archive
External contacts and bookings can be transferred to the archive with POST requests to xml.php.
Contacts
To add contacts to the archive, send the following parameters:
| Parameter | Description |
|---|---|
token | Valid API token. |
aktion | insertContactArchive |
form | Array containing contact fields. |
kunde | Customer name. |
kundennummer_old | Previous customer number. |
strasse | Street. |
plz | Postal code. |
ort | City or place. |
mobilnr | Mobile number. |
email | Email address. |
old_pw_hash | Hash value of the old password. |
old_pw_method | Password encryption method. |
data | JSON object with additional data. |
The response contains the customer ID assigned by the ticket system. This ID can optionally be used when adding an archived booking.
Bookings
To add bookings to the archive, send the following parameters:
| Parameter | Description |
|---|---|
token | Valid API token. |
aktion | insertBookingArchive |
form | Array containing booking fields. |
vorgang_nr | Booking number. |
datum_start | Unix timestamp of departure date and time. |
datum_stop | Unix timestamp of arrival date and time. |
kunde | Customer name. |
kunde_id | Travelmanager customer ID, optional if known. |
kundennummer_old | Previous customer number. |
hafen_start | Departure station as text or Travelmanager station ID. |
hafen_stop | Destination station as text or Travelmanager station ID. |
einfache_fahrt | 1 for one-way trips, 0 for return trips. |
schiff | Resource or ship name. |
data | JSON string with additional booking information. |
The response returns OK as confirmation.