This guide will be removed on April 29, 2022. Please use our new, easier-to-use Toast technical documentation site. All updated content is on the new site.

Setting openedDate for a future order

The openedDate value for an order is the date and time when the order was opened. openedDate is used to set the business date of an order. The business date determines when an order is added to the open orders report. A scheduled order should not appear in the open orders report until the day that it is scheduled to fire.

To ensure that the order appears in the open orders report on the correct date, set openedDate to match promisedDate.

If you do not include an openedDate value, then openedDate is set to the current date and time. The order business date is then set to the corresponding day. In other words, the business date reflects when the order was received, instead of when it was fulfilled.

For example, on March 1 at 10:00 AM, you create an order that is scheduled to be fulfilled on March 5 at 4:00 PM. When you create the order, you set both promisedDate and openedDate to the timestamp for March 5 at 4:00 PM.