Advisory delivery estimates for the items of a listing page
POST/delivery-estimates
Called by the browser for a product listing (search results): one call for up to 50 items, each catalogItemId once, each with a quantity of 1 to 999. Relays delivery-promise POST /delivery-estimates for the postal prefix and returns its answer unchanged: one estimate per item in request order, with the best option per classic tier (SAME_DAY, NEXT_DAY, TWO_DAY, STANDARD) or the constraint that blocks the tier. The BFF never requests the CONSOLIDATED tier here (the request has no tiers field). An estimate is ADVISORY: it is not an offer, carries no offer id, cannot back a promise and reserves no capacity; the quote of the product page or of checkout is what the shopper promises against. The estimate window is {start, end, timeZone}, which a quote calls {earliest, latest, timeZone}. It is a safe POST: nothing is stored here or upstream, so no Idempotency-Key is required and one that is sent is ignored (delivery-promise ADR 0019, BFF ADR 0007). An invalid request answers 422 validation-failed before any upstream call; an upstream problem is relayed unchanged.
Request
Responses
- 200
- 400
- 409
- 413
- 422
- 503
- 504
One advisory estimate per requested item, in request order. Nothing was stored and no capacity is reserved; the options can change before the shopper quotes.
Response Headers
Never set on this operation. An Idempotency-Key is ignored, so no answer is a replay. Declared because the fleet REST lint requires the header on every POST 2xx.
A 400 problem: idempotency-key-required, idempotency-key-invalid, unknown-query-parameter, invalid-limit, invalid-cursor (relayed from the provider) or malformed-request (a NUL character in the query string or body, or an unreadable body).
Never answered by this operation (a key is ignored, so it is never idempotency-key-reused); declared because the fleet REST lint requires a 409 on every POST.
A 413 payload-too-large problem from the edge: the request body is over 1 MiB (checked before any upstream call).
An RFC 9457 problem. Upstream problems are relayed unchanged; the edge adds validation-failed, session-required, malformed-request, payload-too-large, upstream-unavailable (503), gateway-timeout (504), route-not-allowed (500), internal-error (500) and client-closed-request (499, the caller went away). Any route also answers 404 resource-not-found for a path it does not serve (or one containing NUL) and 405 method-not-allowed for a wrong method.
An RFC 9457 problem. Upstream problems are relayed unchanged; the edge adds validation-failed, session-required, malformed-request, payload-too-large, upstream-unavailable (503), gateway-timeout (504), route-not-allowed (500), internal-error (500) and client-closed-request (499, the caller went away). Any route also answers 404 resource-not-found for a path it does not serve (or one containing NUL) and 405 method-not-allowed for a wrong method.
An RFC 9457 problem. Upstream problems are relayed unchanged; the edge adds validation-failed, session-required, malformed-request, payload-too-large, upstream-unavailable (503), gateway-timeout (504), route-not-allowed (500), internal-error (500) and client-closed-request (499, the caller went away). Any route also answers 404 resource-not-found for a path it does not serve (or one containing NUL) and 405 method-not-allowed for a wrong method.