Log a storefront customer out

Signs the customer out. A plain logout only acknowledges the call: discard the session token on the client. Send `everywhere: true` to revoke every session token issued to this customer so far, the current one included. Returns 204. Without a valid session token, returns 401 `CUSTOMER_AUTH_REQUIRED`. > **Note:** Available only on sites with e-commerce enabled.

Required access
Send
  • Publishable keyX-Lynkow-Pk
  • Customer session tokenAuthorization
Site access
POST/customers/logout
Base URLhttps://api.lynkow.com/storefront/{siteId}

Request body
required

  • everywhere
    boolean

    When true, invalidates every prior session for this customer ("log out everywhere"); otherwise the logout is a client-side token discard.

Feedback

Was this page helpful?