Kirim masukan
Contoh Reservasi Menyeluruh
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
BatchAvailabilityLookup (pemuatan halaman)
Permintaan
{
"merchant_id" : "1234",
"slot_time" : [
{
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
},
{
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606469400"
},
{
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606471200"
}
]
}
Respons
{
"slot_time_availability" : [
{
"available" : true,
"slot_time" : {
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
},
{
"available" : true,
"slot_time" : {
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606469400"
}
},
{
"available" : true,
"slot_time" : {
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606471200"
}
}
]
}
BatchAvailabilityLookup (klik slot)
Permintaan
{
"merchant_id" : "1234",
"slot_time" : [
{
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
]
}
Respons
{
"slot_time_availability" : [
{
"available" : true,
"slot_time" : {
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
}
]
}
CreateBooking
Permintaan
{
"idempotency_token" : "18307119013960637991" ,
"payment_information" : {
"prepayment_status" : "PREPAYMENT_NOT_PROVIDED"
} ,
"slot" : {
"confirmation_mode" : "CONFIRMATION_MODE_SYNCHRONOUS" ,
"duration_sec" : "1800" ,
"merchant_id" : "1234" ,
"resources" : {
"party_size" : 2
} ,
"service_id" : "5678" ,
"start_sec" : "1606467600"
} ,
"user_information" : {
"email" : "john.smith@gmail.com" ,
"family_name" : "Smith" ,
"given_name" : "John" ,
"telephone" : "+12091111111" ,
"user_id" : "1111111111111111111"
}
}
Respons
{
"booking" : {
"booking_id" : "890" ,
"payment_information" : {
"prepayment_status" : "PREPAYMENT_NOT_PROVIDED"
} ,
"slot" : {
"confirmation_mode" : "CONFIRMATION_MODE_SYNCHRONOUS" ,
"duration_sec" : "1800" ,
"merchant_id" : "1234" ,
"resources" : {
"party_size" : 2
} ,
"service_id" : "5678" ,
"start_sec" : "1606467600"
} ,
"status" : "CONFIRMED" ,
"user_information" : {
"email" : "john.smith@gmail.com" ,
"family_name" : "Smith" ,
"given_name" : "John" ,
"telephone" : "+12091111111" ,
"user_id" : "1111111111111111111"
}
}
}
UpdateBooking
Permintaan
{
"booking" : {
"booking_id" : "890",
"slot" : {
"duration_sec" : "1800",
"start_sec" : "1606473000"
}
}
}
Tanggapan
{
"booking" : {
"booking_id" : "890" ,
"payment_information" : {
"prepayment_status" : "PREPAYMENT_NOT_PROVIDED"
} ,
"slot" : {
"duration_sec" : 1800 ,
"merchant_id" : "1234" ,
"resources" : {
"party_size" : 2
} ,
"service_id" : "5678" ,
"start_sec" : 1606473000
} ,
"status" : "CONFIRMED" ,
"user_information" : {
"email" : "john.smith@gmail.com" ,
"family_name" : "Smith" ,
"given_name" : "John" ,
"telephone" : "+12091111111" ,
"user_id" : "1111111111111111111"
}
}
}
Kirim masukan
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0 , sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0 . Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers . Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
Ada masukan untuk kami?
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-26 UTC."],[],["The system handles booking availability, creation, and updates. `BatchAvailabilityLookup` checks slot availability for a merchant's service, given specific times, party size, and duration. `CreateBooking` books a slot, providing user and payment details. The `UpdateBooking` modifies an existing booking, primarily altering the start time. All requests specify merchant, service, duration, and party size; responses indicate slot availability or booking status (confirmed). Prepayment status is handled but not altered in the provided examples.\n"]]