Feedback geben
Beispiele für Reservierungen – Ende-zu-Ende
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
BatchAvailabilityLookup (Seitenaufbau)
Anfrage
{
"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"
}
]
}
Antwort
{
"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 (Slot-Klick)
Anfrage
{
"merchant_id" : "1234",
"slot_time" : [
{
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
]
}
Antwort
{
"slot_time_availability" : [
{
"available" : true,
"slot_time" : {
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
}
]
}
CreateBooking
Anfrage
{
"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"
}
}
Antwort
{
"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
Anfrage
{
"booking" : {
"booking_id" : "890",
"slot" : {
"duration_sec" : "1800",
"start_sec" : "1606473000"
}
}
}
Antwort
{
"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"
}
}
}
Feedback geben
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers . Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
Haben Sie Feedback für uns?
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]