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.

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

Request body
required

  • preferredLocale
    union
    required

    Required. Language tag of letters, digits, `-` and `_`, up to 35 characters, stored normalized (`pt_br` becomes `pt-BR`). `null` or `""` clears it

Feedback

Was this page helpful?