Your application can send shoppers a one-time link via email that will sign them in to their storefront account.
Use cases for this include:
Send a POST request to
{store-url}/login.php?action=passwordless_login
The request body should include:
email: The customer’s email address. This email address is where they will receive the one-time login link.redirect_url: A link to the URL of the page where you want to redirect customers once they are logged in. This URL must be on the same domain as the store.If the request body does not include a redirect_url, customers will be redirected as follows:
Upon receiving a successful POST request, BigCommerce will send a response that contains:
expiry: The time in seconds during which the login link is valid.sent_email: A value of sign_in indicates BigCommerce sent the login link to the customer via the email provided. A value of password_reset means the customer requested a sign-in link, however BigCommerce sent a reset password email instead. BigCommerce sends the email immediately upon receiving the POST request.The customer will receive an email with the following subject line:
The body of the email contains the following:
This email uses the same email templates as other emails in your store.
Other status codes:
429: Too many requests, request was rate limited
404: Provided email does not belong to a customer