Skip to main content

Getting estimated fulfillment times

Estimated fulfillment times can be fetched for a cart and can be used to give your users a rough idea of when they can expect their order to arrive

getEstimatedFulfillmentWindow query

query GetEstimatedFulfillmentWindow($cartId: uuid!) {
getEstimatedFulfillmentWindow(cartId: $cartId) {
formattedDatetime
range
rangeRelativeMinutes
}
}

variables:

{
"cartId": "f59822a7-b30f-4047-a028-125a8956366c"
}

This returns a JSON object like the following:

{
"data": {
"getEstimatedFulfillmentWindow": {
"formattedDatetime": "Tue 1 NOV | 5:00 PM",
"range": "5:00 PM - 6:00 PM",
"rangeRelativeMinutes": "30 - 90 mins"
}
}
  • formattedDatetime

    This is the earliest date & time when the order can arrive

  • range

    This is the time range when the order is expected to arrive

  • rangeRelativeMinutes

    This is the time range when the order is expected to arrive, relative to the current time, so will change as the current time approaches the expected times