Skip to main content

Open a checkout session for the cart

POST 

/checkout

Relays checkout POST /checkout-sessions. The cart (default: the cookie's) and the shopper (the cookie's, required) are filled in; the saved address is only a shipToAddressId. Stores the session id in the sf_state cookie.

Request​

Responses​

The opened session; 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).