Skip to navigation

Email a member login code

Starts a member login. If the email belongs to a member of this store, a 6-digit code is emailed to it; exchange the code at POST /api/member/session. The answer is always 202, member or not, so do not tell the shopper that the email is a member — say that a code is on its way if the address is registered. A code is valid for 10 minutes from the first request and allows 5 attempts; asking again inside that window sends a new code (at most once a minute) but does not extend it or reset the attempts. At most 10 codes are sent to one email address in 24 hours.

Headers

x-entriastringRequired

Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

Request

This endpoint expects an object.
emailstringRequiredformat: "email"<=320 characters

The shopper’s email address.

localestringOptional<=35 characters

BCP 47 locale for the email (e.g. da-DK). Defaults to the store’s.

Response

Accepted. A code is emailed if, and only if, the address is a member.
statusenum
Allowed values:

Errors

400
Bad Request Error
404
Not Found Error
429
Too Many Requests Error
503
Service Unavailable Error