When HubSpot customer sync runs
Customer sync starts when HubSpot sends a deal event to the Flexprice webhook URL. Set up the subscriptions as described in Step 4 of the connection setup.- No toggle controls customer sync. It runs whenever a verified deal event arrives. To stop it, pause or delete the deal subscriptions in your HubSpot app.
- Only contacts are imported. Companies associated with the deal are not.
- A deal with no contacts creates nothing.
- A deal with several contacts creates several customers, one per contact, all carrying the same deal ID.
How Flexprice matches HubSpot contacts to customers
Flexprice checks each contact on the deal in this order:- Already linked. If a Flexprice customer is already linked to the contact, Flexprice skips it. The customer keeps the deal ID of the deal that first imported it.
- Same email. If a Flexprice customer has the contact’s email address, Flexprice links that customer to the contact and leaves the customer record unchanged.
- New customer. Otherwise, Flexprice creates a customer from the contact, as described in the next section.
HubSpot contact fields copied to Flexprice customers
A customer created from a HubSpot contact gets these values:
Later changes to the contact in HubSpot are not copied to the Flexprice customer.
Finding the HubSpot contact linked to a customer
Customers created by customer sync carry the contact ID inmetadata.hubspot_contact_id. For any linked customer, including customers linked by email, call Get entity integration mappings:
provider_type set to hubspot. Its provider_entity_id is the HubSpot contact ID, and its metadata.hubspot_deal_id is the deal that created the link.

