Zum Hauptinhalt springen
POST
/
public
/
customer
/
request-login-link
cURL
curl -X POST \
 /public/customer/request-login-link \
 --header "Content-Type: application/json" \
 --data '{
    "email": "customer@example.com"
}'
{
  "success": true
}
Public endpoint for customers to request a login link to the customer portal.

How It Works

  1. Customer enters their email address on the login page
  2. An email with a login link is sent to the customer
  3. Customer clicks the link and is logged in automatically
This endpoint always returns success: true to prevent email enumeration attacks. The email is only sent if the address matches an existing customer.

Difference to OTP

This endpoint replaces the OTP (one-time password) flow for customer portal login. Instead of entering a 6-digit code, customers simply click a link in their email - a much smoother experience, especially on mobile devices. The OTP flow (/public/customer/request-otp and /public/customer/otp-login) is still available and used in the checkout flow where inline verification is required.

Autorisierungen

Authorization
string
header
erforderlich

Value for the Authorization header parameter.

Body

application/json

The customer email address

email
string
erforderlich

The email address of the customer

Beispiel:

"customer@example.com"

Antwort

200 - application/json

Login link request accepted. An email will be sent if the address matches a customer.

success
boolean
Beispiel:

true