The Customer Login request can use three different 'LoginBy' modes: EmailAndPassword, EmailAndReference or BookingDetails which affects which fields in the request are required:
Login by EmailAndPassword
Email required
Password required
BookingReference required
Login by EmailAndReference
BookingReference required
Email required
Login by BookingDetails
BookingReference required
LastName required
DepartureDate required
Login by NoBooking
Email required
Password required
Frequently asked questions
The structure of the XML will be:
The response returned will include the return status (included in every response) to give basic information about whether the call was successful, along with the CustomerID and BookingID.
The structure of the XML will be:
Example request using EmailAndPassword 'LoginBy' method:
<CustomerLoginRequest>
<LoginDetails>
<Login>TestLogin</Login>
<Password>TestPassword</Password>
</LoginDetails>
<Email>john@doe.com</Email>
<Password>345ijlrf</Password>
<BrandID>1</BrandID>
<LoginBy>EmailAndPassword</LoginBy>
</CustomerLoginRequest>
Example request using EmailAndReference 'LoginBy' method:
<CustomerLoginRequest>
<LoginDetails>
<Login>TestLogin</Login>
<Password>TestPassword</Password>
</LoginDetails>
<BookingReference>1000035</BookingReference>
<Email>john@doe.com</Email>
<BrandID>1</BrandID>
<LoginBy>BookingDetails</LoginBy>
</CustomerLoginRequest>
Example request using BookingDetails 'LoginBy' method
<CustomerLoginRequest>
<LoginDetails>
<Login>TestLogin</Login>
<Password>TestPassword</Password>
</LoginDetails>
<BookingReference>1000035</BookingReference>
<LastName>Doe</LastName>
<DepartureDate>2014-08-24</DepartureDate>
<BrandID>1</BrandID>
<LoginBy>BookingDetails</LoginBy>
</CustomerLoginRequest>
The response will be the same for all three requests as they are all requests for the same data:
<CustomerLoginResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions/>
</ReturnStatus>
<CustomerID>5</CustomerID>
<BookingID>456</BookingID>
</CustomerLoginResponse>