Cómo establecer un tiempo mínimo de reserva anticipada
Hay muchos casos en los que un comercio desea que se reserven servicios o horarios específicos con un tiempo mínimo de anticipación. Se pueden configurar a nivel del servicio o de la disponibilidad. Si se establece en ambos, se usará la configuración a nivel de la disponibilidad.
Definición del nivel de servicio
A nivel del servicio, el campo se llama rules.min_advance_booking. Este campo se debe establecer en la cantidad de segundos antes de la hora de inicio de la reserva que se debe realizar. Por ejemplo, si la reserva siempre se debe realizar 1 hora antes de la hora de inicio, este campo se establecerá en 3,600 (por lo que se puede reservar una reserva para las 3 p.m. hasta las 2 p.m.). Esto se aplicaría a
todos los horarios de ese servicio (a menos que se anule con la definición a nivel del horario).
[null,null,["Última actualización: 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"]]