Ada banyak kasus saat penjual ingin layanan atau
slot tertentu dipesan dengan waktu minimum sebelumnya. Hal ini dapat ditetapkan di tingkat layanan dan/atau di tingkat ketersediaan. Jika ditetapkan di keduanya, setelan di tingkat ketersediaan akan digunakan.
Definisi tingkat layanan
Di
tingkat layanan, kolom ini disebut rules.min_advance_booking. Kolom ini
harus ditetapkan ke jumlah detik sebelum waktu mulai
reservasi yang harus dilakukan pemesanan. Misalnya, jika pemesanan selalu
harus dilakukan 1 jam sebelum waktu mulai, kolom ini akan ditetapkan ke
3600 (sehingga pemesanan untuk pukul 15.00 dapat dipesan hingga pukul 14.00). Hal ini akan berlaku untuk
semua slot untuk layanan tersebut (kecuali jika diganti oleh definisi tingkat slot).
[null,null,["Terakhir diperbarui pada 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"]]