This API allows you to push bookings in a TOWeRS system. The API supports two main endpoints:
/manager/generic_bookings - for pushing generic/transport service bookings/manager/hotel_bookings - for pushing hotel bookingsAll operations are authenticated via API key.
Authentication is handled via API key sent in the Authorization header.
Header format:
Authorization: ApiKey YOUR_API_KEY
Replace YOUR_API_KEY with the API key assigned to you.
The API supports the following HTTP operations:
All responses are returned in JSON format with the following top-level structure:
{
"name": "booking reference in TOWeRS system",
"status": "CNF|PND|CXL|SNT|SND|REJ",
"dossier": "container reference in TOWeRS system",
"customerreference": "reference in your system",
"error": "error message if operation failed (optional)",
"__metadata__": {
"app_server": "hostname:port",
"timestamp": "2024-01-31T10:56:27",
"request_id": "unique request identifier"
}
}
When inserting multiple bookings in a single request:
{
"results": [
{ "name": "B001...", "status": "CNF", ... },
{ "name": "B002...", "status": "CNF", ... }
],
"__metadata__": { ... }
}
The status field indicates the booking state:
Error responses return HTTP status codes and a JSON structure:
{
"error": "error description",
"debug_info": "additional error details",
"__metadata__": {
"app_server": "hostname:port",
"timestamp": "2024-01-31T10:56:27",
"request_id": "unique request identifier"
}
}
Requests accept application/json content type. If no content-type header is provided, the API will attempt to parse the payload as JSON.
YYYY-MM-DD formatHH:MM format (24-hour)