User Journey

User can choose Hotel on the menu

on this screen user will select:
- Select Hotel Name or Location
- Select Check in Date
- Choose the number of guests
- once have filled all the requires fields. click on "Cari Hotel Sekarang" button








This is last screen for booking hotel. and ayoconnect will send callback to partner and user will be redirected to payment confirmation page
API Documentation
- Enrollment API
Enrollment Registration Endpoint/api/v2/enrollment/register
{
"account_number": "085755912296",
"partnerId": "partner-id",
"product_code": "product-code",
"ref_number": "646455719"
}
{
"responseCode": 200,
"success": true,
"message": {
"id": "Success.",
"en": "Success."
},
"data": {
"ayoconnect_ref_number": "2592002",
"accountNumber": "085755912296",
"productName": "product-name",
"productCode": "product-code",
"category": "Akomodasi",
"url": "https://{base-url}/api/hotel/init?ID=170020942520128&accountNumber=085755912296"
}
}
- Callback API
{
"responseCode": 200,
"success": true,
"message": {
"ID": "success",
"EN": "success"
},
"data": {
"ayoconnectRefNumber": "475",
"enrollmentId": "89567304",
"refNumber": "646455719",
"extraDetails": []
}
}
- Inquiry
Check Transaction Status Endpoint/api/v2/bill/check
{
"partnerId": "ayopop",
"accountNumber": "211123",
"productCode": "product-code"
}
{
"responseCode": 300,
"success": true,
"message": {
"ID": "Inkuiri berhasil",
"EN": "Inquiry is successful"
},
"data": {
"requestId": "160000101021",
"refNumber": 67934326,
"inquiryId": 111460504,
"accountNumber": "21",
"customerName": "TEST",
"amount": 450000,
"totalAdmin": 0,
"productName": "product-name",
"productCode": "product-code",
"category": "Akomodasi",
"validity": "",
"customerDetails": [
{
"key": "Tanggal & Waktu Pembayaran",
"value": "05 Jan 2021 | 16:42"
},
{
"key": "Nama Pelanggan",
"value": "TEST"
},
{
"key": "Nomor HP",
"value": "6281808080808"
},
{
"key": "Email",
"value": "[email protected]"
}
],
"billDetails": [
{
"billId": "1",
"billInfo": [],
"key": "Jumlah Tagihan",
"isMandatory": true,
"value": 450000
},
{
"billId": "0",
"billInfo": [],
"key": "Biaya Administrasi",
"isMandatory": true,
"value": 0
}
],
"productDetails": [
{
"key": "Kode Konfirmasi",
"value": "AP9874363"
},
{
"key": "Kode Booking",
"value": "89567304"
},
{
"key": "Kadaluarsa",
"value": "1661829643026"
},
{
"key": "Pajak",
"value": "50000"
}
],
"extraFields": [
{
"key": "itineraryDetail",
"value": [
{
"key": "guestDetails",
"value": [
{
"key": "Sapaan",
"value": "MR"
},
{
"key": "Nama Depan",
"value": "John"
},
{
"key": "Nama Belakang",
"value": "Smith"
},
{
"key": "Jumlah Tamu",
"value": "2"
}
]
},
{
"key": "acocomodationDetails",
"value": [
{
"key": "Nama Hotel",
"value": "Seoul Add Hotel"
},
{
"key": "Alamat",
"value": "Jalan Warior 3 Majapahit, Kav 65"
},
{
"key": "Kota",
"value": "Jakarta Barat"
},
{
"key": "Negara",
"value": "Indonesia"
},
{
"key": "Kode Pos",
"value": "17520"
},
{
"key": "No Telepon",
"value": "null"
},
{
"key": "Bintang",
"value": "4.0"
},
{
"key": "Skor Review",
"value": "8.54"
},
{
"key": "Jenis Akomodasi",
"value": "HOTEL"
},
{
"key": "Latitude",
"value": "-6.1927992"
},
{
"key": "Longitude",
"value": "106.7980245"
}
]
},
{
"key": "roomDetails",
"value": [
{
"key": "Jumlah Kamar",
"value": "2"
},
{
"key": "Tanggal Check In",
"value": "2022-10-19"
},
{
"key": "Tanggal Check Out",
"value": "2022-10-21"
},
{
"key": "Nama Ruangan",
"value": "Executive Hans"
},
{
"key": "Tipe Ranjang",
"value": "ONE_QUEEN_BED"
},
{
"key": "Wifi",
"value": true
},
{
"key": "Sarapan",
"value": false
}
]
}
]
}
]
}
}
- Payment
Payment Endpoint/api/v2/bill/payment
{
"inquiryId": 111460504,
"accountNumber": "211123",
"productCode": "product-code",
"amount": 202000,
"refNumber": "PLANEREF123",
"partnerId": "partner-id"
}
{
"responseCode": 0,
"success": true,
"message": {
"ID": "Transaksi Anda Telah Berhasil",
"EN": "Your transaction was successful"
},
"data": {
"requestId": "160000101021",
"refNumber": 67934326,
"inquiryId": 111460504,
"accountNumber": "89567304",
"customerName": "TEST",
"amount": 450000,
"totalAdmin": 0,
"productName": "product-name",
"productCode": "product-code",
"category": "Akomodasi",
"validity": "",
"token": "89567304",
"customerDetails": [
{
"key": "Tanggal & Waktu Pembayaran",
"value": "05 Jan 2021 | 16:42"
},
{
"key": "Nama Pelanggan",
"value": "TEST"
},
{
"key": "Nomor HP",
"value": "6281808080808"
},
{
"key": "Email",
"value": "[email protected]"
}
],
"billDetails": [
{
"billId": "1",
"billInfo": [],
"key": "Jumlah Tagihan",
"value": 450000
},
{
"billId": "0",
"billInfo": [],
"key": "Biaya Administrasi",
"value": 0
}
],
"productDetails": [
{
"key": "Kode Konfirmasi",
"value": "AP9874363"
},
{
"key": "Kode Booking",
"value": "89567304"
},
{
"key": "Kode Itinerari",
"value": "200000071029"
},
{
"key": "Nomor Referensi",
"value": "AP9874363"
},
{
"key": "Pajak",
"value": "50000"
}
],
"extraFields": [
{
"key": "itineraryDetail",
"value": [
{
"key": "guestDetails",
"value": [
{
"key": "Sapaan",
"value": "MR"
},
{
"key": "Nama Depan",
"value": "John"
},
{
"key": "Nama Belakang",
"value": "Smith"
},
{
"key": "Jumlah Tamu",
"value": "2"
}
]
},
{
"key": "acocomodationDetails",
"value": [
{
"key": "Nama Hotel",
"value": "Add Hotel"
},
{
"key": "Alamat",
"value": "Jalan Wario"
},
{
"key": "Kota",
"value": "Jakarta Barat"
},
{
"key": "Negara",
"value": "Indonesia"
},
{
"key": "Kode Pos",
"value": "17520"
},
{
"key": "No Telepon",
"value": "null"
},
{
"key": "Bintang",
"value": "4.0"
},
{
"key": "Skor Review",
"value": "8.54"
},
{
"key": "Jenis Akomodasi",
"value": "HOTEL"
},
{
"key": "Latitude",
"value": "-6.1927992"
},
{
"key": "Longitude",
"value": "106.7980245"
}
]
},
{
"key": "roomDetails",
"value": [
{
"key": "Jumlah Kamar",
"value": "2"
},
{
"key": "Tanggal Check In",
"value": "2022-10-19"
},
{
"key": "Tanggal Check Out",
"value": "2022-10-21"
},
{
"key": "Nama Ruangan",
"value": "Executive Hans"
},
{
"key": "Tipe Ranjang",
"value": "ONE_QUEEN_BED"
},
{
"key": "Wifi",
"value": true
},
{
"key": "Sarapan",
"value": false
}
]
}
]
}
]
}
]
}
- Check Status
please refer to Check Status API