Skip to main content

Start a session by e-mail lookup

POST 

/sessions

Looks the shopper up with customer-ordering GET /shoppers?email=. There is no password and no authentication; the cookie only remembers which shopper the page acts for. A POST, so it requires an Idempotency-Key; the lookup is a GET upstream, so no upstream key is forwarded and in practice the answer never carries Idempotency-Replayed and never answers 409 (both are declared only because the fleet REST guideline requires them on every keyed POST). Without a body of {email} (at most 254 characters, no other field) the answer is 422 validation-failed.

Request​

Responses​

The shopper; sets the sf_state cookie.

Response Headers
    Set-Cookie

    The sf_state cookie (HttpOnly, SameSite=Lax, path /api/storefront, Max-Age 30 days, Secure when COOKIE_SECURE is set). State, not authentication.

    Idempotency-Replayed

    Present, with the value true, only when the answer is a replay of a stored one (any upstream write hop of the composition was replayed).