Skip to main content

Quote delivery offers per tier for a destination and a set of lines

POST 

/delivery-quotes

Runs the PromisePolicy search over local read models. The cart is first split into shipment groups (ShipmentGrouping: one node for the whole cart when one can cover every line, otherwise the fewest groups). Returns one QUOTED offer per (group, requested tier) that has a feasible witness path, and an OfferConstraint for every (group, tier) that has none. "No offer" is a normal 200 answer. A tier whose order deadline in the destination region has passed is reported PAST_ORDER_DEADLINE. Each offer is persisted with a TTL so checkout can honour it. The Idempotency-Key is required; a repeat inside the offers' TTL returns the same offers. Makes no synchronous call.

Request​

Responses​

Offers for the feasible tiers and constraints for the others.

Response Headers
    Idempotency-Replayed

    Present, with the value "true", only when the response is the stored answer replayed for the same Idempotency-Key, method, path and body. The first execution never carries it.