About This Article
Sometimes customers who register online are actually existing store members. In this case, we need to avoid duplicate registration and link to existing customer information.
Why Duplicates Occur
Typical Scenarios
Problems Caused by Duplicates
Duplicate Detection Logic
Matching by Email Address
This project uses email address as the primary key for duplicate detection.
Customer submits online membership registration form
Search POS customer database with entered email address
Different processing for existing customer found vs. not found
If exists -> Update member number to link, If not -> Register as completely new
Existing Customer Check Flow
Email address: yamada@example.com
Found -> Get existing POS customer ID / Not found -> Create completely new POS customer
Now POS customer can be identified by Shopify ID
Why Match by Email Address
Comparison of Matching Keys
Advantages of Email Address
- Required in both systems: Both Shopify and POS have email addresses
- Low duplication: Rare for same email to be used by multiple people
- Low change frequency: Changes less often than phone numbers
- Fast searching: Easy to index
Existing Member Update Process
What Gets Updated
When an existing POS member is found, the member number is overwritten.
Only the member number is updated; other information and point balance are preserved.
Why Only Update Member Number
- Preserve points: Don't lose existing point balance
- Preserve purchase history: Past purchase history remains intact
- Establish link: Can now search by Shopify ID
Edge Cases to Consider
Edge Cases and Solutions
Benefits of This System
For Customers
- Points earned at store can be viewed online
- No need to re-enter member information
- Recognized as "the same person" across all channels
For Operations
- No confusion from duplicate data
- Can see complete customer picture (online + store)
- Reduced complaint handling effort