Log a storefront customer in

Signs a customer in with `email` and `password` and returns a session token, valid for 30 days. Send it as `Authorization: Bearer <token>` on the signed-in customer routes. Every failure returns the same 401 `CUSTOMER_AUTH_REQUIRED`: an unknown email, a wrong password, or an account that is not activated. After five failed attempts for one email, or ten from one client, further attempts return 429 `RATE_LIMIT_EXCEEDED` with a `Retry-After` header for up to 15 minutes. Returns 200 with `{ customer, token }`. > **Note:** Available only on sites with e-commerce enabled.

Required access
Send
  • Publishable keyX-Lynkow-Pk
Site access
POST/customers/login
Base URLhttps://api.lynkow.com/storefront/{siteId}

Request body
required

  • email
    string
    required

    Required. Valid email address

  • password
    string
    required

    Required. 1-100 characters

Feedback

Was this page helpful?