> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Log a storefront customer out

**Publié le** : 2026-08-19
**Catégorie** : Commerce

## `POST /customers/logout`

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

### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `everywhere` | boolean | No | When true, invalidates every prior session for this customer ("log out everywhere"); otherwise the logout is a client-side token discard.. Boolean |


### Responses

| Status | Description |
| --- | --- |
| `204` | No content |
| `401` | Missing or invalid storefront publishable key |
| `402` | The site subscription does not currently permit this operation |
| `403` | The storefront key origin is not allowed |
| `404` | Site, resource, or commerce feature not found |
| `422` | Validation error |


---