Desired windows
Desired windows are the time slots in which you want the order to be received by the customer. You can send Instacart the desired windows. Then, the Instacart fulfillment engine checks whether there’s capacity to fulfill the order in the desired window at the given location.
If you're integrating with multiple third-party fulfillment providers, you can send Instacart your desired windows. This enables a quicker integration with Instacart and more flexibility with the time slots that you show your customers.
You can send Instacart your desired windows with dispatch last mile delivery (dispatch LMD) orders and delivery orders. The desired windows must be a minimum of one hour long and must start and end on the hour.
Dispatch LMD orders
When you send a request to create a dispatch LMD order, you also send a desired window. For example, after your customer selects a time slot and checks out, your site sends a request to create a dispatch LMD order with the desired window. Instacart validates the order and determines whether there’s capacity to fulfill the order.
This implementation enables you to show high availability coverage on your site because you can show any time slots on your site. Because the time slots shown aren’t validated first, it is possible that there’s no capacity to fulfill the order. In this case, Instacart can substitute the desired window with the soonest alternative on the same day.
Example
The following example describes the successful creation of a dispatch LMD order with a desired window:
- Your site displays delivery time slots. These time slots are not tied to Instacart.
- The customer selects a time slot and checks out.
- Your site sends a request to create a dispatch last mile delivery order with the customer’s selected time slot as a desired window.
- Instacart creates and validates the order.
- If there’s capacity to fulfill the order, Instacart creates the order in the Instacart system. If there’s no capacity, Instacart can substitute the desired window with the soonest alternative on the same day.
- Your site receives the Brand new callback, which contains the order details. For more information, see Event callbacks.
For more information, see Implement dispatch last mile delivery.
Delivery orders
When you request a list of available time slots for a delivery order, you can also send your desired windows. Then, the Instacart fulfillment engine checks whether there’s capacity to fulfill the order in the desired windows at the given location.
This implementation enables you to show the delivery windows that you want on your site, such as one hour, two hour, and three hour delivery windows. After your customer selects a time slot, you can hold the time slot as they check out. After they check out, you can create an order for the desired window.
Example
The following example describes the flow of a delivery order with desired windows:
Your site requests a list of available time slots with the desired windows.
For example, your site sends the following desired windows:
- 1pm-2pm
- 2pm-3pm
- 3pm-5pm
- 4pm-6pm
Instacart returns the available time slots. A
service_option_reference
is associated with each time slot. You use theservice_option_reference
to reserve a time slot.For example, Instacart returns the following available time slots:
- 1pm-2pm
- 2pm-3pm
- 4pm-6pm
Your site displays the available time slots to your customer.
The customer selects a time slot.
Your site requests to reserve a time slot for a desired window.
The customer checks out.
Your site sends a request to create a delivery order for the desired window.
Instacart creates and validates the order.
Your site receives the Brand new callback, which contains the order details. For more information, see Event callbacks.
For more information, see How to retrieve time slots for desired windows.