---
title: "Owner or manager: merge two clients in one transaction. Bookings, payment links, consents, notes, tags, uploads and intake move to the survivor; the other record stays as a tombstone"
method: POST
path: "/api/v1/clients/merge"
---

# Owner or manager: merge two clients in one transaction. Bookings, payment links, consents, notes, tags, uploads and intake move to the survivor; the other record stays as a tombstone

`POST /api/v1/clients/merge`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/clients/merge`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sfb_session`

## Request body

- object
  - `survivor_id` string, required
  - `merged_id` string, required
  - `confirm` boolean, required
  - `keep` object
    - `name` 'survivor' | 'merged'
    - `email` 'survivor' | 'merged'
    - `phone` 'survivor' | 'merged'

## Response `200`

OK

- object

## Other responses

- `400`: Validation error
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict or invalid state

---

[API](https://skmtc.dev/scalingfirm/apis/tsf-booking-api.md) · [All operations](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/revisions/81704199cd37?raw)
