Initial Sync on Install
When you install the app, an automatic sync process begins:
- Job Dispatched: A background job is queued to sync all existing Shopify customers
- Customer Import: Each Shopify customer is imported into the app
- Data Storage: Customer information and protected data are stored securely
Timeline:
- Small stores (< 1,000 customers): Minutes
- Medium stores (1,000-10,000 customers): Hours
- Large stores (> 10,000 customers): May take several hours
First Sync
The initial customer sync runs automatically in the background. You can continue setting up your loyalty program while this completes.
Ongoing Customer Sync
After the initial sync, customer data stays synchronized automatically through webhooks:
Customer Account Created
When a customer creates an account in your Shopify store:
- App receives
customers/createwebhook - Customer record created in the app
- Initial points balance set to 0
- Customer becomes eligible for earning rules (e.g., signup points)
Customer Information Updated
When a customer updates their account information:
- App receives
customers/updatewebhook - Customer record updated in the app
- If customer doesn't exist (edge case), they're created
- Protected customer data refreshed
Updated Information:
- Name
- Email address
- Customer tags
- Account status
Customer Account Deleted
When a customer account is deleted in Shopify:
- App receives
customers/deletewebhook - Customer data is soft-deleted (marked as deleted but retained temporarily)
- After retention period, customer data is permanently deleted
- Points balance and transaction history are removed
Retention Period: Customer data is retained for 90 days after deletion for compliance and recovery purposes.
Customer Merging
When two customer accounts are merged in Shopify:
- App receives
customers/mergewebhook - Source customer (merged from) is deleted
- Target customer (merged into) receives combined data:
- Points Balance: Combined from both accounts
- Points Earned: Combined totals
- Transactions: Moved to target customer (duplicates removed)
- One-time transactions (e.g., signup) are not duplicated
Please check more about it here: https://key-stone.app/docs/loyalties/customer-data/overview.html#how-customer-data-syncing-works
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article