1.
The JSON body must be a non-empty object. identifications, when present, must be an object/array accepted by the customer identity model; body, when present, must be an object. At least one valid identification must remain after validation.
2.
Submitted identifications and customer properties are validated against the configured identity/property definitions. allow_empty controls whether empty submitted property values are retained for processing.
3.
The service locks the customer ID and submitted identity keys, matches existing customers only by submitted identities, then creates, updates, or merges under the same critical section. Profile mobile/email values do not select a customer, even when they equal an existing customer profile value. Identity matching is mandatory and cannot be disabled.
4.
With auto_merge=false (default), the request updates the first matching customer in configured identity-priority order or creates a new customer. Submitted identities belonging to other matched customers are discarded without merging; new-identity uniqueness conflicts are reported in conflict_identifications.
5.
With auto_merge=true, all matched candidates are considered in the configured identification-priority order, not request order. The chosen target remains active. Each compatible source is merged once; its identities/body are incorporated, it becomes inactive and points to the target, and a merge event is emitted.
6.
Before accepting a source, unique identity types are checked against the target and all previously accepted sources. If a source conflicts, the entire source is skipped: it stays active, emits no merge event, is absent from merged_customers, and its identities do not reserve uniqueness for later candidates. conflict_identifications describes conflicts from newly submitted identities, not these skipped source customers.
7.
After filtering, validation, and normalization, an update that changes nothing is not saved, reports no change, and does not enqueue a customer Elasticsearch synchronization job.
1.
JSON 请求体必须是非空对象;identifications 如有值,必须符合客户身份模型接受的对象/数组结构;body 如有值必须是对象。校验后至少要保留一个有效身份标识。
2.
身份标识和客户属性会按照系统配置的身份/属性定义校验。allow_empty 决定空属性值是否进入后续处理。
3.
服务会对客户 ID 和本次提交的身份键加锁,只按提交的身份查找已有客户,再在同一临界区内创建、更新或合并。profile 中的手机/邮箱不参与客户匹配,即使与已有客户的 profile 值相同。身份匹配是固定规则,不能关 闭。
4.
auto_merge=false(默认)时,按系统配置的身份优先级更新第一个匹配客户,或创建新客户。属于其他已匹配客户的提交身份被丢弃,不合并;新提交身份的唯一性冲突写入 conflict_identifications。
5.
auto_merge=true 时,所有匹配候选按系统配置的身份优先级排序处理,而不是按请求中的顺序。选定目标客户保持启用;每个兼容来源客户只合并一次,其身份和属性并入目标,来源客户停用并指向目标,同时产生客户合并事件。
6.
接受每个来源客户前,会用目标客户和此前已接受来源中的唯一身份类型检查冲突。若某来源冲突,则整名来源客户跳过:保持启用、不产生合并事件、不出现在 merged_customers,其身份也不会占用唯一类型从而影响后续候选。conflict_identifications 只表示本次新提交身份的冲突,不表示这些被跳过的来源客户。
7.
经过过滤、校验和标准化后,如果更新没有任何实际变化,则不保存,返回未变化,也不会创建客户 Elasticsearch 同步任务。