موارد زیادی وجود دارد که در آن یک تاجر مایل است خدمات یا اسلات های خاصی را حداقل از قبل رزرو کند. اینها را می توان در سطح خدمات و/یا در سطح دسترسی تنظیم کرد. اگر در هر دو تنظیم شود، از تنظیم در سطح دسترسی استفاده می شود.
تعریف سطح خدمات
در سطح خدمات، فیلد rules.min_advance_booking نامیده می شود . این فیلد باید روی تعداد ثانیه های قبل از زمان شروع رزرو تنظیم شود که رزرو باید انجام شود. به عنوان مثال، اگر همیشه باید رزرو را 1 ساعت قبل از زمان شروع انجام دهید، این فیلد روی 3600 تنظیم می شود (بنابراین رزرو برای ساعت 15 می تواند تا ساعت 2 بعد از ظهر رزرو شود). این برای همه اسلاتهای آن سرویس اعمال میشود (مگر اینکه با تعریف سطح شکاف لغو شود).
تاریخ آخرین بهروزرسانی 2025-01-06 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-06 بهوقت ساعت هماهنگ جهانی."],[[["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"]]