Store hours

A shop has two kinds of hours. Both are settings of the shop and have no table of their own.

MeaningUsed for
Store hoursWhen the shop is open.Showing "open now", the footer and contact details, receipts, and as the default for each service.
Service hoursWhen a service is offered. The services are delivery and pickup.Which time slots are made, which can be booked, and the checks at checkout.

The manual shows the settings: Settings.

Store hours

Seven settings, mon_hours to sun_hours. Each holds intervals written as 09:00-12:00,13:00-17:00. An empty value means closed that day.

A mirrored POS can write its opening hours into these seven settings (see Connect a POS). It does not write service hours.

Service hours

For each service (delivery, pickup):

SettingMeaning
<service>_hours_same_as_storeOn (the default, also when never set): the service follows the store hours.
<service>_mon_hours to <service>_sun_hoursThe service's own week, same format. Used only when the switch above is off.
<service>_lead_minutesThe least time between ordering and the start of a slot.
<service>_cutoff_timeHH:MM. After this time of day no slot for the same day can be booked.

delivery_lead_hours and pickup_lead_hours are different: they say how far ahead slots are made and offered.

Holidays and special days

One line per date in holiday_overrides:

2026-12-25|Christmas|closed:true
2026-12-31|New Year's Eve|10:00-14:00
2026-12-26|Boxing Day|closed:true|delivery=open|pickup=10:00-12:00

The third part is the store on that date: closed:true, or special hours. Further parts change one service on that date: <service>=closed, <service>=open (its normal week applies whatever the store does), or <service>=<intervals>. Without such a part a service follows the store on that day.

How the hours are applied

  • Delivery and pickup slots are made only inside the service hours, with holidays counted.
  • A slot is bookable when it is free, inside the service hours, not sooner than the lead time, and not after the same-day cut-off. A shop with no hours at all is not checked against hours, so slots made by hand stay bookable.
  • An order that names a slot that is not bookable is refused with 422.
  • Every moment is judged in the shop's time zone. The time zone is a required shop setting (an IANA name such as America/Kralendijk, the default).
  • Slots that exist when the hours change are not deleted. They stop being bookable.

Reading the hours over the API

GET /api/v1/shop_fronts/current (public, for the shop) and GET /api/v1/applications/current (staff) carry an hours object. Example, shortened and made up:

{
  "timezone": "America/Kralendijk",
  "store": {
    "week": {"mon": [{"open": "09:00", "close": "12:00"}, {"open": "13:00", "close": "17:00"}], "sun": []},
    "today": [{"open": "09:00", "close": "12:00"}],
    "open_now": true
  },
  "services": {
    "delivery": {"offered": true, "same_as_store": false, "week": {"mon": []}, "today": [], "open_now": false, "lead_minutes": 60, "cutoff_time": "15:00"},
    "pickup": {"offered": true, "same_as_store": true, "week": {}, "today": [], "open_now": true, "lead_minutes": 0, "cutoff_time": null}
  },
  "holidays": [
    {"date": "2026-12-25", "label": "Christmas", "closed": true, "intervals": [], "services": {"delivery": [], "pickup": []}}
  ]
}

week has all seven days, mon to sun; an empty list means closed. offered says whether the shop offers the service at all. holidays holds today's and later overrides, with each service already resolved. A page that stays open for a long time should work out "open now" from week, holidays and timezone instead of trusting open_now.