Ustawianie minimalnego czasu rezerwacji z wyprzedzeniem
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 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 use `scheduling_rule_overrides.last_bookable_sec` to define the last bookable time for a specific slot using an EPOCH timestamp."],["It's crucial to implement booking window validation on the booking server to handle edge cases and prevent bookings outside the allowed timeframe, responding with `SLOT_UNAVAILABLE` if necessary."]]],["Merchants can set a minimum advance booking time for services or slots. At the service level, `rules.min_advance_booking` defines the minimum seconds before the start time a booking can be made. At the slot level, `scheduling_rule_overrides.last_bookable_sec` specifies the last bookable time via an epoch timestamp. If both are set, the slot-level rule takes precedence. Merchants must also validate booking windows on requests and reject those out of bounds with a `SLOT_UNAVAILABLE` error.\n"]]