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

# Register a storefront customer account

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

## `POST /customers/register`

**Register a storefront customer account**

Starts account creation for an email address. Send `email` and an optional `locale`
for the activation email.

Returns 200 `{ ok: true }` whether or not the address is registered, and 422 for an
invalid `email`. An address with no account yet receives an activation link, valid
for 24 hours, unless the store changed that customer's email in the last 72 hours.
A repeat call sends no new link while the previous one is still valid. The buyer completes the account with
`POST /customers/activation/confirm`, which collects the password, terms acceptance,
profile and marketing consent.

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

### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string | Yes | Required. Valid email address |
| `locale` | string | No | Language of the activation email, never rejected; the site default when omitted. Not stored: send `locale` again at activation. Unsupported email languages fall back to the base language (`pt-BR` to `pt`), then English. |
| `recaptchaToken` | string | No | Verification token, required when the site uses CAPTCHA. A v3 token needs this operation's action. |
| `_hp` | string | No | Spam-trap field that must remain empty when the site uses honeypot protection. |
| `_ts` | integer | No | Form-load Unix timestamp in milliseconds when the site uses honeypot protection. |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `400` | Spam protection failed: the `_ts` timestamp is too old, or the verification token is missing or invalid. |
| `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 |
| `429` | Rate limit exceeded, or the `_ts` timestamp is missing, malformed or too recent. |


> **Notes:** A v3 token uses the action `customer_register`. With honeypot protection,
> `_ts` is required even when the `_hp` check is off.

### SDK

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

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

await lynkow.customers.register({ email: 'alice@example.com' })
// Same message on every outcome: never branch on whether the email is known.
show('Check your inbox. If this address can be registered, a link is on its way.')
```

---