Avalon Web API - Operations Reservations
Avalon Web API - Operations Reservations
HOTEL CHAINS
holiday / urban / resorts
Review 2.2
Gremi Sabaters, 21
Edificio Naranja. Oficina B 35
Polígono de Son Castelló
07009 Palma de Mallorca
T. 871.93.2000
[email protected]
AVALON API OPERATIONS RESERVATIONS SPECIFICATIONS
NEWS
REVIEW 2.2
REVIEW 2.1
REVIEW 2
REVIEW 1.9
REVIEW 1.8
REVIEW 1.7
REVIEW 1.6
REVIEW 1.5
REVIEW 1.4
• Data type mistake in LSReservaCliente: fields Imagen and Firma must be base64string instead of byte[].
• Data type mistake in LSImageInfo: field Imagen must be base64string instead of byte[].
• Data type mistake in LSSignatureInfo: field Firma must be base64string instead of byte[].
• New method to get mandatory fields at pre-check in.
REVIEW 1.3
REVIEW 1.2
AVALON API OPERATIONS RESERVATIONS SPECIFICATIONS
REVIEW 1.1
REVIEW 1.0
• Initial review
AVALON API OPERATIONS RESERVATIONS SPECIFICATIONS
CONTENT
AUTHENTICATION
X-API-KEY
RESERVATIONS
Reservations Pending to Check In or Checked In
Reservations Pending to Check In
Reservations Checked In
All reservations states
Reservations per room
Update reservation comments
Reservation Check Out
CLIENTS
Update customer data
Update information gathering agreement
Update customer image
AUTHENTICATION
A new authentication system has been implemented to access the Web API. This system is configurable by the client,
so you must contact your clients to determine which installations it is necessary to use authentication and which
installations it is not required.
To implement authentication in your system, you must include the following data in the requests you make:
x-api-key
Header
Key: x-api-key Value:250a825d89b14fdb9d54100ea55e0fad6c5f1e8bafaa47b4b1fadfc72816c5c1
Example
AVALON API OPERATIONS RESERVATIONS SPECIFICATIONS
RESERVATIONS
…/AWWebAPI/api/aw/awa/GetAWAReservation?Hotel=[...]&Localizador=[...] …
…/AWWebAPI/api/aw/awa/GetAWAReservationPCI?Hotel=[...]&Localizador=[...] …
…/AWWebAPI/api/aw/awa/GetAWAReservationAll?Hotel=[...]&Localizador=[...] …
…/AWWebAPI/api/aw/awa/GetAWAReservationCI?Hotel=[...]&Localizador=[...] …
Parameters that accept these four previous methods are the following:
Hotel Required
Localizador Locator
Bono Voucher
Apellido Surname
Email
FechaEntrada yyyy-mm-dd Check-In date
FechaSalida yyyy-mm-dd Check-Out date
In addition to the Hotel, it is necessary to indicate at least one more parameter in order to obtain the result.
In the locator we can indicate the itself locator, the number of reserve or the reserve with line on format RESERVE-LINE
…/AWWebAPI/api/aw/awa/GetAWAReservationByRoom?Hotel=[...]&Habitacion=[...]
Hotel Required
Habitación Required Room
Previous methods always return response code 200(OK), whose content adjust to the following structure, taking into
account that if there has been any error it will be indicated in the Warning field:
DC Objeto (DatosComunicacion)
Descripcion nvarchar(50) Description
Direccion nvarchar(50) Address
CodigoPostal nvarchar(20) Postal code
Poblacion nvarchar(50) City
Provincia nvarchar(30) Province/County
ComunidadAutonoma nvarchar(20) Autonomous community
Pais nvarchar(20) Country
ApartadoCorreos nvarchar(20) Post office box
Telefono nvarchar(30) Telephone number
TelefonoMovil nvarchar(30) Mobile number
Fax nvarchar(30)
EMail nvarchar(100)
Warning nvarchar(MAX)
Note: If fields Locator or Reference don’t have a value will be use values of Reservation and Line respectively.
Note: When specified the room value, the hotel value will filter by hotel code.
AVALON API OPERATIONS RESERVATIONS SPECIFICATIONS
…/AWWebAPI/api/aw/awa/PostAWAReservationComments
The structure (ReservaMasterAWA) is the same as that of the previous section, but in this case, to identify the reservation
in Avalon it is only necessary to send the fields that are detailed below:
Hotel nvarchar(20)
LSReservas Lista (ReservaMasterAWA) Reservations
HotelFactura nvarchar(20) Invoicing Hotel
Reserva nvarchar(20) Reservation Code
Localizador nvarchar(50) Locator
EntidadNegocio nvarchar(20) Business Entity
The hotel code indicated first is the reference hotel, to which must belong all the reservations included in the POST.
The reservation too can be search using the locator as reserve and reference as line.
Then we have 3 possibilities:
• Locator with reference
• Locator with line (putting on reference)
• Reserve (putting on locator) with line
This method always return response code 200(OK), whose content adjust to the following structure, taking into account
that if there has been any error it will be indicated in the Warning field:
Response
Warning nvarchar(MAX) Warning
…/AWWebAPI/api/aw/awa/PostAWAReservationCheckOut
To make the checkOut of a reservation you must send a JSON specifying the hotel, reservation and reservation line
Note: We apply the same logic that Avalon does in CO (The reservation must exist, the reservation must not have
pending invoices, etc...)
AVALON API OPERATIONS RESERVATIONS SPECIFICATIONS
CLIENTS
The following describes the methods to obtain customers data from hotel reservations. When dealing with POST method
the information is not sent through parameters in the URL, it must be introduced in the body of the request.
…/AWWebAPI/api/aw/awa/PostAWAReservationGuests
The structure (ReservaMasterAWA) is the same as that of the previous section, but in this case, to identify the reservation
in Avalon it is only necessary to send the fields that are detailed below:
Hotel nvarchar(20)
LSReservas Lista (ReservaMasterAWA) Reservations
HotelFactura nvarchar(20) Invoicing Hotel
Reserva nvarchar(20) Reservation Code
Localizador nvarchar(50) Locator
EntidadNegocio nvarchar(20) Business Entity
Once the reservation is identified, all the fields sent to the list LSReservaCliente will be updated.
The hotel code indicated first is the reference hotel, to which must belong all the reservations included in the POST.
The reservation too can be search using the locator as reserve and reference as line.
Then we have 3 possibilities:
• Locator with reference
• Locator with line (putting on reference)
• Reserve (putting on locator) with line
This method always return response code 200(OK), whose content adjust to the following structure, taking into account
that if there has been any error it will be indicated in the Warning field:
Response
Warning nvarchar(MAX) Warning
…/AWWebAPI/api/aw/awa/PostAWAGuestsAssent
Hotel nvarchar(20)
LSEMailInfo Lista (EMailInfo)
EMail nvarchar(100)
AceptaInformacion bool Keep informed
…/AWWebAPI/api/aw/awa/PostAWAGuestImage
Hotel nvarchar(20)
LSImageInfo Lista (ImageInfo)
TipoDocumento nvarchar(20) Document type
NumeroDocumento nvarchar(20) Document number
Imagen base64string Image
AVALON API OPERATIONS RESERVATIONS SPECIFICATIONS
…/AWWebAPI/api/aw/awa/PostAWAGuestSignature
Hotel nvarchar(20)
LSSignatureInfo Lista (SignatureInfo)
TipoDocumento nvarchar(20) Document type
NumeroDocumento nvarchar(20) Document number
Firma base64string Signature
This update methods always return response code 200(OK), taking into account that if there has been any error it will
be indicated in the Warning field.
…/AWWebAPI/api/aw/awa/GetAWAMandatoryFieldsPCI?Hotel=[...]
In this case, the parameters accepted by this method are the following (GET):
Hotel nvarchar(20)
This method always return response code 200(OK), whose content adjust to the following structure, taking into account
that if there has been any error it will be indicated in the Warning field: