ตั้งค่ากรอบเวลาการยกเลิก v0 (เดิม)
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณเปิดใช้กรอบเวลาการยกเลิกระดับช่วงเวลาได้โดยส่งค่ากลับในช่อง last_online_cancellable_sec
ของคำตอบ CheckAvailability เช่น
JSON
/v3/CheckAvailability Response JSON:
{
slot {[...]},
count_available: 1,
last_online_cancellable_sec: 1552930200
}
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eSlot-level cancellation windows can be activated by utilizing the \u003ccode\u003elast_online_cancellable_sec\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThis field is returned in the \u003ccode\u003eCheckAvailability\u003c/code\u003e response from the booking server.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elast_online_cancellable_sec\u003c/code\u003e example field in the \u003ccode\u003eCheckAvailability\u003c/code\u003e Response is \u003ccode\u003e1552930200\u003c/code\u003e.\u003c/p\u003e\n"]]],["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"],null,["# Set Cancellation Windows v0 (legacy)\n\n\u003cbr /\u003e\n\nSlot-level cancellation windows can be enabled by returning the\n`last_online_cancellable_sec` field in\n[CheckAvailability](/actions-center/legacy/reference/booking-server/checkavailability-method) responses. For example: \n\n### JSON\n\n```json\n /v3/CheckAvailability Response JSON:\n{\nslot {[...]},\ncount_available: 1,\nlast_online_cancellable_sec: 1552930200\n}\n \n```"]]