フィードバックを送信
エンドツーエンドの予約機能の例
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
BatchAvailabilityLookup(ページ読み込み)
リクエスト
{
"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"
}
]
}
レスポンス
{
"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(スロットクリック)
リクエスト
{
"merchant_id" : "1234",
"slot_time" : [
{
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
]
}
レスポンス
{
"slot_time_availability" : [
{
"available" : true,
"slot_time" : {
"duration_sec" : "1800",
"resource_ids" : {
"party_size" : 2
},
"service_id" : "5678",
"start_sec" : "1606467600"
}
}
]
}
CreateBooking
リクエスト
{
"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"
}
}
レスポンス
{
"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
リクエスト
{
"booking" : {
"booking_id" : "890",
"slot" : {
"duration_sec" : "1800",
"start_sec" : "1606473000"
}
}
}
レスポンス
{
"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"
}
}
}
フィードバックを送信
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
ご意見をお聞かせください
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 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"]]