Skip to main content
GET
/
v2
/
company-merges
/
{mergeId}
Get Company Merge
curl --request GET \
  --url https://api.affinity.co/v2/company-merges/{mergeId} \
  --header 'Authorization: Bearer <token>'
{
"id": 12345,
"status": "success",
"taskId": "1ac19acd-674c-49a0-819a-cd674cc9a042",
"startedAt": "2025-06-03T10:30:00Z",
"primaryCompanyId": 12345,
"duplicateCompanyId": 67890,
"completedAt": "2025-06-03T10:32:15Z",
"errorMessage": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

mergeId
integer<int64>
required

Company merge ID

Required range: 1 <= x <= 9007199254740991
Example:

12345

Response

OK

Entity representing the state of an individual company merge

id
integer<int64>
required

The unique identifier for the merge

Required range: 1 <= x <= 9007199254740991
Example:

12345

status
enum<string>
required

Current status of the merge

Available options:
in-progress,
success,
failed
Example:

"success"

taskId
string<uuid>
required

Identifier for the task this merge belongs to

Example:

"789e0123-e45b-67c8-d901-234567890123"

startedAt
string<date-time>
required

Timestamp when the merge started

Example:

"2025-06-03T10:30:00Z"

primaryCompanyId
integer<int64>
required

ID of the primary company that other profiles were merged into

Required range: 1 <= x <= 9007199254740991
Example:

12345

duplicateCompanyId
integer<int64>
required

ID of the duplicate company that was merged into the primary company

Required range: 1 <= x <= 9007199254740991
Example:

67890

completedAt
string<date-time> | null
required

Timestamp when the merge completed (success or failure)

Examples:

"2025-06-03T10:32:15Z"

null

errorMessage
string | null
required

Error message if the merge failed

Examples:

"Primary company not found"

null