---
title: "entities.merge"
method: POST
path: "/capabilities/entities.merge"
tags: ["Capabilities"]
---

# entities.merge

`POST /capabilities/entities.merge`

Merge multiple business entities into one. Reassigns all linked documents to the kept entity, adds merged entity names as aliases, and deletes the duplicates.

## Request body

- object
  - `keepEntityId` string, required — ID of the business entity to keep as the canonical record
  - `mergeEntityIds` KeepEntityId[], required — IDs of business entities to merge into the kept entity. Their names become aliases and linked documents are reassigned. — unresolved $ref

## Response `200`

Successful response

- object
  - `success` boolean
  - `code` integer
  - `data` object
    - `result` object — Capability-specific result

## Other responses

- `400` — Invalid input
- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.net/receiptor/apis/receiptor-ai-api.md) · [All operations](https://skmtc.net/receiptor/apis/receiptor-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/receiptor/receiptor-ai-api/revisions/da17f0eb65a2/schema)
