List time slots for last mile delivery
POST /v2/fulfillment/users/{user_id}/service_options/cart/last_mile
Lists the available last mile delivery service options for the customer's location and cart details. In this context, service options are time slots, such as Today 4pm-6pm or Friday 9am-11am. Availability is based on current and anticipated shopper availability for the relevant store and delivery location.
By default, the time slots returned are immediate and scheduled time slots. If ETA options are enabled in your retailer configuration, you can retrieve ETA time slots instead of immediate time slots. To get a standard ETA time slot with the scheduled time slots, set the with_eta_options
field to true
. To also retrieve a priority ETA time slot, set the with_priority_eta_options
field to true
. For more information, see Retrieve an ETA time slot.
If the location_code
in the request references a store that offers long-distance deliveries and Instacart estimates the delivery time to be between 30 and 60 minutes, inclusive, then flags.long_distance_delivery
is set to true
. For more information, see Service areas for delivery.
After a time slot is selected, save the service_option_id
. You specify the ID when reserving the time slot.
This operation differs from preview service options in that the service enforces all the parameters necessary to return accurate, complete service options. Use this operation when the customer is ready to check out.
Security
Name | In | Description |
---|---|---|
Authorization | header | The Authorization header with the bearer token acquired during authentication. |