Ustawianie minimalnego czasu rezerwacji z wyprzedzeniem
Jest wiele przypadków, w których sprzedawca chce, aby określone usługi lub sloty były rezerwowane z minimalnym wyprzedzeniem. Można je ustawić na poziomie usługi lub dostępności. Jeśli jest ustawiona na obu poziomach, będzie używane ustawienie na poziomie dostępności.
Definicja poziomu usług
Na poziomie usługi to pole ma nazwę rules.min_advance_booking. To pole powinno być ustawione na liczbę sekund przed rozpoczęciem rezerwacji, w której musi zostać dokonana rezerwacja. Jeśli na przykład rezerwacja musi być zawsze dokonana 1 godzinę przed czasem rozpoczęcia, to pole będzie ustawione na 3600 (rezerwacja na godzinę 15:00 może być dokonana do godziny 14:00). Dotyczy to wszystkich slotów dla danej usługi (chyba że są zastąpione przez definicję poziomu slotu).
[null,null,["Ostatnia aktualizacja: 2024-11-26 UTC."],[[["Merchants can set a minimum advance booking time for services, ensuring bookings are made within a specified timeframe before the service start time."],["This can be configured at the service level (affecting all slots) or at the individual slot level, offering flexibility in setting booking windows."],["Service-level settings use `rules.min_advance_booking` (in seconds), while slot-level settings use `scheduling_rule_overrides.last_bookable_sec` (as an EPOCH timestamp)."],["Merchants still need to validate booking requests against the booking window on their end and handle potential booking failures appropriately, as feed-based limits might not cover all edge cases."]]],["Merchants can set minimum advanced booking times for services or slots. At the service level, the `rules.min_advance_booking` field specifies the minimum seconds needed before a reservation's start time. At the slot level, `scheduling_rule_overrides.last_bookable_sec` defines the last bookable time via an epoch timestamp. If both are set, the slot-level rule takes precedence. Regardless of feed settings, the booking system must validate booking windows upon receiving a `CreateBooking` request and respond with `SLOT_UNAVAILABLE` if the booking is outside the allowed window.\n"]]