健身範例
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
BatchAvailabilityLookup (運算單元點擊)
要求
{
"merchant_id" : "1234",
"slot_time" : [
{
"availability_tag" : "5042328",
"duration_sec" : "4500",
"resource_ids" : {
"staff_id" : "276191"
},
"service_id" : "5678",
"start_sec" : "1606359600"
}
]
}
回應
{
"slot_time_availability" : [
{
"available" : true,
"slot_time" : {
"availability_tag" : "5042328",
"confirmation_mode" : "CONFIRMATION_MODE_SYNCHRONOUS",
"duration_sec" : "4500",
"resource_ids" : {
"staff_id" : "276191"
},
"service_id" : "5678",
"start_sec" : "1606359600"
}
}
]
}
CreateBooking
要求
{
"idempotency_token" : "13490670332760737439",
"payment_information" : {
"prepayment_status" : "PREPAYMENT_NOT_PROVIDED"
},
"slot" : {
"availability_tag" : "5042328",
"confirmation_mode" : "CONFIRMATION_MODE_SYNCHRONOUS",
"duration_sec" : "4500",
"merchant_id" : "1234",
"resources" : {
"staff_id" : "276191"
},
"service_id" : "5678",
"start_sec" : "1606359600"
},
"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" : {
"availability_tag" : "5042328",
"confirmation_mode" : "CONFIRMATION_MODE_SYNCHRONOUS",
"duration_sec" : "4500",
"merchant_id" : "1234",
"resources" : {
"staff_id" : "276191"
},
"service_id" : "5678",
"start_sec" : "1606359600"
},
"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",
"status" : "CANCELED"
}
}
回應
{
"booking" : {
"booking_id" : "890",
"status" : "CANCELED"
}
}
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]