設定取消時限 v0 (舊版)
如要啟用時段層級的取消時段,請在 CheckAvailability 回應中傳回 last_online_cancellable_sec
欄位。例如:
JSON
/v3/CheckAvailability Response JSON:
{
slot {[...]},
count_available: 1,
last_online_cancellable_sec: 1552930200
}
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-26 (世界標準時間)。
[null,null,["上次更新時間:2024-11-26 (世界標準時間)。"],[[["Slot-level cancellation windows are enabled by including the `last_online_cancellable_sec` field in `CheckAvailability` responses."],["This field indicates the last timestamp (in seconds) when a slot can be canceled online, allowing for more granular control over booking cancellations."]]],["The `last_online_cancellable_sec` field, included in the `CheckAvailability` response, enables slot-level cancellation windows. This field specifies a timestamp, representing the last second a slot can be cancelled online. When returned, it allows users to cancel specific slots within the designated timeframe. The example shows a JSON response demonstrating how this field is implemented, including the slot data, available count and the cancellable time.\n"]]