customersMerge
Merge several customers into one, keeping the merged record’s history and
applying customerFields as overrides on the surviving record.
Merging is not reversible. All source customers except the resulting record are absorbed into it.
Side effects: notifies configured webhooks and emits a customer.merged activity event.
Auth · x-app-token · required permission customersMerge
Related: customersRemove, Customer
customersMerge(customerIds: [String], customerFields: JSON): CustomerArguments
Ids of the customers to merge together.
Field overrides applied to the resulting merged customer, as JSON.
Returns
Lifecycle bucket (e.g. lead vs. customer pipelines). Set at creation or via customersChangeState.
When this record was created.
When this record was last updated.
Profile image URL.
Id of the integration (channel) this customer first came in through, if any.
Given name.
Family name.
Date of birth, if known.
Numeric sex/gender code used by the CRM UI (implementation-defined).
Legacy single email field.
Prefer primaryEmail / emails — kept for backward compatibility only.
Main email address used for identity matching and messaging.
All known email addresses for this customer.
Main phone number (normalized), used for identity matching.
All known phone numbers for this customer.
Primary mailing/shipping address as free-form JSON.
All known addresses as free-form JSON.
Legacy single phone field.
Prefer primaryPhone / phones — kept for backward compatibility only.
Custom field values as an array of { field, value } entries.
Custom field values keyed by field code instead of field id.
Id of the User assigned as owner of this customer.
Current pipeline stage code for lead tracking.
Ordered history of lead pipeline stage changes.
Free-form notes about this customer.
Subscription/marketing consent flag (string enum, e.g. "Yes" / "No").
Short human-friendly identifier. Accepted anywhere _id is accepted on lookups such as customerDetail.
Result of the last email verification pass, if any.
Result of the last phone verification pass, if any.
Social/external profile links as free-form JSON.
Engagement/lead score, when scoring is enabled for this workspace.
Active segment memberships for this customer (segments-v2 only).