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

# Update the current customer's preferred language

**Published**: 2026-11-30
**Category**: Commerce

## `PATCH /customers/me`

**Update the current customer's preferred language**

Sets, replaces or clears the signed-in customer's preferred language,
used for the emails sent to them.

Any tag is accepted, even one the site does not offer; a malformed one returns 422.

Returns 200 with `{ customer }`, shaped like `GET /customers/me` without the bookings.
A customer whose email is not verified gets 403 `CUSTOMER_EMAIL_NOT_VERIFIED`. Without
a valid session token, returns 401 `CUSTOMER_AUTH_REQUIRED`.

> **Note:** Available only on sites with e-commerce enabled.

### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `preferredLocale` | string \| null | Yes | Required. Language tag of letters, digits, `-` and `_`, up to 35 characters, stored normalized (`pt_br` becomes `pt-BR`). `null` or `""` clears it |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Missing or invalid storefront publishable key or customer session token |
| `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 |


### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({
  siteId: process.env.LYNKOW_SITE_ID!,
  publishableKey: process.env.LYNKOW_PK,
})

const profile = await lynkow.customers.updateMe({ preferredLocale: 'pt' })
console.log(profile.preferredLocale) // 'pt'

// Back to the site's default language.
await lynkow.customers.updateMe({ preferredLocale: null })
```

---