DOKUMENTASI API HOTEL { JSON } (v. 1.1) (last update: 16/08/2016)
HISTORY UPDATE -
Launching API Hotel
:
Aug 2016
DOWNLOAD DAFTAR HOTEL http://klikmbc.co.id/json/hotel/listhotel.zip
LIST ID KOTA & NEGARA URL: http://klikmbc.co.id/json/hotel/getlist METHOD: POST REQUIRED PARAMETERS: username password
: (ex: dummy) : (ex: dummy123)
RETURN TYPE: JSON Body: Respon Berhasil: [{"hotel_citycode":"MA02021998","hotel_cityname":"Albania","hotel_countryco de":"MA05110124","hotel_countryname":"Albania"},{"hotel_citycode":"MA020179 74","hotel_cityname":"Berat","hotel_countrycode":"MA05110124","hotel_countr yname":"Albania"},{"hotel_citycode":"MA06070007","hotel_cityname":"Durres", "hotel_countrycode":"MA05110124","hotel_countryname":"Albania"},{"hotel_cit ycode":"MA14050021","hotel_cityname":"Elbasan","hotel_countrycode":"MA05110 124","hotel_countryname":"Albania"},{"hotel_citycode":"MA02017975","hotel_c ityname":"Fier","hotel_countrycode":"MA05110124","hotel_countryname":"Alban ia"},{"hotel_citycode":"MA02017976","hotel_cityname":"Gjirokaster","hotel_c ountrycode":"MA05110124","hotel_countryname":"Albania"}]
Keterangan parameter: hotel_citycode : Kode Kota hotel_cityname : Nama Kota hotel_countrycode : Kode Negara hotel_countryname : Nama Negara
CARI HOTEL (berdasarkan KOTA) URL: http://klikmbc.co.id/json/hotel/search_hotel_bycity METHOD: POST REQUIRED PARAMETERS: username password hotel_dtcheckin hotel_dtcheckout hotel_countrycode hotel_citycode
: (ex: dummy) : (ex: dummy123) : (ex: 2016-09-10) (Yyyy-mm-dd) : (ex: 2016-09-11) (Yyyy-mm-dd) : (ex: MA05110065) : (ex: MA05110750)
RETURN TYPE: JSON
Body: Respon Berhasil: [{"hotel_reservationid":"213890","hotel_hotelid":"WSMA07110921","hotel_hote lname":"Kamuela Villas Seminyak","hotel_rating":"4","hotel_dtcheckin":"2016-0914","hotel_dtcheckout":"2016-0915","hotel_roomid":"WSMA07120035","hotel_roomname":"2 BEDROOM POOL VILLA","hotel_breakfast":"Breakfast","hotel_roomtype":"Twin","hotel_roomrat e":"2949098","hotel_countrycode":"MA05110065","hotel_citycode":"MA05110750" ,"hotel_adultnum":"2","hotel_rqbedchild":"N","hotel_address":"Jl. Karang Mas Sejahtera","hotel_telephone":"","hotel_email":"","hotel_website":"","hotel_ facility":"","hotel_images":"http://dev.klikmbc.co.id/json-mmbchotel/images/kamuela_villas_seminyakgeneral2.jpg"},{"hotel_reservationid":"213891","hotel_hotelid":"WSMA0801001 1","hotel_hotelname":"Batu Karang Lembongan Resort and Day Spa","hotel_rating":"5","hotel_dtcheckin":"2016-0914","hotel_dtcheckout":"2016-0915","hotel_roomid":"WSMA09010846","hotel_roomname":"TWIN SHARE","hotel_breakfast":"Breakfast","hotel_roomtype":"Twin","hotel_roomrat e":"3004548","hotel_countrycode":"MA05110065","hotel_citycode":"MA05110750" ,"hotel_adultnum":"2","hotel_rqbedchild":"N","hotel_address":"Jl. Karang Mas Sejahtera","hotel_telephone":"","hotel_email":"","hotel_website":"","hotel_
facility":"","hotel_images":"http://dev.klikmbc.co.id/json-mmbchotel/images/batu_karang_lembongan_resort_and_day_spa-general2.jpg"}]
Keterangan parameter: hotel_reservationid hotel_hotelid hotel_hotelname hotel_rating hotel_dtcheckin hotel_dtcheckout hotel_roomid hotel_roomname hotel_breakfast hotel_roomtype hotel_roomrate hotel_countrycode hotel_citycode hotel_adultnum hotel_rqbedchild hotel_address hotel_telephone hotel_email hotel_website hotel_facility hotel_images
: Order ID Pemesanan (berupa angka) : ID Hotel : Nama Hotel : Rating Hotel : Tanggal Checkin (YYYY-MM-DD) : Tanggal Checkout (YYYY-MM-DD) : ID Kamar/Room : Nama Kamar : Breakfast/Room Only : Tipe Kamar/Room (Default: Twin) : Harga per Kamar : ID Negara : ID Kota : Maksimal orang dalam 1 kamar : Request tempat tidur anak (Default: No) : Alamat Hotel : Telepon Hotel : Email Hotel : Website Hotel : Fasilitas Hotel : URL Gambar Hotel
CARI KETERSEDIAAN KAMAR HOTEL URL: http://klikmbc.co.id/json/hotel/search_roomhotel METHOD: POST REQUIRED PARAMETERS: username password hotel_dtcheckin hotel_dtcheckout hotel_hotelid
: (ex: dummy) : (ex: dummy123) : (ex: 2016-09-14) (Yyyy-mm-dd) : (ex: 2016-09-16) (Yyyy-mm-dd) : (ex: WSMA1507071616)
RETURN TYPE: JSON
Body: Respon Berhasil: [{"hotel_reservationid":"214384","hotel_hotelname":"7 Days Premium Kuta","hotel_rating":"3","hotel_dtcheckin":"2016-0914","hotel_dtcheckout":"2016-0916","hotel_roomid":"WSMA05110035","hotel_roomname":"SUPERIOR","hotel_breakf ast":"Room Only","hotel_roomtype":"Twin","hotel_roomrate":"513600","hotel_countrycode" :"MA05110065","hotel_citycode":"MA05110750","hotel_adultnum":"2","hotel_rqb edchild":"N","hotel_address":"","hotel_telephone":"","hotel_email":"","hote l_website":"","hotel_facility":"","hotel_images":"http://dev.klikmbc.co.id/ json-mmbc-hotel/images/7_days_premium_kutaroom1.jpg"},{"hotel_reservationid":"214385","hotel_hotelname":"7 Days Premium Kuta","hotel_rating":"3","hotel_dtcheckin":"2016-0914","hotel_dtcheckout":"2016-0916","hotel_roomid":"WSMA05110035","hotel_roomname":"SUPERIOR","hotel_breakf ast":"Breakfast","hotel_roomtype":"Twin","hotel_roomrate":"556400","hotel_c ountrycode":"MA05110065","hotel_citycode":"MA05110750","hotel_adultnum":"2" ,"hotel_rqbedchild":"N","hotel_address":"","hotel_telephone":"","hotel_emai l":"","hotel_website":"","hotel_facility":"","hotel_images":"http://dev.kli kmbc.co.id/json-mmbc-hotel/images/7_days_premium_kuta-room1.jpg"}]
Keterangan parameter: hotel_reservationid hotel_hotelname hotel_rating hotel_dtcheckin hotel_dtcheckout hotel_roomid hotel_roomname hotel_breakfast hotel_roomtype hotel_roomrate hotel_countrycode hotel_citycode hotel_adultnum hotel_rqbedchild hotel_address hotel_telephone hotel_email hotel_website hotel_facility hotel_images
: Order ID Pemesanan (berupa angka) : Nama Hotel : Rating Hotel : Tanggal Checkin (YYYY-MM-DD) : Tanggal Checkout (YYYY-MM-DD) : ID Kamar/Room : Nama Kamar : Breakfast/Room Only : Tipe Kamar/Room (Default: Twin) : Harga per Kamar : ID Negara : ID Kota : Maksimal orang dalam 1 kamar : Request tempat tidur anak (Default: No) : Alamat Hotel : Telepon Hotel : Email Hotel : Website Hotel : Fasilitas Hotel : URL Gambar Hotel
BOOKING/RESERVASI HOTEL URL: http://klikmbc.co.id/json/hotel/bookinghotel METHOD: POST REQUIRED PARAMETERS: username password hotel_roomsrequest hotel_reservationid hotel_paxinfo1 hotel_paxinfo2
: (ex: dummy) : (ex: dummy123) : (ex: 1) : (ex: 214384) : (ex: Sandi Nurahmat, Mr.) (Nama Tamu Pemesan, Title) : (ex: Sandi Nurahmat, Mr.) (Nama Tamu Pemesan, Title)
RETURN TYPE: JSON
Body: Respon Berhasil: {"hotel_tokenpayment":"9833086385","hotel_hotelname":"7 Days Premium Kuta","hotel_hotelid":"WSMA1507071616","hotel_dtcheckin":"2016-0914","hotel_dtcheckout":"2016-0916","hotel_roomname":"SUPERIOR","hotel_roomrate":"513600","hotel_paxInfo1": "Sandi Nurahmat, Mr.","hotel_paxInfo2":"Sandi Nurahmat, Mr."}
Keterangan parameter: hotel_tokenpayment hotel_hotelname hotel_hotelid hotel_dtcheckin hotel_dtcheckout hotel_roomname hotel_roomrate hotel_paxInfo1 hotel_paxInfo2
: Token Payment Sementara : Nama Hotel : ID Hotel : Tanggal Checkin (YYYY-MM-DD) : Tanggal Checkout (YYYY-MM-DD) : Nama Kamar : Harga yang harus dibayar : Nama Tamu Pemesan : Nama Tamu Pemesan
BAYAR / ISSUED RESERVASI HOTEL URL: http://klikmbc.co.id/json/hotel/issuedhotel METHOD: POST REQUIRED PARAMETERS: username password hotel_tokenpayment
: (ex: dummy) : (ex: dummy123) : (ex: 9833086384)
RETURN TYPE: JSON
Body: Respon Berhasil: {"result":"ok","reason":"Token Payment 9833086384 sukses terbayar!"}
Respon Gagal: {"result":"no","reason":"Sisa saldo tidak cukup, harga Kamar yang harus dibayar 513600!"}
Developed by: iT MMBC Email:
[email protected]