יש מקרים רבים שבהם מוכרים רוצים ששירותים ספציפיים או חלונות זמן ספציפיים ייזממו מראש בפרק זמן מינימלי. אפשר להגדיר אותם ברמת השירות ו/או ברמת הזמינות. אם ההגדרה מוגדרת בשתי הרמות, המערכת תשתמש בהגדרה ברמת הזמינות.
הגדרת רמת השירות
ברמת השירות השדה נקרא rules.min_advance_booking. בשדה הזה צריך להגדיר את מספר השניות לפני מועד ההתחלה של ההזמנה שבו צריך לבצע את ההזמנה. לדוגמה, אם ההזמנה תמיד צריכה להתבצע שעה אחת לפני שעת ההתחלה, השדה הזה יוגדר לערך 3600 (כך שאפשר להזמין פגישה בשעה 15:00 עד השעה 14:00). ההגדרה הזו תחול על כל המיקומים של השירות הזה (אלא אם היא תבוטל על ידי הגדרה ברמת המיקום).
[null,null,["עדכון אחרון: 2024-11-26 (שעון UTC)."],[[["Merchants can set minimum advanced booking times for services or specific time slots."],["Service-level settings use `rules.min_advance_booking` to define the minimum booking time in seconds before the start time."],["Slot-level settings utilize `scheduling_rule_overrides.last_bookable_sec` to specify the last bookable time for individual slots using an EPOCH timestamp."],["Implementing advance booking limits in feeds requires additional checks within your booking system to ensure the booking is within the allowed window and handle potential booking failures."]]],["Merchants can set a minimum time for advance bookings at either the service or availability slot level. The service level uses `rules.min_advance_booking` (in seconds), affecting all slots unless overridden. The slot level utilizes `scheduling_rule_overrides.last_bookable_sec` (EPOCH timestamp), specific to each slot. If both are set, the slot level takes precedence. It's crucial to validate the booking window during booking requests and reject those outside it with `SLOT_UNAVAILABLE`.\n"]]