Skip to content

Customers

Customers (also referred to as External Users) represent the end-users participating in your loyalty programs. Each customer has a unique identity within your project.

FieldTypeDescription
idstringUnique customer identifier
emailstringCustomer email address
namestringDisplay name
externalIdstringYour system’s user ID
metadataobjectCustom key-value data
createdAtdatetimeWhen the customer was created

Storelayer supports multiple identification strategies:

  • Email — Use the customer’s email as the primary identifier
  • External ID — Map to your existing user system with externalId
  • Storelayer ID — Use the auto-generated unique ID

Store custom attributes on customer records:

{
"metadata": {
"tier": "gold",
"signup_source": "mobile_app",
"preferences": {
"notifications": true,
"language": "en"
}
}
}

Metadata can be used in promotion conditions and workflow triggers.