Modificación de reservas.
Verbo HTTP: PATCH Recurso: /tour Método: /book
—————————————————————————————————————————————————
Parámetros obligatorios:
* bookingID: Identificador de la reserva
Parámetros opcionales:
* departure: Fecha nueva de salida del tour (para cambios en salidas del mismo tour)
* pax: Número actual de personas en la reserva (para añadir personas)
* bookingInfo: Información de los viajeros y habitaciones de la reserva
* completeTour: Controla si se desea cambiar de tour completo a paricconsulta es sobre el tour completo o
parcial (días en concreto). Por defecto: true
* entryDate: Fecha de entrada al tour (para rutas parciales) -> yyyy-MM-dd
* exitDate: Fecha de salida del tour (para rutas parciales) -> yyyy-MM-dd
* output: Formato de salida de la consulta (XML o JSON)
—————————————————————————————————————————————————
El elemento “bookingInfo” tiene la siguiente estructura:
Nota: La información sobre las personas, excepto el identificador, nombre y apellidos, podrá ser completada con posterioridad.
A continuación tenemos ejemplos del elemento “BookingInfo”:
<BookingInfo> <Paxes> <Pax Id="0" Name="string" Passport="string" Email="string" Address="string" Telephone="string" Child="false" Age="0" DepartureFlight="string" ReturnFlight="string" /> <Pax Id="1" Name="string" Passport="string" Email="string" Address="string" Telephone="string" Child="false" Age="0" DepartureFlight="string" ReturnFlight="string" /> </Paxes> <Rooms> <Room Type="Double" Price="150.10"> <PaxIds> <PaxId>0</PaxId> <PaxId>1</PaxId> </PaxIds> </Room> </Rooms> </BookingInfo>
{ "Paxes": [ { "Id": 0, "Name": "string", "Passport": "string", "Email": "string", "Address": "string", "Telephone": "string", "Child": false, "Age": 0, "DepartureFlight": "string", "ReturnFlight": "string" }, { "Id": 1, "Name": "string", "Passport": "string", "Email": "string", "Address": "string", "Telephone": "string", "Child": false, "Age": 0, "DepartureFlight": "string", "ReturnFlight": "string" } ], "Rooms": [ { "Type": 1, "PaxIds": [ 0,1 ], "Price": 150 } ] }
<Booking Confirmed="true" Modified="true" BookingNumber="6" Price="150" Pax="2" TourID="1" CompleteTour="true" EntryDate="0001-01-01T00:00:00" ExitDate="0001-01-01T00:00:00" BookingDate="2016-11-10T15:10:40.3725412+01:00" StartDate="2017-01-27T00:00:00"> <Error /> <ErrorCode>No_Error</ErrorCode> <BookingInfo> <Paxes> <Pax Id="1010" Name="string" Passport="string" Email="string" Address="string" Telephone="string" Child="false" Age="0" DepartureFlight="string" ReturnFlight="string" /> <Pax Id="1011" Name="string" Passport="string" Email="string" Address="string" Telephone="string" Child="false" Age="0" DepartureFlight="string" ReturnFlight="string" /> </Paxes> <Rooms> <Room Type="Double" Price="150"> <PaxIds> <PaxId>1010</PaxId> <PaxId>1011</PaxId> </PaxIds> </Room> </Rooms> </BookingInfo> </Booking>
{ "Confirmed": true, "Modified": true, "BookingNumber": 7, "Error": "", "ErrorCode": 0, "BookingInfo": { "Paxes": [ { "Id": 1012, "Name": "string", "Passport": "string", "Email": "string", "Address": "string", "Telephone": "string", "Child": false, "Age": 0, "DepartureFlight": "string", "ReturnFlight": "string" }, { "Id": 1013, "Name": "string", "Passport": "string", "Email": "string", "Address": "string", "Telephone": "string", "Child": false, "Age": 0, "DepartureFlight": "string", "ReturnFlight": "string" } ], "Rooms": [ { "Type": 1, "PaxIds": [ 1012, 1013 ], "Price": 150 } ] }, "Price": 150, "Pax": 2, "TourID": 1, "CompleteTour": true, "EntryDate": "0001-01-01T00:00:00", "ExitDate": "0001-01-01T00:00:00", "BookingDate": "2016-11-10T15:21:40.5960815+01:00", "StartDate": "2017-01-13T00:00:00" }