Log a storefront customer out

With a stateless session token, a plain logout is a client-side token discard the server simply acknowledges (204). `everywhere = true` bumps `customers.token_invalidated_at`, invalidating EVERY prior session for this customer (Q6). Behind the publishable key, the `customer_accounts` flag, and the customer-auth middleware (a valid session token is required). > **Note:** This endpoint requires the e-commerce feature to be enabled on your site.

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.. Boolean

Feedback

Was this page helpful?