Skip to main content

Make a provisional promise for one shipment group from a quoted offer

POST 

/promises

MakePromise. Consumes the offer (CONSUMED), creates the promise in PROVISIONAL with holdExpiresAt, and holds capacity on the witness PromiseBook (nodeId:pickupDepartureId), opening the book lazily on the first hold, in ONE transaction (documented exception to one aggregate per transaction, G22). A retry with the same Idempotency-Key and body replays the stored answer when it is final (a promise made, or a refusal the request cannot pass later); a refusal that capacity, a concurrent request or a fact not known yet can still change releases the key, so the retry under the same key runs again. Errors: not-found (404); offer-not-quotable, promise-capacity-exhausted, book-closed, concurrent-update (409); group-spans-nodes, invalid-promise-terms, nominal-basis-not-allowed-for-tier, validation-failed (422); idempotency-key-required (400); idempotency-key-reused (409).

Request​

Responses​

Idempotent replay; the promise made by the first request.

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.