Help Center
English
Contents

Sign-in Code

Sends the one-time code a shopper signs in or creates an account with.

When it's sent

Sent when a shopper asks for a code to sign in or create an account, on the storefront, at checkout or when saving their details after an order. The code works for 5 minutes; an address gets at most 5 codes an hour. Not sent if that sign-in method is off, the account is disabled, or the address is new and account creation is off.

At a glance
  • Category: Authentication. Codes the customer asks for to sign in, to confirm their phone number or email address, or to view an order on the Track order page.

  • Channels: Email, SMS, WhatsApp

  • Can be switched off: No, it is always sent

What it also needs

Email needs the customer's email address. A text needs the customer's phone number and a ready SMS or WhatsApp provider. Always sent; it can't be switched off.

Related settings
  • Phone sign-in

  • Transactional messages

  • Message templates

  • Transactional emails

  • Service providers

Values it can read

Its template can print these values. Write a value's path between double braces, such as {{ shop.name }}. [] marks one entry of a list, read inside a loop: order.items[].title is item.title in {% for item in order.items %}. A value the event has no data for prints nothing.

SMS and WhatsApp texts read the same values, except the email values.

Access code#

Value

Path

Code

access.code

Code valid for (minutes)

access.expiry_minutes

Store#

Value

Path

Store name

shop.name

Store link

shop.url

Store logo

shop.logo_url

Support email

shop.support_email

Store address

shop.address

Store address › First name

shop.address.first_name

Store address › Last name

shop.address.last_name

Store address › Company name

shop.address.company

Store address › Address line 1

shop.address.address1

Store address › Address line 2

shop.address.address2

Store address › District

shop.address.district

Store address › City

shop.address.city

Store address › State or region code

shop.address.province_code

Store address › State or region

shop.address.province_name

Store address › Postal code

shop.address.postal_code

Store address › Country code

shop.address.country_code

Store address › Country

shop.address.country_name

Store address › Phone number

shop.address.phone

Store address › Full address

shop.address.formatted

Social links

shop.social

Social links › Network

shop.social[].network

Social links › Profile link

shop.social[].url

This email (emails only)#

Value

Path

Preview text

email.preview_text

Email parts it can use

Its email code can add these parts of the email library with {% render %}. An email offers only the parts it has data for.

  • {% render 'access_code' %}: The one-time code of a sign-in or confirmation email, large and easy to copy, with how long it is valid.

  • {% render 'button' %}: A button in your accent colour that works in every email program.

  • {% render 'eyebrow' %}: A small line in capitals above a heading, such as the order number and date.

  • {% render 'footer' %}: The store's name and its support address.

  • {% render 'header' %}: The store's logo (from Email design), or its name when there is no logo, linking to the store.

Was this page helpful?