Prześlij opinię
Przykłady kompleksowych rezerwacji
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
BatchAvailabilityLookup (wczytanie strony)
Żądanie
{
"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"
}
]
}
Odpowiedź
{
"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 (kliknięcie slotu)
Żądanie
{
"merchant_id" : "1234",
"slot_time" : [
{
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
]
}
Odpowiedź
{
"slot_time_availability" : [
{
"available" : true,
"slot_time" : {
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
}
]
}
CreateBooking
Żądanie
{
"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"
}
}
Odpowiedź
{
"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
Żądanie
{
"booking" : {
"booking_id" : "890",
"slot" : {
"duration_sec" : "1800",
"start_sec" : "1606473000"
}
}
}
Odpowiedź
{
"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"
}
}
}
Prześlij opinię
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0 , a fragmenty kodu są dostępne na licencji Apache 2.0 . Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers . Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
Chcesz przekazać coś jeszcze?
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]