CheckoutSessions
The purchase saga (CheckoutSession).
Open a checkout session for a cart
OpenSession. Reads the cart snapshot (shopping-cart GET /carts/{cartId}), checks every selected offer is still QUOTED with margin (delivery-promise GET /delivery-offers/{offerId}), issues the binding PriceQuote (pricing POST /price-quotes) and opens the session. The BFF then shows the review page with the binding total. shipToAddressId references a saved address held by customer-ordering (NG1); the address itself never enters the storefront.
Get a checkout session
GetSession. While PLACING after an in-doubt placement this is the polling endpoint the BFF uses until a definitive outcome.
Confirm the session with a payment method token
ConfirmSession with the PSP payment method token (never a card number). AUTHORIZING calls customer-payments POST /payment-authorizations (key `<sessionId>:auth:<attempt>`, the attempt counter grows on every retry after a decline; allocations per group); the authorized amount must equal the quote total (ErrAuthorizationMismatch). PLACING persists the placement request and calls customer-ordering POST /checkout with Idempotency-Key equal to the sessionId. Outcomes: 200 with the session in a definitive state (COMPLETED, DECLINED, REQUOTE_REQUIRED with requotedOffers after a successful void, or FAILED after a void plus an alert for a contract bug); 202 while the place-order outcome is unknown (the session stays PLACING; poll GET /checkout-sessions/{sessionId}). A DECLINED session may be confirmed again with another token while the price quote is valid.