Storefront BFF API
The only storefront edge (/api/storefront). A backend-for-frontend that composes the storefront contexts (product-discovery, shopping-cart, checkout, customer-ordering, pricing) and the network's delivery-promise quote. It has no domain model, no database and no Kafka. Each route is a thin composition over an upstream REST API; upstream answers, including their RFC 9457 problem details, are relayed unchanged. Every POST and PATCH requires the page's Idempotency-Key (a fresh one per user submit, reused on retry), except the safe batch estimate POST /delivery-estimates, which stores nothing and ignores a key if sent; the BFF stores nothing and forwards to each upstream command a key minted from (route, subject, page key), so the provider replays a retry (relayed with Idempotency-Replayed: true) and answers 409 idempotency-key-reused when the same key carries a different request, which the BFF relays unchanged. Lists answer {items, nextCursor} and take limit and cursor. Cart, shopper and last checkout ids live in the sf_state cookie: state, NOT authentication, and there is no authentication anywhere. Saved addresses pass through without being stored or logged, request and response bodies are never logged, and only PSP payment-method tokens are accepted, never card data. Every route has a time budget (2 s queries, 5 s commands, 15 s checkout confirm); an expired budget answers 504 and is never retried.
Contact storefront-bff maintainers: