HubSpot Merged Records Keep the Primary ID: What Breaks in Your Integrations
From 1 March 2027, merging two HubSpot records no longer creates a new record ID. The primary record keeps its ID across every API version and the UI, and there is no opt-out. Most integrations get simpler, but any logic that waits for a new ID after a merge will quietly stop doing its job.
Have us replace the one workflow that keeps breaking.
Scope my automationOn this page 0% read
Key takeaways
- From 1 March 2027, a HubSpot merge keeps the primary record's ID instead of creating a new one
- The change applies to all API versions and the HubSpot UI at the same time, and there is no opt-out after that date
- Searching by the secondary record's old ID still resolves to the primary
- Integrations that detect merges by looking for a new ID should read mergedObjectIds on the merge event instead
- A public beta has been open since 21 August 2026, and opting in changes merge behavior for the whole portal
What HubSpot is changing
Today, every merge in HubSpot produces a brand-new record ID. Anything outside HubSpot that stored the old IDs has to find the new one, and webhook consumers see what looks like a new record. HubSpot's changelog entry, announced on 24 November 2026, lists exactly those problems as the reason for the change.
| Today | From 1 March 2027 | |
|---|---|---|
| Record ID after a merge | HubSpot generates a brand-new ID | The primary record keeps its ID, which becomes the permanent canonical ID |
| The two original records | Give way to a fresh record with the new ID | The primary stays. The secondary becomes a forward reference that resolves to the primary |
| Merge endpoint response | Returns the freshly generated ID | Returns the primary record's ID |
| MERGE webhook events (Webhooks Journal API) | Carry the new ID as the canonical identifier | Carry the primary record's ID. The secondary record also generates a merge event that references the primary |
| Record page in HubSpot | A fresh record, with the merge shown on its timeline | Stays on the primary. The secondary's URL redirects to it |
| Scope | Current behavior | All API versions and the HubSpot UI at once. The v3 merge endpoint is deprecated |
HubSpot calls this a breaking change because it runs at the infrastructure level, so it cannot be limited to one API version. It reaches every integration that touches merged records, whether it was built last month or years ago.
Where integrations break
For most integrations, stable IDs are good news. The risk sits in code written around today's behavior: code that waits for a third ID to appear, or treats the merged record as a new one.
| Your integration does this | What happens after 1 March 2027 | Fix |
|---|---|---|
| Waits for a new ID after a merge, then rewrites its mapping table | No new ID arrives, so the update never runs or fails a check |
Read mergedObjectIds on the merge event and point the secondary's mapping at the primary |
| Treats an "object created" event after a merge as a new contact or deal | HubSpot names this event as a current pain point the change addresses. Logic that depended on it, such as re-syncing on create, needs another trigger | Trigger re-sync from the merge event instead |
| Stores HubSpot IDs in billing, support or a warehouse | IDs stay stable for the primary, and the secondary's old ID still resolves through search | Keep the stored ID, and record the merge so reports do not count two customers |
| Compares IDs to detect that a merge happened | The "new third ID" signal disappears |
Use the merge event and mergedObjectIds |
| Calls the v3 merge endpoint | The endpoint is deprecated when the change goes live |
Move to the /2027-03/ merge endpoint and test the response shape |
HubSpot describes the migration work as minimal: the query shape does not change, and callers still receive an ID. The work is finding the places that expect a net-new ID, which are often inside middleware, custom code actions, or a sync service nobody has opened in a while.
How to test before 1 March 2027
HubSpot opened a public beta on 21 August 2026 at /crm/2027-03-beta/objects/{objectType}/merge. Joining is optional, and you can opt out any time before 1 March 2027. Opting in changes merge behavior for the whole portal, not one app, so use a test portal or a sandbox if you have one, or agree a test window with the people who merge records every day.
A practical test run:
- List every integration and custom code action that reads, stores or reacts to HubSpot record IDs, including Zapier, Make and n8n workflows.
- In a test portal, opt in and merge two contacts, two companies and two deals that each exist in your connected systems.
- Watch what each integration receives: the merge response, the MERGE webhook event with
mergedObjectIds, and any create or update events. - Check the external systems: does each still point at a record that resolves, and did anything create a duplicate?
- Fix the logic, retest, and only then decide whether to opt your production portal in early.
If you are also working through HubSpot's Node.js 20 sunset for custom code actions, review both changes in the same pass. The same actions often handle IDs.
What to do now
Items
- Inventory every integration, workflow and custom code action that stores or compares HubSpot record IDs
- Search integration code for merge handling and for logic that expects a new ID
- Switch merge detection to the merge event and mergedObjectIds
- Move calls off the v3 merge endpoint before it is deprecated
- Test in a portal opted into the beta, with records that exist in your connected systems
- Write down who merges records and how often, so you know how much traffic the change affects
Note
HubSpot's changelog is the source for every date and behavior above. Re-check it before you plan, because HubSpot updates entries as the rollout moves. For broader duplicate and merge problems in bulk syncs, see our merge triage playbook.
A billing sync that relies on the new ID
Context
An illustrative setup, not a client case: a middleware workflow keeps a table that maps each HubSpot contact ID to a customer ID in a billing system.
Example
Today the workflow listens for merges, waits for the new merged ID, and rewrites both old rows in the mapping table to point at it. After 1 March 2027 no new ID arrives. If the workflow waits for one, the mapping is never updated, and the secondary contact's row keeps pointing at a billing customer that is now a duplicate.
The fix is small: when a MERGE event arrives, read mergedObjectIds, keep the primary record's row, and point the secondary's row at the same billing customer. Searches by the old secondary ID still resolve to the primary, so nothing else in the table has to change.
What it shows
The integration does not fail loudly. It simply stops cleaning up merges, and duplicate customers build up until someone notices in billing.
Mistakes to avoid
Assuming only your newest integrations are affected
What goes wrong: The change is not scoped to an API version, so older integrations and custom code actions see it too.
Do this instead: Inventory everything that touches merged records, regardless of when it was built.
Opting the production portal into the beta without warning anyone
What goes wrong: Merge behavior changes for every app and user in the portal at once.
Do this instead: Test in a separate portal first, or agree a window with the teams who merge records.
Testing only the HubSpot side
What goes wrong: The merge works in HubSpot while billing, support or the warehouse keep stale or duplicate records.
Do this instead: Check each connected system after every test merge.
Checklist
- Every integration that stores or compares HubSpot IDs is listed with an owner
- Merge detection reads mergedObjectIds from the merge event
- No code waits for a new ID after a merge
- Calls to the v3 merge endpoint are moved to the 2027-03 version
- Test merges of contacts, companies and deals were checked in each connected system
- A decision is recorded on whether to opt production in before 1 March 2027
Frequently asked questions
Can we opt out after 1 March 2027?
No. HubSpot says all portals move to the new behavior on that date, with no opt-out. You can opt in or out of the beta before then.
Will the secondary record's old ID still work?
Yes, for lookups. HubSpot says searching by the secondary record's old ID resolves to the primary through a forward reference, so integrations that follow merge chains keep working.
Does the merge flow in HubSpot change for users?
No. Users still open the record to keep, choose Merge from the Actions menu, pick the secondary record and confirm. The URL then stays on the primary record, and the secondary's URL redirects to it.
Not sure which integrations depend on the old behavior?
Book a Rescue triage call. We list what touches HubSpot IDs, reproduce a merge in a test portal, and show where your integrations would break, before 1 March 2027 does it for you. The live System Rescue page starts with a free 20-minute triage call. If a diagnostic is needed, it is USD 199 and credited toward any repair, and repairs are quoted in writing with a cap you approve.
If the fix is one sync workflow you want rebuilt with tests, our HubSpot service can scope it as a fixed-price Sprint. The live Automation Sprint page lists the current Sprint prices, including a quoted Starter after a scope review, a fixed Production price, and Complex work quoted from a starting figure. Re-check the page before you budget. Tool subscriptions, API usage and hosting are billed to your own accounts.
Sources
- Breaking Change: Primary Record ID Now Preserved After Merge, HubSpot
- Using object APIs: merge records, HubSpot
- HubSpot Node.js 20 sunset: move custom code to Node.js 24, Octacer
- Bulk sync deduplication and merge triage playbook, Octacer
- HubSpot migration playbook, Octacer
- HubSpot automation, CRM setup and integrations, Octacer
- System Rescue, Octacer
- Automation Sprint, Octacer
Take this article with you
Free PDF of this article. Unlock it with your email.
Written by
Hisham Asghar
Engineering Team
Written from real client builds at Octacer: the systems, the trade-offs, and what we would do again.
Get new posts by email
Practical automation and engineering notes. No spam.