Customers
New CustomerManager Review — Customer Fuzzy Matching
Verify fuzzy matching returns correct customer in top 3 for test cases.
1. Test via API (Postman or curl)
Fuzzy Match Lead → Customer:
POST /api/v1/companies/customers/match/
{
"name": "Max Mustermann",
"phone": "0987-654321",
"email": "kunde@example.com",
"address": "Kundenstr. 42, 12345 Musterstadt"
}
Expected:
HIGH→auto_linkMEDIUM→show_candidatesLOW→create_new
2. Check Duplicate Before Create
POST /api/v1/companies/customers/check-duplicate/
{
"email": "kunde@example.com"
}
Should return is_duplicate: true with linked customer ID.
3. Find Top N Similar
POST /api/v1/companies/customers/find-similar/
{
"name": "Max Musterman",
"limit": 3
}
Verify correct customer is in top 3 results.
Acceptance Criteria:
- Fuzzy match on: name, phone, email, address
- Match confidence score: HIGH / MEDIUM / LOW
- HIGH → auto-link. MEDIUM → show candidates. LOW → new customer prompt.
- Deduplication prevention works
- Match results in top 3 at least 90% of the time