> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zoho CRM: README

> Merge Records. Zoho CRM Find And Merge Merge Records reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Merge Records.

<Info>
  Tool ID: `zoho_crm_find_and_merge_merge_records`
</Info>

## Run this action

This action has conditional or dynamic input fields that cannot be represented by a reliable static example.

Inspect the live contract before executing it:

```bash theme={null}
deepline tools get zoho_crm_find_and_merge_merge_records --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get zoho_crm_find_and_merge_merge_records --json` for the complete live contract.

## Input reference

Request body for merging records with field mapping and validation

| Name                     | Type                                                                       | Required | Default | Details                                                                                                                     |
| ------------------------ | -------------------------------------------------------------------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------- |
| `payload.masterRecordId` | `string`                                                                   | Yes      | —       | Unique identifier of the master record that will be retained after merge Maximum length: 50. Pattern: `^[0-9]+$`.           |
| `payload.module`         | `"Accounts" \| "Contacts" \| "Leads" \| "Deals" \| "Cases" \| "Campaigns"` | Yes      | —       | CRM module name for which records should be merged Allowed: `Accounts`, `Contacts`, `Leads`, `Deals`, `Cases`, `Campaigns`. |
| `payload.merge`          | `array`                                                                    | Yes      | —       | Array of merge operations to be performed Maximum items: 1.                                                                 |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body for merging records with field mapping and validation",
    "properties": {
      "masterRecordId": {
        "type": "string",
        "description": "Unique identifier of the master record that will be retained after merge",
        "maxLength": 50,
        "pattern": "^[0-9]+$"
      },
      "module": {
        "type": "string",
        "description": "CRM module name for which records should be merged",
        "enum": [
          "Accounts",
          "Contacts",
          "Leads",
          "Deals",
          "Cases",
          "Campaigns"
        ]
      },
      "merge": {
        "type": "array",
        "description": "Array of merge operations to be performed",
        "maxItems": 1,
        "items": {
          "type": "object",
          "description": "Individual merge operation configuration",
          "properties": {
            "data": {
              "type": "array",
              "description": "Array of child records to be merged (minimum 1, maximum 2)",
              "minItems": 1,
              "maxItems": 2,
              "items": {
                "type": "object",
                "description": "Child record configuration for merge",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier of the child record to be merged",
                    "maxLength": 50,
                    "pattern": "^[0-9]+$"
                  },
                  "_fields": {
                    "type": "array",
                    "description": "Array of field configurations for the child record",
                    "maxItems": 100,
                    "items": {
                      "type": "object",
                      "description": "Field configuration for merge operation",
                      "properties": {
                        "api_name": {
                          "type": "string",
                          "description": "API name of the field to be configured",
                          "maxLength": 100
                        },
                        "_data": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      },
                      "required": [
                        "api_name"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "master_record_fields": {
              "type": "array",
              "description": "Array of master record field configurations",
              "maxItems": 100,
              "items": {
                "type": "object",
                "description": "Master record field configuration",
                "properties": {
                  "api_name": {
                    "type": "string",
                    "description": "API name of the master record field",
                    "maxLength": 100
                  },
                  "_data": {
                    "type": "object",
                    "additionalProperties": true
                  }
                },
                "required": [
                  "api_name"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "data"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "masterRecordId",
      "module",
      "merge"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                             | Type        | Required | Default | Details                                                          |
| -------------------------------- | ----------- | -------- | ------- | ---------------------------------------------------------------- |
| `result.data`                    | `object`    | Yes      | —       | Response for successful merge operation                          |
| `result.data.merge`              | `array`     | Yes      | —       | Array of merge operation results Maximum items: 1.               |
| `result.data.merge[].code`       | `"SUCCESS"` | Yes      | —       | Success code for the merge operation Allowed: `SUCCESS`.         |
| `result.data.merge[].details`    | `object`    | Yes      | —       | Details of the successful merge operation                        |
| `result.data.merge[].details.id` | `string`    | Yes      | —       | ID of the merged record Maximum length: 50. Pattern: `^[0-9]+$`. |
| `result.data.merge[].message`    | `string`    | Yes      | —       | Success message for the merge operation Maximum length: 500.     |
| `result.data.merge[].status`     | `"success"` | Yes      | —       | Status of the merge operation Allowed: `success`.                |
| `result.meta`                    | `object`    | No       | —       | Additional response metadata (status, paging).                   |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Response for successful merge operation",
        "properties": {
          "merge": {
            "type": "array",
            "description": "Array of merge operation results",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Individual merge operation result",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Success code for the merge operation",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Details of the successful merge operation",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the merged record",
                      "maxLength": 50,
                      "pattern": "^[0-9]+$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "Success message for the merge operation",
                  "maxLength": 500
                },
                "status": {
                  "type": "string",
                  "description": "Status of the merge operation",
                  "enum": [
                    "success"
                  ]
                }
              },
              "required": [
                "code",
                "details",
                "message",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "merge"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
