POST:storefront/auth/email_login_init.json
Storefront APIPOST:storefront/auth/email_login_init.json

POST:storefront/auth/email_login_init.json

Description

Login as a customer via one-time password sent to email. This endpoint generates and sends the code. It will also implicitly create the customer if necessary.

Topic: Auth

Query Parameters

shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

CustomerLogin

{
  "email": "bob.norman@hostmail.com",
  "language": "",
  "oauth_code": "",
  "oauth_provider": "apple",
  "oauth_session_id": "",
  "oauth_token": "",
  "oauth_verifier": "",
  "password": "34hb5kj3h45k3",
  "preferred_currency": "USD",
  "timezone": "(GMT-05:00) Eastern Time",
  "timezone_hint": "(GMT-05:00) Eastern Time",
  "webauthn_credential": "",
  "webauthn_session_id": ""
}