Phase 4 part 3: Stripe customers matched to EspoCRM Accounts
Every customer with billing is matched to an Account copied from the CRM: the user's choice, then an Account Hermes created from here, a stored ID on either side, an email (the Account's or a Contact's), or the email's domain (not free mail). Several candidates wait for a choice. Metrics → Customers and the CRM fixes matches, marks customers not in the CRM, and queues paying ones as new Accounts. Schema 20. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -165,6 +165,8 @@ func (s *Server) Handler() (http.Handler, error) {
|
||||
mux.HandleFunc("POST /metrics/margins", s.metricsMargins)
|
||||
mux.HandleFunc("POST /metrics/start", s.metricsStart)
|
||||
mux.HandleFunc("GET /metrics/month/{month}", s.metricsMonth)
|
||||
mux.HandleFunc("GET /metrics/customers", s.metricsCustomers)
|
||||
mux.HandleFunc("POST /metrics/customers/{id}", s.metricsCustomerMatch)
|
||||
mux.HandleFunc("GET /seo", s.seoPage)
|
||||
mux.HandleFunc("GET /seo/check", s.seoCheckPage)
|
||||
mux.HandleFunc("GET /seo/engines", s.seoEnginesPage)
|
||||
|
||||
Reference in New Issue
Block a user