> For the complete documentation index, see [llms.txt](https://docs.fulfillmenttools.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fulfillmenttools.com/documentation/by-pillar/availability-and-promising/earliest-possible-collection-date.md). Agents can also search and read this documentation through its [MCP server](https://docs.fulfillmenttools.com/documentation/~gitbook/mcp).

# Earliest possible collection date

This endpoint provides the earliest possible collection date for an item or a list of items. This information can be used on a search result or product overview page to inform the shop user about the earliest collection date that can be expected for a specific item.

{% hint style="warning" %}
**Limitations and mandatory configurations**

* The maximum number of days that are checked is limited to 45 days into the future.
* When defined for the tenant, the [average fulfillment duration](https://docs.fulfillmenttools.com/documentation/getting-started/facilities.md#facilities-averagefulfillmentduration) and the facilities' [fulfillment times](https://docs.fulfillmenttools.com/documentation/getting-started/facilities.md#fulfillment-day-and-time) are included in the calculation.
  {% endhint %}

## Request and response

### **Request**

* **`desiredCollectDate`**: Set to `now` by default, meaning the consumer wants an ASAP pickup. If a different future date is specified, available click-and-collect dates will be checked starting from that point in time (so, the consumer doesn't want to receive their order before a given date).
* **`tenantArticleIds`**: The earliest collect date can be calculated for a single item or a list of items. If a list of items is requested, the earliest collect date is calculated for each item individually (not as a basket).
* **`facilities`:** When you provide this, the request must include either the `facilityRef` or the `tenantFacilityRef` where the order will be collected from. This is important because `closingDays`, `pickingTimes`, and stock levels affect the earliest pickup date, and these vary by facility.

### **Response**

The response contains a list of the requested items with:

* **`earliestPredictedProvisioningDate`**: Earliest point in time when a particular item can be collected if the order is placed at this moment.
* **`latestPickingStartDate`**: Latest point in time that picking can be started to meet the `earliestPredictedProvisioningDate`.

{% hint style="info" %}
[Expected stocks](https://docs.fulfillmenttools.com/documentation/by-pillar/global-inventory-hub/stock/expected-stock-in-availability.md) that were announced via [purchase order](https://docs.fulfillmenttools.com/documentation/by-pillar/global-inventory-hub/inbound-process/purchase-order.md) are also considered in the response. Only purchase orders with `requestedDate.type` "ASAP" are not considered, as these deliveries are expected to arrive as soon as possible and there is no exact date that can be used to check the potential availability of these stocks for incoming orders.
{% endhint %}

## Get earliest collect

> Get earliest collect timepoint for a given checkoutOption

```json
{"openapi":"3.0.1","info":{"title":"fulfillmenttools","version":"VERSIONLESS"},"tags":[{"description":"Endpoints used by shops to get the current available pickup stores and available service levels like same-day delivery.","name":"Checkout options"}],"servers":[{"url":"https://{tenant}.api.fulfillmenttools.com","variables":{"tenant":{"default":"your-tenant-name"}}}],"security":[{"BearerToken":[]}],"components":{"securitySchemes":{"BearerToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"CheckoutOptionsCollectEarliestRequest":{"properties":{"desiredCollectDate":{"description":"Desired collection date","format":"date-time","type":"string"},"facilities":{"description":"List of facilities for collection. Each item must contain exactly one of facilityRef or tenantFacilityRef.","items":{"oneOf":[{"$ref":"#/components/schemas/CheckoutOptionsCollectFacilitiesFacilityRef"},{"$ref":"#/components/schemas/CheckoutOptionsCollectFacilitiesTenantFacilityRef"}]},"type":"array"},"includeCalculationHints":{"description":"Whether to include calculation hints in the response","type":"boolean"},"tenantArticleIds":{"description":"List of tenant article IDs","items":{"type":"string"},"minItems":1,"type":"array"}},"required":["tenantArticleIds"],"title":"CheckoutOptionsCollectEarliestRequest","type":"object","description":"CheckoutOptionsCollectEarliestRequest"},"CheckoutOptionsCollectFacilitiesFacilityRef":{"properties":{"facilityRef":{"description":"Facility reference","type":"string"}},"required":["facilityRef"],"title":"CheckoutOptionsCollectFacilitiesFacilityRef","type":"object","description":"CheckoutOptionsCollectFacilitiesFacilityRef"},"CheckoutOptionsCollectFacilitiesTenantFacilityRef":{"properties":{"tenantFacilityRef":{"description":"Tenant facility reference","type":"string"}},"required":["tenantFacilityRef"],"title":"CheckoutOptionsCollectFacilitiesTenantFacilityRef","type":"object","description":"CheckoutOptionsCollectFacilitiesTenantFacilityRef"},"CheckoutOptionsCollectEarliestResponse":{"properties":{"calculationHints":{"description":"Calculation hints","items":{"type":"string"},"type":"array"},"checkoutOptions":{"description":"Checkout options per article for collection","items":{"$ref":"#/components/schemas/CheckoutOptionsCollectEarliestResponseItem"},"type":"array"}},"required":["checkoutOptions"],"title":"CheckoutOptionsCollectEarliestResponse","type":"object","description":"CheckoutOptionsCollectEarliestResponse"},"CheckoutOptionsCollectEarliestResponseItem":{"properties":{"available":{"description":"Available quantity","type":"number"},"earliestPredictedProvisioningDate":{"description":"Earliest predicted provisioning date","format":"date-time","type":"string"},"facilityRef":{"description":"Facility reference","type":"string"},"latestPickingStartDate":{"description":"Latest picking start date","format":"date-time","type":"string"},"tenantArticleId":{"description":"Tenant article ID","type":"string"},"tenantFacilityId":{"description":"Tenant facility ID","type":"string"}},"required":["tenantArticleId"],"title":"CheckoutOptionsCollectEarliestResponseItem","type":"object","description":"CheckoutOptionsCollectEarliestResponseItem"},"ApiError":{"items":{"$ref":"#/components/schemas/ErrorInner"},"type":"array","xml":{"name":"ApiError"},"title":"ApiError","description":"ApiError"},"ErrorInner":{"properties":{"description":{"type":"string"},"requestVersion":{"description":"The version provided within an invalid request.","format":"int64","type":"integer"},"summary":{"type":"string"},"version":{"format":"int64","type":"integer"}},"required":["summary"],"type":"object","title":"ErrorInner","description":"ErrorInner"}}},"paths":{"/api/promises/checkoutoptions/collect/earliest":{"post":{"deprecated":false,"description":"Get earliest collect timepoint for a given checkoutOption","operationId":"checkoutoptionCollectEarliest","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutOptionsCollectEarliestRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutOptionsCollectEarliestResponse"}}},"description":"The request could be evaluated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Invalid input. See response for details."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Your user is not allowed to operate against this API instance"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Your user, although recognized, is not authorized to use this endpoint"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"The requested entity was not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"A version conflict occurred."}},"summary":"Get earliest collect","tags":["Checkout options"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fulfillmenttools.com/documentation/by-pillar/availability-and-promising/earliest-possible-collection-date.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
