version: 1.3

Release Notes:

  • Fixing parsing error bug when you’re parsing XML document.
  • Function GetHotelList is no longer available.
  • Add API Function GetBookingDetail to check your booking.
  • Add Field Image on Hotel Detail so you can grab hotel image from our image library.

 (Updated: 12 September 2014)

 

  • Add API Function GetCity to check available city.

 (Updated: 29 September 2014)

 

  • Add API Function BookingHotDeal to make reservation for Hot Deal.
  • Add API Function BookingSuperDeal to make reservation for Super Deal.
  • Add API Function GetBonusNight to get the information about the promotion.
  • Add API Function BookingBonusNight to make reservation for Bonus Night.

 (Updated: 26 December 2014)


Rationale

 

 

Mandira Abadi Hotel Reservation is one of the leading Hotel Reservation in Indonesia. Since 2008, Mandira has developed an Extranet B2B System that allowed its supplier and sub agent to make a booking online transaction via our website http://www.mandiratravel.com.

 

As the technology rapidly growing, the requirement of the data has also significantly increased. The travel agent has realized the importance for having not only a website that contain static information of their company profile, but more than that, a website that has lots of feature for its customer to make an onlne reservation. What we’ve been receiving recently from our sub agent, some of them has been asking to have an access to our database using web service.

 

 

About Web Service

 

 

We have been trying to implement web service to our website. We provides two types of data for communication between web server, JSON and XML. In this documentation, it will explain the XML API Format that you can use later on to retrieve our data

 

 

XML

 

Requirement:

Before you can use each function, you need to have an ID Agent, Username and Password. Please contact Mandira if you don’t have the authorization. Please note that this user credential is different with the regular one that you used in our system.

 

There are 13 (thirteen) API Functions for Read and 4 (four) API Function for Write that can be used to get the data from Mandira Database

 

  1. GetAllotment
  2. GetAvailableRoom
  3. GetAvailableSuperDeal
  4. GetCutOffDate
  5. GetHotDealRates
  6. GetHotelDetail
  7. GetHotelListArea
  8. GetRegularRates
  9. GetSuperDealRates
  10. HotelSearch
  11. GetBookingDetail
  12. GetCity
  13. GetBonusNight

 

 

Technical Support

 

Please feel free to contact us for further question:

webmaster@mandiratravel.com

 

GetAllotment

 

URL: (will be provided in your scenario testing document)

Function: return allotment based on the parameter given

Parameter: HotelId, RoomType, Allotment_Start, Allotment_End

Return Value: Allotment

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetAllotment>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetAllotment_Request>

<HotelId>H0000600</HotelId>

<RoomType>ClubRoom</RoomType>

<Allotment_Start>2014-10-10</Allotment_Start>

<Allotment_End>2014-10-12</Allotment_End>

</GetAllotment_Request>

</WebService_GetAllotment>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetAllotment>

<Message>

<Status>Success</Status>

</Message>

<GetAllotment_Response>

<Date>2014-10-10</Date>

<Allotment>5</Allotment>

</GetAllotment_Response>

<GetAllotment_Response>

<Date>2014-10-11</Date>

<Allotment>5</Allotment>

</GetAllotment_Response>

<GetAllotment_Response>

<Date>2014-10-12</Date>

<Allotment>5</Allotment>

</GetAllotment_Response>

</WebService_GetAllotment>

 

GetAvailableRoom

 

URL: (will be provided in your scenario testing document)

Function: return available room based on the parameter given

Parameter: HotelId

Return Value: Available Room

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetAvailableRoom>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetAvailableRoom_Request>

<HotelId>H0000600</HotelId>

</GetAvailableRoom_Request>

</WebService_GetAvailableRoom>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetAvailableRoom>

<Message>

<Status>Success</Status>

</Message>

<GetAvailableRoom_Response>

<RoomType>ClubRoom</RoomType>

<Notes></Notes>

</GetAvailableRoom_Response>

<GetAvailableRoom_Response>

<RoomType>DeluxeRoom</RoomType>

<Notes>default</Notes>

</GetAvailableRoom_Response>

</WebService_GetAvailableRoom>

 

GetAvailableSuperDeal

 

URL: (will be provided in your scenario testing document)

Function: return available Super Deal based on the parameter given

Parameter: HotelId, RoomType

Return Value: BookingPeriod & TravelingPeriod of Super Deal

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetAvailableSuperDeal>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetAvailableSuperDeal_Request>

<HotelId>H0000582</HotelId>

<RoomType>The Haven Room</RoomType>

</GetAvailableSuperDeal_Request>

</WebService_GetAvailableSuperDeal>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetAvailableSuperDeal>

<Message>

<Status>Success</Status>

</Message>

<GetAvailableSuperDeal_Response>

<BookingPeriodStart>2014-09-01</BookingPeriodStart>

<BookingPeriodEnd>2014-09-14</BookingPeriodEnd>

<TravelingPeriodStart>2014-09-01</TravelingPeriodStart>

<TravelingPeriodEnd>2014-12-23</TravelingPeriodEnd>

</GetAvailableSuperDeal_Response>

</WebService_GetAvailableSuperDeal>

 

GetCutOffDate

 

URL: (will be provided in your scenario testing document)

Function: return cutoffdate and cancelation policy based on the parameter given

Parameter: HotelId, StartDate, EndDate

Return Value: CutOffDate and Cancelation Policy

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetCOD>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetCOD_Request>

<HotelId>H0000600</HotelId>

<COD_Start>2014-10-10</COD_Start>

<COD_End>2014-10-12</COD_End>

</GetCOD_Request>

</WebService_GetCOD>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetCOD>

<Message>

<Status>Success</Status>

</Message>

<GetCOD_Response>

<Date>2014-10-10</Date>

<COD>0</COD>

<Cancelation>0</Cancelation>

</GetCOD_Response>

<GetCOD_Response>

<Date>2014-10-11</Date>

<COD>0</COD>

<Cancelation>0</Cancelation>

</GetCOD_Response>

<GetCOD_Response>

<Date>2014-10-12</Date>

<COD>0</COD>

<Cancelation>0</Cancelation>

</GetCOD_Response>

</WebService_GetCOD>

 

GetHotDealRates

 

URL: (will be provided in your scenario testing document)

Function: return hot deal rates based on the parameter given

Parameter: HotelId, RoomType, StartDate, EndDate

Return Value: Hot Deal rates

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetHotDealRates>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetHotDealRates_Request>

<HotelId>H0000582</HotelId>

<RoomType>The Haven Room</RoomType>

<Rates_Start>2014-09-10</Rates_Start>

<Rates_End>2014-09-11</Rates_End>

</GetHotDealRates_Request>

</WebService_GetHotDealRates>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetHotDealRates>

<Message>

<Status>Success</Status>

</Message>

<GetHotDealRates_Response>

<Date>2014-09-10</Date>

<Currency>IDR</Currency>

<SingleBed>720000</SingleBed>

<DoubleBed>720000</DoubleBed>

<ExtraBed>0</ExtraBed>

<RoomOnly>720000</RoomOnly>

<CompulsoryDinner>0</CompulsoryDinner>

</GetHotDealRates_Response>

<GetHotDealRates_Response>

<Date>2014-09-11</Date>

<Currency>IDR</Currency>

<SingleBed>720000</SingleBed>

<DoubleBed>720000</DoubleBed>

<ExtraBed>0</ExtraBed>

<RoomOnly>720000</RoomOnly>

<CompulsoryDinner>0</CompulsoryDinner>

</GetHotDealRates_Response>

</WebService_GetHotDealRates>

 

GetHotelDetail

 

URL: (will be provided in your scenario testing document)

Function: return hotel detail based on the parameter given

Parameter: HotelId

Return Value: Hotel Detail

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetHotelDetail>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetHotelDetail_Request>

<HotelId>H0000600</HotelId>

</GetHotelDetail_Request>

</WebService_GetHotelDetail>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetHotelDetail>

<Message>

<Status>Success</Status>

</Message>

<GetHotelDetail_Response>

<HotelId>H0000600</HotelId>

<HotelName>Hotel Bumi Surabaya </HotelName>

<HotelAddress>Jl. Jend Basuki Rachmat 106-128</HotelAddress>

<HotelPhone>(031)5311234</HotelPhone>

<HotelFax>(031)5321508</HotelFax>

<HotelEmail></HotelEmail>

<HotelCity>Surabaya</HotelCity>

<HotelCountry>Indonesia</HotelCountry>

<HotelWebsite>-</HotelWebsite>

<HotelDescription></HotelDescription>

<HotelLocation></HotelLocation>

<HotelRoom></HotelRoom>

<HotelFacilities></HotelFacilities>

<HotelRoomFacilities></HotelRoomFacilities>

<HotelImage01>-</HotelImage01>

</GetHotelDetail_Response>

</WebService_GetHotelDetail>

 

GetHotelListArea

 

URL: (will be provided in your scenario testing document)

Function: return hotel list based on the parameter given

Parameter: Area

Return Value: Hotel List

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetHotelListArea>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetHotelListArea_Request>

<Area>Surabaya</Area>

</GetHotelListArea_Request>

</WebService_GetHotelListArea>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetHotelListArea>

<Message>

<Status>Success</Status>

</Message>

<GetHotelListArea_Response>

<HotelId>H0000904</HotelId>

<HotelName>Amaris Hotel Embong Malang Surabaya</HotelName>

<HotelAddress>Jl. Kedungdoro 1-3</HotelAddress>

<HotelPhone>(031)5482299</HotelPhone>

<HotelFax>(031)5492299</HotelFax>

<HotelEmail>-</HotelEmail>

<HotelCity>Surabaya</HotelCity>

<HotelCountry>Indonesia</HotelCountry>

<HotelWebsite>-</HotelWebsite>

<HotelDescription>-</HotelDescription>

<HotelLocation>-</HotelLocation>

<HotelRoom>-</HotelRoom>

<HotelFacilities>-</HotelFacilities>

<HotelRoomFacilities>-</HotelRoomFacilities>

</GetHotelListArea_Response>

</WebService_GetHotelListArea>

 

GetRegularRates

 

URL: (will be provided in your scenario testing document)

Function: return regular rates based on the parameter given

Parameter: HotelId, RoomType, StartDate, EndDate

Return Value: Regular rates

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetRegularRates>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetRegularRates_Request>

<HotelId>H0000600</HotelId>

<RoomType>ClubRoom</RoomType>

<Rates_Start>2014-10-10</Rates_Start>

<Rates_End>2014-10-11</Rates_End>

</GetRegularRates_Request>

</WebService_GetRegularRates>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetRegularRates>

<Message>

<Status>Success</Status>

</Message>

<GetRegularRates_Response>

<Date>2014-10-10</Date>

<Currency>IDR</Currency>

<SingleBed>1320000</SingleBed>

<DoubleBed>1320000</DoubleBed>

<ExtraBed>399000</ExtraBed>

<RoomOnly>0</RoomOnly>

<CompulsoryDinner>0</CompulsoryDinner>

</GetRegularRates_Response>

<GetRegularRates_Response>

<Date>2014-10-11</Date>

<Currency>IDR</Currency>

<SingleBed>1320000</SingleBed>

<DoubleBed>1320000</DoubleBed>

<ExtraBed>399000</ExtraBed>

<RoomOnly>0</RoomOnly>

<CompulsoryDinner>0</CompulsoryDinner>

</GetRegularRates_Response>

</WebService_GetRegularRates>

 

GetSuperDealRates

 

URL: (will be provided in your scenario testing document)

Function: return super deal rates based on the parameter given

Parameter: HotelId, RoomType, BookingPeriod

Return Value: Super Deal rates

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetSuperDealRates>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetSuperDealRates_Request>

<HotelId>H0000582</HotelId>

<RoomType>The Haven Room</RoomType>

<BookingPeriod>2014-09-10</BookingPeriod>

</GetSuperDealRates_Request>

</WebService_GetSuperDealRates>

 

Response from XML API Mandira:

—————————————————————————————————————————

<WebService_GetSuperDealRates>

<Message>

<Status>Success</Status>

</Message>

<GetSuperDealRates_Response>

<Date>2014-09-01</Date>

<Currency>IDR</Currency>

<SingleBed>670000</SingleBed>

<DoubleBed>670000</DoubleBed>

<ExtraBed>0</ExtraBed>

<RoomOnly>670000</RoomOnly>

<CompulsoryDinner>0</CompulsoryDinner>

</GetSuperDealRates_Response>

<GetSuperDealRates_Response>

<Date>2014-09-02</Date>

<Currency>IDR</Currency>

<SingleBed>670000</SingleBed>

<DoubleBed>670000</DoubleBed>

<ExtraBed>0</ExtraBed>

<RoomOnly>670000</RoomOnly>

<CompulsoryDinner>0</CompulsoryDinner>

</GetSuperDealRates_Response>

</WebService_GetSuperDealRates>

 

HotelSearch

 

URL: (will be provided in your scenario testing document)

Function: return hotel list based on the parameter given

Parameter: String

Return Value: Hotel List

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_HotelSearch>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<HotelSearch_Request>

<Teks>Ibis</Teks>

</HotelSearch_Request>

</WebService_HotelSearch>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_HotelSearch>

<Message>

<Status>Success</Status>

</Message>

<HotelSearch_Response>

<HotelId>H0000819</HotelId>

<HotelName>Ibis Bali Kuta</HotelName>

<HotelAddress>Jl.Raya Kuta No.77</HotelAddress>

<HotelPhone>(0361)756 500</HotelPhone>

<HotelFax>(0361)756 200</HotelFax>

<HotelEmail>-</HotelEmail>

<HotelCity>Bali</HotelCity>

<HotelCountry>Indonesia</HotelCountry>

<HotelWebsite>-</HotelWebsite>

<HotelDescription>-</HotelDescription>

<HotelLocation>-</HotelLocation>

<HotelRoom>-</HotelRoom>

<HotelFacilities>-</HotelFacilities>

<HotelRoomFacilities>-</HotelRoomFacilities>

<HotelImage01>-</HotelImage01>

</HotelSearch_Response>

</WebService_HotelSearch>

 

GetBookingDetail

 

URL: (will be provided in your scenario testing document)

Function: return hotel list based on the parameter given

Parameter: ReferenceId

Return Value: Booking Detail

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetBookingDetail>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetBookingDetail_Request>

<ReferenceId>KITWL68C</ReferenceId>

</GetBookingDetail_Request>

</WebService_GetBookingDetail>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetBookingDetail>

<Message>

<Status>Success</Status>

</Message>

<GetBookingDetail_Response>

<BookingTime>2014-09-09 16:20:55</BookingTime>

<HotelId>H0000626</HotelId>

<HotelName>Mandira Trial Hotels</HotelName>

<HotelAddress>Kedungsari no. 31</HotelAddress>

<HotelPhone>031-5454268</HotelPhone>

<HotelFax>-</HotelFax>

<GuestName>MR. BUDI SUCIPTO</GuestName>

<GuestTelephone>081330995038</GuestTelephone>

<GuestNumber>2</GuestNumber>

<CheckIn>2014-10-01</CheckIn>

<CheckOut>2014-10-02</CheckOut>

<BedType>Double</BedType>

<RoomType>Deluxe</RoomType>

<TotalRoomNight>1</TotalRoomNight>

<TotalOutstanding>610000</TotalOutstanding>

<Remarks>-</Remarks>

<Status>RECONFIRMED</Status>

</GetBookingDetail_Response>

</WebService_GetBookingDetail>

 

GetCity

 

URL: (will be provided in your scenario testing document)

Function: return city/area list based on the parameter given

Parameter: none

Return Value: City List

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetCity>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetCity_Request>

</GetCity_Request>

</WebService_GetCity>

 

Response from XML API Mandira:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetCity>

<Message>

<Status>Success</Status>

</Message>

<GetCity_Response>

<City>Ambon</City>

</GetCity_Response>

<GetCity_Response>

<City>Bali</City>

</GetCity_Response>

<GetCity_Response>

<City>Balikpapan</City>

</GetCity_Response>

</WebService_GetCity>

 

GetBonusNight

 

URL: (will be provided in your scenario testing document)

Function: return bonus night rates based on the parameter given

Parameter: HotelId, RoomType, BookingPeriod

Return Value: Bonus Night rates

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_GetBonusNightRates>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<GetBonusNightRates_Request>

<HotelId>H0000582</HotelId>

<RoomType>The Haven Room</RoomType>

<BookingPeriod>2014-09-10</BookingPeriod>

</GetBonusNightRates_Request>

</WebService_GetBonusNightRates>

 

Response from XML API Mandira:

—————————————————————————————————————————

<WebService_GetBonusNightRates>

<Message>

<Status>Success</Status>

</Message>

<GetBonusNightRates_Response>

<Date>2014-09-01</Date>

<Currency>IDR</Currency>

<SingleBed>670000</SingleBed>

<DoubleBed>670000</DoubleBed>

<ExtraBed>0</ExtraBed>

<RoomOnly>670000</RoomOnly>

<CompulsoryDinner>0</CompulsoryDinner>

</GetBonusNightRates_Response>

<GetBonusNightRates_Response>

<Date>2014-09-02</Date>

<Currency>IDR</Currency>

<SingleBed>670000</SingleBed>

<DoubleBed>670000</DoubleBed>

<ExtraBed>0</ExtraBed>

<RoomOnly>670000</RoomOnly>

<CompulsoryDinner>0</CompulsoryDinner>

</GetBonusNightRates_Response>

</WebService_GetBonusNightRates>

 

Booking Service

 

We are developing API to enable you for making booking through web service. Before we can show you the XML Format, you need to know about the parameters of the request XML

 

Parameter Name Parameter Type Sample of Data
HotelId String H0000626
GuestName String
  1. WAHYU KURNIAWAN
GuestNumber Integer 2
Phone String 081123456789
CheckIn Date yyyy-mm-dd 2014-10-01
CheckOut Date yyyy-mm-dd 2014-10-02
RoomType String Deluxe
BedType String Double
Qty Integer 1
Remarks String Non Smoking

 

Once you call this API, check parameter Message, it will return you with the message as below

 

SUCCESS MESSAGE

 

Congratulations! You will get the ReferenceId for your booking

 

FAILED MESSAGE

 

  • *** Hotel tidak ditemukan!
  • *** Nama Tamu terlalu panjang!
  • *** Jumlah Tamu melebihi batas yang ditentukan!
  • *** Jumlah Tamu tidak valid!
  • *** Telepon terlalu panjang!
  • *** Tanggal Check In invalid!
  • *** Tanggal Check Out invalid!
  • *** Periode yang anda pilih menerapkan Minimum Stay Policy…
  • *** Periode tersebut tidak valid karena dalam masa cutoff date!
  • *** Periode yang diminta melebihi batas maksimum booking!
  • *** Periode yang dipilih tidak valid!
  • *** Tipe Kamar tidak ditemukan!
  • *** Jumlah Kamar yang dibooking melebihi batas yang ditentukan!
  • *** Allotment tidak mencukupi!
  • *** Jumlah Kamar yang dibooking tidak valid!
  • *** Tipe Bed yang dipilih tidak valid!

 

When you encountered the Failed Message, make sure to check your parameter based on the failed message that you received. Next, you will see the sample of the XML.

 

BookingRegular

 

URL: (will be provided in your scenario testing document)

Function: return ReferenceId of your booking!

Parameter: as described in previous page

Return Value: ReferenceId

 

Example XML Request:

—————————————————————————————————————————

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_BookingRegular>

<AgentLogin>

<APIKey>YourAPIKey</APIKey>

<AgentId>YourAgentID</AgentId>

<AgentName>YourAgentName</AgentName>

<AgentPassword>YourAgentPassword</AgentPassword>

</AgentLogin>

<BookingRegular_Request>

<HotelId>H0000626</HotelId>

<GuestName>MR. BUDI SUCIPTO</GuestName>

<GuestNumber>2</GuestNumber>

<Phone>081330995038</Phone>

<CheckIn>2014-10-01</CheckIn>

<CheckOut>2014-10-02</CheckOut>

<RoomType>Deluxe</RoomType>

<BedType>Double</BedType>

<Qty>1</Qty>

<Remarks>TRIAL WEB SERVICE</Remarks>

</BookingRegular_Request>

</WebService_BookingRegular>

 

Response from XML API Mandira:

—————————————————————————————————————————

FAILED

<?xml version=”1.0″ encoding=”UTF-8″?>

<WebService_BookingRegular>

<Message>

<Status>*** Allotment tidak mencukupi!</Status>

</Message>

</WebService_BookingRegular>

 

SUCCESS

<?xml version=”1.0″ encoding=”UTF-8″ ?>

<WebService_BookingRegular>

<Message>

<Status>Success</Status>

</Message>

<BookingRegular_Response>

<ReferenceId>3SNBV5CW</ReferenceId>

</BookingRegular_Response>

</WebService_BookingRegular>

 

Other Booking Service

 

Besides the Regular Booking, we also developed another three bookings which we believe will give you the advantages and experience a booking with special rates!

 

HOT DEAL

Special rates from our hotel which allow you to book in the same month

 

SUPER DEAL

Sepecial rates from our hotel that define a specific Booking and Traveling Period for you convenience

 

BONUS NIGHT

Special offer for you to get one night additional for FREE

 

The parameters given to the API will be the same as Regular Booking, unless for Bonus Night Booking, there’s one additional parameter to determine which package that you book:

3N Pay 2N

4N Pay 3N

5N Pay 4N

6N Pay 5N

7N Pay 6N

Please note that you have to pass the parameter exactly the same as above

 

Here’s also the additional failed message

  • *** Maaf tidak dapat melakukan reservasi karena terbentur dengan Booking Period!
  • *** Maaf tidak dapat melakukan reservasi karena terbentur dengan Traveling Period!
  • *** Tipe Bed yang dipilih tidak valid!
  • *** Tipe Bonus Night yang dipilih tidak valid!

Oleh: Wahyu Kurniawan

 

Tags: