Overview
The customer management system helps you maintain customer records, track purchase history, and provide personalized service to frequent buyers.Customer Information in CEMAC
CEMAC tracks customer data to:- Identify frequent buyers
- Track purchase history
- Provide personalized service
- Analyze customer behavior
- Support marketing efforts
Adding Customers During Sales
The most common way to add customers is during the sales process:Customer records are created automatically when you enter a name during checkout. The system uses
customerService.js to manage customer data.Searching for Existing Customers
Use search in sales
When entering a customer name in the sales form, the system searches existing customers.
customerService.searchCustomers(query) to find matches in real-time.
Viewing Customer Details
While CEMAC doesn’t have a dedicated customer management page in the current interface, you can access customer information through:Sales History
Search by customer name
Use the “Buscar cliente…” search box to find all sales for a specific customer.
Analytics Insights
Check new customers metric
The “Nuevos clientes” KPI shows how many unique customers made purchases today.
Customer Data Management
Creating Customers Programmatically
For API integrations or batch imports, use:Updating Customer Information
Retrieving Customer Details
Customer Purchase History
When viewing a customer’s record via the API, you’ll see:- Personal Information: Name, email, phone, address
- Purchase History: List of all sales transactions
- Date of purchase
- Products bought
- Quantities
- Total amount
- Payment method
- Statistics:
- Total purchases
- Total spent
- Average order value
- Last purchase date
Best Practices for Customer Management
During Sales
Consistent customer naming helps with accurate tracking and reporting.
- Ask for full names: Get complete customer names for better records
- Verify spelling: Confirm spelling to avoid duplicate records
- Update contact info: If a customer provides updated details, note them
- Track preferences: Use the notes field to record customer preferences
- Identify regulars: Recognize frequent customers for better service
Data Quality
- Avoid duplicates: Search before creating new customer records
- Use consistent formatting:
- Names: “Juan Pérez” not “juan perez” or “JUAN PEREZ”
- Phone: “+52 55 1234 5678” format consistently
- Email: Always lowercase
- Keep it current: Update information when customers notify changes
- Merge duplicates: Contact administrator to merge duplicate customer records
Privacy and Security
- Protect customer information: Don’t share customer details publicly
- Secure access: Only authorized staff should access customer records
- Respect privacy: Only collect necessary information
- Data retention: Follow company policy on how long to keep customer data
- Consent: Ensure customers know their data is being collected
Using Customer Data for Business
Identify Frequent Customers
Customer Segmentation
Analyze customer data to identify:- High-value customers: Those who spend the most
- Frequent buyers: Those who purchase often
- Seasonal customers: Those who buy at specific times
- Product preferences: What different customer types prefer
Improve Service
Common Workflows
First-Time Customer
Returning Customer
Updating Customer Details
Troubleshooting
Cannot Find Customer
Possible causes:- Name spelled differently
- Customer hasn’t purchased before
- Duplicate record under different spelling
- Try different name variations
- Search by partial name
- Create new record if truly first purchase
- Contact administrator about potential duplicates
Duplicate Customer Records
Reason: Same customer entered with different names or spellings. Prevention:- Always search before entering a new customer
- Use consistent name formatting
- Ask customers how they prefer their name recorded
- Contact administrator to merge duplicate records
- Choose one record as primary
- Update future sales to use the correct record
Customer Information Incorrect
Solutions:- Verify correct information with customer
- Request administrator update the record
- Add correct info in sale notes until updated
Future Customer Features
CEMAC’s customer management capabilities can be extended with:- Dedicated customer management page
- Customer loyalty programs
- Email marketing integration
- Birthday and anniversary tracking
- Customer tags and categories
- Detailed purchase analytics per customer
- Customer communication history
Technical Reference
Customer operations use thecustomerService.js service:
- Get customers:
customerService.getCustomers(params)- Params:
page,limit,search,sortBy,sortOrder
- Params:
- Search customers:
customerService.searchCustomers(query)- Real-time autocomplete search
- Get customer:
customerService.getCustomerById(customerId)- Returns customer with purchase history
- Create customer:
customerService.createCustomer(customerData)- Required:
firstName,lastName - Optional:
email,phone,address
- Required:
- Update customer:
customerService.updateCustomer(customerId, data) - Delete customer:
customerService.deleteCustomer(customerId)
https://cemac-api.vercel.app/customers
Customer data is automatically associated with sales records, creating a complete purchase history for each customer.