¡Esta es una revisión vieja del documento!
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" SurName="string" Passport="string" Email="string" Address="string" Telephone1="string" Telephone2="string" Child="false" Age="0" DepartureFlight="string" ReturnFlight="string" /> <Pax Id="1" Name="string" SurName="string" Passport="string" Email="string" Address="string" Telephone1="string" Telephone2="string" Child="false" Age="0" DepartureFlight="string" ReturnFlight="string" /> </Paxes> <Rooms> <Room Type="Double" Category="Turista" Price="150.10"> <PaxIds> <PaxId>0</PaxId> <PaxId>1</PaxId> </PaxIds> </Room> </Rooms> </BookingInfo>
{ "Paxes": [ { "Id": 0, "Name": "string", "SurName": "string", "Passport": "string", "Email": "string", "Address": "string", "Telephone1": "string", "Telephone2": "string", "Child": false, "Age": 0, "DepartureFlight": "string", "ReturnFlight": "string" }, { "Id": 1, "Name": "string", "SurName": "string", "Passport": "string", "Email": "string", "Address": "string", "Telephone1": "string", "Telephone2": "string", "Child": false, "Age": 0, "DepartureFlight": "string", "ReturnFlight": "string" } ], "Rooms": [ { "Type": 1, "Category": 0, "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" SurName="string" Passport="string" Email="string" Address="string" Telephone1="string" Telephone2="string" Child="false" Age="0" DepartureFlight="string" ReturnFlight="string" /> <Pax Id="1011" Name="string" SurName="string" Passport="string" Email="string" Address="string" Telephone1="string" Telephone2="string" Child="false" Age="0" DepartureFlight="string" ReturnFlight="string" /> </Paxes> <Rooms> <Room Type="Double" Category="Turista" Price="150"> <PaxIds> <PaxId>1010</PaxId> <PaxId>1011</PaxId> </PaxIds> </Room> </Rooms> </BookingInfo> </Booking>
{ "Tours": [ { "Id": 1, "Name": "Esencia Europea 2017", "Image": "", "URL": "" }, { "Id": 2, "Name": "Europa Preferente 2017", "Image": "", "URL": "" }, { "Id": 3, "Name": "Ronda Europea 2017", "Image": "", "URL": "" }, { "Id": 4, "Name": "Viva Europa 2017", "Image": "", "URL": "" }, { "Id": 5, "Name": "Encanto de Europa 2017", "Image": "", "URL": "" }, { "Id": 6, "Name": "Europa Emocionante 2017", "Image": "", "URL": "" }, { "Id": 7, "Name": "Europa de Gala 2017", "Image": "", "URL": "" }, { "Id": 8, "Name": "Rutas de Europa 2017", "Image": "", "URL": "" }, { "Id": 9, "Name": "Europa Bella 2017", "Image": "", "URL": "" }, { "Id": 10, "Name": "Magia Europea 2017", "Image": "", "URL": "" } ] }